@charset "utf-8";

/* Tipografías autoalojadas (subset latino) */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/fraunces-400.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/fraunces-italic-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff2') format('woff2'); }

/* =========================================================
   WA Quality Partners — rediseño responsive (mobile-first)
   Paleta original: navy #08294e · dorado #cba347
   ========================================================= */

:root {
  --navy: #08294e;
  --navy-dark: #06223f;
  --navy-soft: #164670;
  --gold: #cba347;
  --gold-text: #ae8430;
  --gold-light: #d9b560;
  --text: #1e334c;
  --muted: #5a6a7e;
  --line: #dce3e9;
  --soft: #f4f6f8;
  --soft-2: #eef2f6;
  --white: #fff;
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 120px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 24px 50px -28px rgba(8, 41, 78, 0.35);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0; color: var(--text); font-family: var(--sans); background: var(--white);
  font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--navy); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentcolor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
p { margin-bottom: 1.1em; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 4px;
}

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw + 0.4rem, 4.4rem); line-height: 1.06; margin-bottom: 0.5em; }
h2 { font-size: clamp(2.1rem, 4.6vw + 0.6rem, 3.1rem); line-height: 1.12; margin-bottom: 0.6em; }
h3 { line-height: 1.3; }
h1 em, h2 em { font-weight: 400; font-style: italic; color: var(--gold-text); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; background: var(--white); padding: 10px 18px; z-index: 200; }
.skip-link:focus { top: 12px; }

/* ---------- Layout base ---------- */
.hero, .section, .method-inner, .contact-inner, .footer, .nav-wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1.4rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow > span { display: block; width: 32px; height: 2px; background: var(--gold); flex-shrink: 0; }
.eyebrow.light { color: rgb(190, 205, 221); }

/* ---------- Botones ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px; border: 1px solid transparent;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; text-align: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(8, 41, 78, 0.6); }
.button:active { transform: none; }
.button.navy { background: var(--navy); color: var(--white); }
.button.navy:hover { background: var(--navy-soft); }
.button.outline { border-color: rgb(120, 142, 166); color: var(--white); }
.button.outline:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--gold); }

.underlined-link {
  display: inline-flex; gap: 10px; padding: 4px 0; font-size: 0.9rem; font-weight: 600;
  border-bottom: 1px solid rgb(168, 179, 192); transition: border-color 0.2s, color 0.2s;
}
.underlined-link:hover { border-color: var(--gold); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgb(232, 237, 242); backdrop-filter: saturate(1.4) blur(10px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { width: clamp(170px, 46vw, 280px); flex-shrink: 0; }

.menu-toggle {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid rgb(212, 223, 233); background: var(--white);
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform 0.2s, background 0.2s;
}
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

.site-header nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 4px;
  padding: 16px var(--gutter) 24px; background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(8, 41, 78, 0.25);
  font-size: 1rem;
}
.site-header nav.open { display: flex; }
.site-header nav > a { padding: 14px 0; border-bottom: 1px solid var(--soft-2); position: relative; }
.site-header nav .nav-contact {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 14px 18px;
  border: 1px solid var(--navy); font-weight: 600; transition: background 0.2s, color 0.2s;
}
.site-header nav .nav-contact:hover { background: var(--navy); color: var(--white); }
.nav-contact svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  padding-block: clamp(32px, 6vw, 72px) clamp(44px, 6vw, 72px);
}
.hero-copy > p { font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem); line-height: 1.8; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-actions .button { width: 100%; }
.hero-note {
  display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 0.85rem; line-height: 1.6; color: var(--muted);
}
.hero-note strong { color: var(--text); font-weight: 600; }
.note-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgb(221, 229, 237); flex-shrink: 0; }
.note-icon svg { width: 22px; height: 22px; color: var(--gold-text); }

.hero-visual { position: relative; padding-bottom: 36px; margin-right: 12px; }
.hero-visual picture { display: block; }
.campus {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 45%;
  background: var(--soft); box-shadow: 0 30px 60px -32px rgba(8, 41, 78, 0.5);
}
.hero-visual::after {
  content: ""; position: absolute; z-index: -1; inset: 20px -12px 24px 20px; border: 1px solid var(--gold);
}
.image-label {
  position: absolute; left: -8px; bottom: 6px; display: flex; gap: 16px; align-items: flex-start;
  max-width: calc(100% - 24px); padding: 20px 24px; background: var(--navy); color: var(--white);
  box-shadow: 0 14px 34px rgba(8, 41, 78, 0.25);
}
.label-rule { width: 2px; height: 38px; background: var(--gold); margin-top: 3px; flex-shrink: 0; }
.image-label small { font-size: 0.7rem; letter-spacing: 0.16em; color: rgb(190, 205, 221); }
.image-label p { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(1.05rem, 3.4vw, 1.4rem); line-height: 1.3; letter-spacing: -0.01em; }
.photo-index { position: absolute; right: 0; bottom: 0; font-size: 0.65rem; letter-spacing: 0.14em; color: var(--muted); display: none; }

/* ---------- Banda ---------- */
.statement-band {
  display: grid; grid-template-columns: 1fr; gap: 10px; padding: 22px var(--gutter);
  background: var(--soft); border-block: 1px solid rgb(232, 237, 242); text-align: center;
  font-size: 0.95rem; font-weight: 700;
}
.statement-band div span { font-weight: 400; color: var(--muted); }
.band-separator { display: none; }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 28px; }
.about-content p { font-size: 1rem; line-height: 1.85; color: var(--muted); }
.about-content .lead { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); line-height: 1.7; color: var(--text); margin-bottom: 1.1em; }
.principles { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
.principles > div {
  padding: 22px; background: var(--soft); border-top: 2px solid var(--gold);
  transition: transform 0.25s, box-shadow 0.25s;
}
.principles > div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.principles span { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--gold-text); font-weight: 700; }
.principles h3 { font-size: 1rem; font-weight: 700; margin: 10px 0 8px; }
.principles p { font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* ---------- Servicios ---------- */
.services { border-top: 1px solid var(--line); }
.services-heading { display: grid; gap: 4px; margin-bottom: 36px; }
.services-heading h2 { margin-bottom: 0.4em; }
.services-heading > p { max-width: 30em; font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 0; }

.service-list { display: grid; gap: 16px; }
.service {
  display: grid; grid-template-columns: 1fr; gap: 20px; padding: 28px 24px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-number { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--gold-text); }
.service-kicker { display: block; margin-bottom: 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.service-title h3 { margin-bottom: 12px; font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.18; }
.service-title p { margin: 0; font-size: 0.95rem; line-height: 1.8; color: var(--muted); max-width: 32em; }
.service-detail ul { margin: 0 0 18px; padding: 0; list-style: none; }
.service-detail li { position: relative; padding-left: 18px; margin-bottom: 9px; font-size: 0.92rem; color: rgb(70, 90, 115); }
.service-detail li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 1px; background: var(--gold); }

details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
details summary > span { display: inline-block; font-size: 1.4rem; line-height: 1; color: var(--gold-text); transition: transform 0.25s; }
details[open] summary > span { transform: rotate(45deg); }
.service-detail summary { padding-top: 14px; border-top: 1px solid var(--soft-2); font-size: 0.92rem; font-weight: 700; }
details summary:hover { color: var(--navy); }
.details-body { padding-top: 14px; }
.details-body p { font-size: 0.9rem; line-height: 1.75; color: var(--muted); }
.details-body a { font-size: 0.9rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

.service-foot {
  display: flex; align-items: flex-start; gap: 18px; margin-top: 16px; padding: 22px 24px;
  background: var(--soft); border-left: 3px solid var(--gold);
}
.small-mark { font: 2rem/1 var(--serif); color: var(--gold-text); }
.service-foot p { margin: 0; font-size: 0.92rem; line-height: 1.8; color: var(--muted); }
.service-foot strong { color: var(--navy); }

/* ---------- Metodología ---------- */
.method { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); }
.method-inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: var(--section-y); }
.method h2 em { color: var(--gold-light); }
.method-copy > p { max-width: 28em; font-size: 1rem; line-height: 1.85; color: rgb(190, 205, 221); margin-bottom: 28px; }
.process { margin: 0; padding: 0; list-style: none; }
.process li { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid rgb(52, 81, 111); }
.process li:first-child { padding-top: 0; }
.process li:last-child { padding-bottom: 0; border: 0; }
.step-number { margin-top: 2px; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--gold-light); flex-shrink: 0; }
.process h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 600; }
.process p { margin: 0; font-size: 0.95rem; line-height: 1.8; color: rgb(190, 205, 221); }

/* ---------- Equipo ---------- */
.team-heading { display: grid; gap: 4px; margin-bottom: 36px; }
.team-heading > p { max-width: 28em; font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 0; }
.people { display: grid; grid-template-columns: 1fr; gap: 20px; }
.person {
  display: flex; flex-direction: column; gap: 22px; padding: 26px 24px;
  border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.person-mark {
  position: relative; width: 88px; height: 104px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--soft-2); color: var(--navy); font-family: var(--serif); font-size: 2rem; letter-spacing: -0.06em;
}
.person-mark span { position: absolute; bottom: 18px; width: 28px; height: 2px; background: var(--gold); }
.person-mark.second { background: var(--navy); color: var(--white); }
.person-info .service-kicker { margin-bottom: 10px; }
.person h3 { margin-bottom: 14px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.person p { margin-bottom: 18px; font-size: 0.95rem; line-height: 1.8; color: var(--muted); }
.person-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.person-topics span { padding: 6px 12px; background: var(--soft); font-size: 0.78rem; color: rgb(70, 92, 116); }
.team-note { max-width: 46em; margin: 28px 0 0; font-size: 0.92rem; line-height: 1.8; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr; gap: 24px; border-top: 1px solid var(--line); }
.faq-list details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { font-size: 1.05rem; font-weight: 600; line-height: 1.4; transition: color 0.2s; }
.faq-list summary:hover { color: var(--gold-text); }
.faq-list summary span { font-size: 1.6rem; }
.faq-list p { margin: 16px 0 0; font-size: 0.97rem; line-height: 1.85; color: var(--muted); max-width: 40em; }

/* ---------- Contacto ---------- */
.contact { background: rgb(242, 245, 248); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: var(--section-y); }
.contact-copy > p { max-width: 28em; font-size: 1rem; line-height: 1.85; color: var(--muted); }
.direct-contact {
  display: flex; align-items: flex-start; gap: 16px; margin-top: 28px; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s;
}
.direct-contact:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.direct-contact > svg { width: 26px; height: 26px; margin-top: 4px; color: rgb(150, 113, 40); }
.direct-contact small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.direct-contact strong { display: block; margin-top: 4px; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
.direct-contact span { display: block; margin-top: 2px; font-size: 0.88rem; color: var(--muted); }
.country { margin-top: 24px; max-width: 24em; font-size: 0.85rem; color: var(--muted); }

.contact form {
  align-self: start; padding: clamp(22px, 4vw, 40px); background: var(--white);
  border-top: 3px solid var(--gold); box-shadow: var(--shadow);
}
.contact form h3 { margin-bottom: 6px; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.contact form > p { margin-bottom: 22px; font-size: 0.92rem; color: var(--muted); }
.contact label { display: block; margin: 18px 0 8px; font-size: 0.85rem; font-weight: 700; }
.contact label span { margin-left: 6px; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.contact input, .contact select, .contact textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgb(206, 216, 227); border-radius: 0;
  background: rgb(250, 251, 253); font-size: 1rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact textarea { resize: vertical; }
.contact input::placeholder, .contact textarea::placeholder { color: rgb(130, 144, 162); }
.contact input:focus, .contact select:focus, .contact textarea:focus {
  outline: none; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(203, 163, 71, 0.4);
}
.contact form .button { width: 100%; margin-top: 24px; }
.form-note { display: block; margin-top: 14px; font-size: 0.8rem; line-height: 1.7; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding-block: 40px 24px; }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 32px; }
.footer-top img { width: 240px; }
.footer-top p { margin: 0; font-size: 0.88rem; line-height: 1.8; color: var(--muted); }
.back-top { display: inline-flex; align-items: center; gap: 12px; font-size: 0.88rem; font-weight: 600; }
.back-top span { font-size: 1.1rem; color: var(--gold-text); transition: transform 0.2s; }
.back-top:hover span { transform: translateY(-3px); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 4px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted);
}

.floating-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: var(--white); border: 1px solid rgb(201, 170, 96);
  box-shadow: 0 8px 26px rgba(8, 41, 78, 0.3); transition: transform 0.2s, background 0.2s;
}
.floating-contact:hover { transform: translateY(-3px); background: var(--navy-soft); }
.floating-contact svg { width: 22px; height: 22px; }

/* ---------- Animación de entrada ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy, .hero-visual { animation: rise 0.7s ease-out both; }
.hero-visual { animation-delay: 0.12s; }

/* =========================================================
   ≥ 600px — móviles grandes / tablet vertical
   ========================================================= */
@media (min-width: 600px) {
  .hero-actions .button { width: auto; }
  .statement-band { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .statement-band div span { display: block; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .service { padding: 32px; }
  .service-detail { padding-top: 4px; }
  .person { flex-direction: row; padding: 28px; }
  .photo-index { display: block; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   ≥ 900px — tablet horizontal / escritorio: nav horizontal
   ========================================================= */
@media (min-width: 900px) {
  :root { --header-h: 92px; }
  .menu-toggle { display: none; }
  .brand { width: 280px; }
  .site-header nav, .site-header nav.open {
    display: flex; position: static; flex-direction: row; align-items: center; gap: clamp(20px, 2.4vw, 34px);
    padding: 0; background: none; border: 0; box-shadow: none; font-size: 0.88rem;
  }
  .site-header nav > a { padding: 8px 0; border: 0; }
  .site-header nav > a:not(.nav-contact)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right 0.2s;
  }
  .site-header nav > a:hover::after, .site-header nav > a.active::after { right: 0; }
  .site-header nav .nav-contact { margin: 0; padding: 12px 18px; gap: 18px; }

  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(40px, 5vw, 80px); }
  .campus { aspect-ratio: auto; height: clamp(480px, 46vw, 640px); }
  .hero-visual { margin-right: 14px; }
  .image-label { left: -28px; bottom: 14px; padding: 26px 30px; min-width: 300px; }

  .statement-band { display: flex; justify-content: center; align-items: center; gap: clamp(36px, 6vw, 80px); font-size: 0.9rem; }
  .statement-band div span { display: inline; }
  .band-separator { display: block; width: 1px; height: 22px; background: rgb(207, 216, 226); transform: rotate(25deg); }

  .about { grid-template-columns: 0.9fr 1.3fr; gap: clamp(48px, 7vw, 100px); }
  .services-heading, .team-heading { grid-template-columns: 1fr auto; align-items: end; gap: 56px; }
  .services-heading > p, .team-heading > p { width: 360px; margin-bottom: 6px; }

  .service { grid-template-columns: 64px 1.1fr 1fr; column-gap: clamp(24px, 3vw, 48px); padding: 36px 40px; }
  .service-detail { padding-top: 0; }

  .method-inner { grid-template-columns: 0.9fr 1.1fr; gap: clamp(56px, 9vw, 130px); }
  .method-copy { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }

  .people { grid-template-columns: 1fr 1fr; gap: 28px; }
  .faq { grid-template-columns: 0.9fr 1.2fr; gap: clamp(48px, 7vw, 100px); }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: start; }

  .footer-top { flex-direction: row; align-items: center; gap: 40px; }
  .footer-top img { width: 260px; }
  .footer-top p { padding-left: 36px; border-left: 1px solid var(--line); }
  .back-top { margin-left: auto; }
  .floating-contact { right: 26px; bottom: 26px; }
}

/* ≤ 1100px: la tarjeta de equipo se apila para no apretar el texto */
@media (min-width: 900px) and (max-width: 1100px) {
  .person { flex-direction: column; }
  .service { grid-template-columns: 48px 1fr; }
  .service-detail { grid-column: 2; }
}

/* =========================================================
   ≥ 1600px — pantallas grandes
   ========================================================= */
@media (min-width: 1600px) {
  :root { --max: 1360px; }
  h1 { font-size: 4.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   v3 — Rediseño visual marcado (misma paleta navy + dorado)
   ========================================================= */

/* Header sobrio */
.site-header { border-bottom: 3px solid var(--gold); }

/* HERO claro (fondo blanco, acorde al logo) */
.hero h1 { font-size: clamp(2.6rem, 7.6vw + 0.3rem, 5rem); }
.campus { box-shadow: 0 30px 60px -32px rgba(8, 41, 78, 0.5); }
.image-label { background: var(--navy); color: var(--white); }
.image-label small { color: rgb(190, 205, 221); }

/* Banda dorada */
.statement-band { background: var(--gold); border: 0; color: var(--navy); font-size: 1rem; }
.statement-band div span { color: rgba(8, 41, 78, 0.8); }
.band-separator { background: rgba(8, 41, 78, 0.35); }

/* Quiénes somos: números grandes */
.principles > div { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.principles span { font-family: var(--serif); font-size: 1.8rem; letter-spacing: 0; font-weight: 400; color: var(--gold-text); }

/* Servicios sobre fondo suave */
.services { width: 100%; max-width: none; border: 0; background: var(--soft);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.service { border: 0; border-top: 0; border-left: 4px solid var(--gold); box-shadow: 0 10px 30px -22px rgba(8, 41, 78, 0.35); }
.service-number { font-size: 2.6rem; color: rgba(8, 41, 78, 0.18); }
.service:hover .service-number { color: var(--gold-text); }
.service-foot { background: var(--navy); border-left-color: var(--gold); }
.service-foot p { color: rgb(200, 214, 229); }
.service-foot strong { color: var(--white); }
.small-mark { color: var(--gold-light); }

/* Método: números dorados con anillo */
.step-number {
  width: 46px; height: 46px; display: grid; place-items: center; margin-top: 0;
  border: 1px solid var(--gold); border-radius: 50%; font-size: 1rem; font-family: var(--sans); font-weight: 700;
}

/* Equipo: segunda tarjeta destacada */
.person { border-top: 4px solid var(--navy); }
.person:nth-child(2) { border-top-color: var(--gold); }

/* FAQ en tarjetas */
.faq-list details { padding: 20px 22px; margin-bottom: 10px; background: var(--soft); border: 0; border-left: 3px solid transparent; transition: border-color 0.2s, background 0.2s; }
.faq-list details:first-child { padding-top: 20px; }
.faq-list details[open] { background: var(--white); border-left-color: var(--gold); box-shadow: 0 14px 30px -24px rgba(8, 41, 78, 0.4); }

/* Contacto oscuro */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); border: 0; color: var(--white); }
.contact h2 { color: var(--white); }
.contact h2 em { color: var(--gold-light); }
.contact .eyebrow { color: rgb(200, 214, 229); }
.contact-copy > p, .country { color: rgb(200, 214, 229); }
.direct-contact { background: rgba(255, 255, 255, 0.06); border-color: rgb(52, 81, 111); color: var(--white); }
.direct-contact > svg { color: var(--gold-light); }
.direct-contact small, .direct-contact span { color: rgb(190, 205, 221); }
.contact form { color: var(--text); }

/* Footer azul marino con logo sobre placa clara */
.footer { width: 100%; max-width: none; background: var(--navy-dark); color: rgb(200, 214, 229);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.footer-top img { background: var(--white); padding: 8px 12px; }
.footer-top p, .back-top, .footer-bottom { color: rgb(200, 214, 229); }
.footer-top p { border-color: rgb(52, 81, 111); }
.footer-bottom { border-top-color: rgb(52, 81, 111); }
.back-top span { color: var(--gold-light); }
.floating-contact { background: var(--gold); color: var(--navy); border-color: var(--white); }
.floating-contact:hover { background: var(--gold-light); }

/* Hero: todo visible (incluido el CTA) en el primer pantallazo de escritorio */
@media (min-width: 900px) {
  .hero {
    padding-block: clamp(20px, 4vh, 56px) clamp(28px, 5vh, 64px);
    min-height: calc(100svh - var(--header-h) - 3px);
    align-items: center;
  }
  .hero .eyebrow { margin-bottom: clamp(10px, 2.2vh, 22px); }
  .hero h1 { font-size: clamp(2.2rem, min(4.6vw, 8.4vh), 4.6rem); line-height: 1.05; margin-bottom: clamp(12px, 2.4vh, 24px); }
  .hero-copy > p { font-size: clamp(0.95rem, 2.2vh, 1.125rem); line-height: 1.7; margin-bottom: 0; }
  .hero-actions { margin-top: clamp(18px, 3.6vh, 32px); }
  .hero-note { margin-top: clamp(16px, 3.4vh, 32px); padding-top: clamp(12px, 2.4vh, 22px); }
  .campus { height: clamp(340px, calc(100svh - var(--header-h) - 150px), 640px); }
  .hero-visual { padding-bottom: 28px; }
}

/* ---------- Refinamiento tipográfico ---------- */
body { font-feature-settings: "kern", "liga", "calt"; font-kerning: normal; line-height: 1.7; }
h1, h2 { letter-spacing: -0.022em; font-feature-settings: "kern", "liga", "dlig"; }
h1 { line-height: 1.05; }
h1 em, h2 em { letter-spacing: -0.015em; }
h3 { letter-spacing: -0.01em; }
.service-title h3, .person h3 { letter-spacing: -0.015em; }
.eyebrow, .service-kicker, .image-label small, .direct-contact small, .photo-index { font-weight: 600; letter-spacing: 0.14em; }
.hero-copy > p, .about-content p, .services-heading > p, .team-heading > p { text-wrap: pretty; }
.about-content .lead { font-family: var(--serif); font-size: clamp(1.25rem, 1.1vw + 1.05rem, 1.55rem); line-height: 1.55; letter-spacing: -0.005em; }
.service-number, .step-number, .principles span { font-variant-numeric: lining-nums; }
.step-number { font-family: var(--sans); }
.button, .site-header nav, .underlined-link { font-weight: 600; letter-spacing: 0.005em; }
.site-header nav > a { font-weight: 500; }
.direct-contact strong { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.statement-band { font-weight: 600; }
.statement-band div span { font-weight: 400; }

/* Botón flotante de WhatsApp */
.floating-contact { background: #25d366; color: #fff; border: 2px solid #fff; width: 58px; height: 58px; box-shadow: 0 8px 26px rgba(8, 41, 78, 0.35); }
.floating-contact:hover { background: #1ebe5a; }
.floating-contact svg { width: 32px; height: 32px; fill: currentcolor; stroke: none; }
.floating-contact::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #25d366; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

/* WhatsApp: verde oficial y más grande en móvil */
.floating-contact, .floating-contact:hover, .floating-contact:focus-visible { color: #fff; }
.floating-contact { background: #25d366; width: 64px; height: 64px; right: 16px; bottom: 16px; }
.floating-contact:hover { background: #1ebe5a; }
.floating-contact svg { width: 36px; height: 36px; }
@media (min-width: 900px) {
  .floating-contact { width: 60px; height: 60px; right: 26px; bottom: 26px; }
  .floating-contact svg { width: 33px; height: 33px; }
}
