:root {
  --navy: #16233a;
  --navy-800: #1e2f4b;
  --navy-light: #2c4165;
  --ink: #2a2f38;
  --ink-soft: #5b6270;
  --line: #d8d5cd;
  --paper: #faf8f4;
  --paper-2: #f2efe8;
  --white: #ffffff;
  --accent: #9a7b3f;
  --accent-soft: #e9dfc9;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 72px; --s-7: 104px;
  --maxw: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-align: center;
}
p { margin: 0; text-wrap: pretty; text-align: justify; hyphens: auto; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
ol { list-style: none; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-3); }
.mono { font-family: var(--font-mono); overflow-wrap: break-word; word-break: break-word; }
.placeholder { color: var(--ink-soft); font-size: 12px; }
.kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.h2 { margin-top: var(--s-2); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
.h2-narrow { max-width: 22em; margin-left: auto; margin-right: auto; }
.h2-light { color: var(--white); }
.body-soft { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.body-soft-inline { color: var(--ink-soft); }
.section { padding: var(--s-7) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); color: var(--white); }
.btn-lg { padding: 17px 28px; font-size: 16px; margin-top: var(--s-4); }
.btn-accent {
  background: var(--accent);
  color: #1a1408;
  padding: 17px 30px;
  font-size: 16px;
  font-weight: 600;
}
.btn-accent:hover { background: var(--accent-soft); color: #1a1408; }
.btn-submit {
  margin-top: var(--s-1);
  background: var(--accent);
  color: #1a1408;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  justify-content: center;
}
.btn-submit:hover { background: var(--navy); color: var(--white); }
.icon-wa { width: 18px; height: 18px; flex: none; display: block; }
.link-underline {
  color: #c9d0dc;
  font-size: 15px;
  padding: 17px 8px;
  border-bottom: 1px solid rgba(201, 208, 220, 0.35);
}
.link-underline:hover { color: var(--white); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(44, 65, 101, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.logo { display: flex; align-items: center; }
.logo-img { height: 58px; width: auto; display: block; }
.nav-desktop { display: flex; align-items: center; gap: var(--s-4); }
.nav-desktop a { font-size: 14px; color: #c9d0dc; }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.btn-sm { padding: 12px 20px; font-size: 14px; gap: 10px; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { width: 18px; height: 1px; background: var(--white); display: block; }
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--s-2) var(--s-3) var(--s-3);
  gap: var(--s-2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-light);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 15px; padding: 6px 0; color: #c9d0dc; }

/* Hero */
.hero { padding: calc(76px + var(--s-7)) 0 var(--s-7); background: var(--navy); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s-6); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.rule-short { width: 36px; height: 1px; background: var(--accent); display: block; }
.eyebrow-text { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-soft); }
.hero-title { color: var(--white); font-size: clamp(32px, 5vw, 54px); line-height: 1.12; max-width: 16em; }
.hero-sub { margin-top: var(--s-3); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: #c9d0dc; max-width: 34em; font-weight: 300; }
.hero-cta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.hero-card { border: 1px solid rgba(255, 255, 255, 0.16); padding: var(--s-4); display: grid; gap: var(--s-4); }
.hero-divider { height: 1px; background: rgba(255, 255, 255, 0.16); }
.stat-num { font-family: var(--font-display); font-size: 40px; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: #c9d0dc; margin-top: 6px; }
.stat-link { display: block; }
.stat-link:hover .stat-num { color: var(--accent-soft); }
.hero-note { font-size: 13px; color: #c9d0dc; line-height: 1.6; text-align: justify; hyphens: auto; }

/* Nosotros */
.nosotros-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-6); }
.nosotros-img { margin-top: var(--s-4); width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); display: block; }
.img-caption { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.nosotros-copy { display: grid; gap: var(--s-4); }
.lead { font-size: 17px; line-height: 1.72; color: var(--ink); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
.value { border-top: 2px solid var(--navy); padding-top: var(--s-2); }
.value h3 { font-size: 16px; }
.value p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* Areas */
.areas-grid { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-3); }
.area-card { background: var(--white); border: 1px solid var(--line); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.area-card h3 { font-size: 20px; margin-top: var(--s-1); }
.area-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.area-icon { width: 28px; height: 28px; color: var(--accent); display: block; }

/* Equipo */
.section-lead { margin-top: var(--s-2); font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 52ch; }
.team-grid { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-4); align-items: start; }
.team-member { display: grid; grid-template-columns: 180px 1fr; gap: var(--s-4); align-items: start; max-width: 640px; }
.team-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; border: 1px solid var(--line); display: block; }
.team-member h3 { font-size: 22px; }
.team-role { margin-top: 4px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.team-details { margin-top: var(--s-3); display: grid; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); text-align: justify; hyphens: auto; }
.team-details strong { color: var(--navy); font-weight: 600; }
.team-placeholder { border: 1px dashed var(--line); padding: var(--s-4); display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); }
.team-placeholder h3 { font-size: 18px; color: var(--ink-soft); }
.team-placeholder p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* Testimonios */
.rating-badge { margin-top: var(--s-3); display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.rating-badge:hover { color: var(--accent); }
.rating-stars { color: var(--accent); letter-spacing: 0.05em; font-size: 15px; }
.testimonios-carousel-wrap { margin-top: var(--s-5); }
.testimonios-track {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonios-track::-webkit-scrollbar { display: none; }
.testimonio-card {
  scroll-snap-align: start;
  flex: 0 0 100%;
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
@media (min-width: 720px) {
  .testimonio-card { flex: 0 0 calc((100% - 2 * var(--s-3)) / 3); }
}
.testimonio-quote { font-size: 15px; line-height: 1.65; color: var(--ink); flex: 1; }
.testimonio-author { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.testimonio-author .testimonio-source { font-weight: 400; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--navy);
  padding: 0;
}
.carousel-arrow:hover { background: var(--accent); color: #1a1408; border-color: var(--accent); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; }
.carousel-dot.active { background: var(--accent); }

/* Why */
.why-grid { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-4); }
.why-item { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: var(--s-2); }
.why-item h3 { font-size: 17px; }
.why-item p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: #c9d0dc; }

/* Proceso */
.proceso-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-6); }
.proceso-list { margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.proceso-list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-3); border-bottom: 1px solid var(--line); padding-bottom: var(--s-3); }
.proceso-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.proceso-num { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.proceso-list h3 { font-size: 18px; }
.proceso-list p { margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-list { margin-top: var(--s-5); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--s-3) 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--font-body);
}
.faq-sign { font-family: var(--font-mono); font-size: 18px; color: var(--accent); flex: none; }
.faq-answer { padding: 0 0 var(--s-3); font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.contact-details { margin-top: var(--s-5); display: grid; gap: var(--s-3); font-size: 15px; line-height: 1.6; }
.contact-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s-2); }
.contact-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.map-frame { margin-top: var(--s-4); border: 1px solid var(--line); height: 260px; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.02); }

.contact-form-card { background: var(--paper-2); border: 1px solid var(--line); padding: var(--s-4); }
.contact-form { display: grid; gap: var(--s-3); }
.contact-form h3 { font-size: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.form-sent { display: grid; gap: var(--s-2); padding: var(--s-4) 0; }
.form-sent h3 { font-size: 20px; }
.form-sent p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--navy); color: #c9d0dc; padding: var(--s-6) 0 var(--s-4); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s-5); }
.footer-logo-img { height: 72px; width: auto; display: block; }
.footer-address { margin-top: var(--s-3); font-size: 14px; line-height: 1.7; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer-heading { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.footer-col a { color: #c9d0dc; }
.footer-call { color: var(--white) !important; }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: 12px;
  line-height: 1.7;
  color: #8d97a8;
}
.footer-bottom .placeholder { color: #8d97a8; }

/* Responsive */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid,
  .nosotros-grid,
  .proceso-grid,
  .contacto-grid,
  .team-member,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Below ~480px, auto-fit/minmax grids can no longer fit even one card at
   its minimum track size once gaps are accounted for — force a single
   column so cards never get pushed wider than the viewport. */
@media (max-width: 480px) {
  .areas-grid,
  .team-grid,
  .why-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
}
