/* =========================================================
   Apóstrofe SRL — Sitio corporativo (versión C)
   Dirección: ejecutivo, sobrio. Azul marino + gris acero +
   blanco + acento ámbar discreto. Sin acentos rojos.
   ========================================================= */

:root {
  /* Paleta */
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --steel: #2f5d8c;
  --slate: #4b5b70;
  --slate-2: #6b7a8f;
  --line: #e1e6ee;
  --mist: #f4f6f9;
  --white: #ffffff;
  --amber: #c99a2e;          /* acento sobrio, usado con moderación */
  --amber-dark: #a97f1f;

  /* Tipografía */
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ritmo */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.06);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
/* Sin desbordes laterales. "clip" evita el scroll horizontal igual que
   "hidden", pero sin romper la cabecera fija (position: sticky). */
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.65; color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
::selection { background: var(--steel); color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Contenedor único: mismo ancho y márgenes en todas las secciones */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.rel { position: relative; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1.5px solid transparent; font: 600 .975rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--steel); }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: #d8ab41; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--mist); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(11,31,58,.06); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Marca: la coma roja de Apóstrofe (del folleto 2025) + nombre en azul marino */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.05; position: relative; z-index: 61; }
.brand-mark { height: 46px; width: auto; flex: none; filter: drop-shadow(0 1px 1px rgba(11,31,58,.08)); }
.brand-text { display: flex; flex-direction: column; }
.brand-footer { margin: 0; }
.brand-footer .brand-mark { height: 40px; }
.brand-name { font: 800 1.3rem/1 var(--display); letter-spacing: .06em; color: var(--navy); margin: 0; }
.brand-name b { font-weight: 600; color: var(--steel); letter-spacing: .04em; }
.brand-sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); margin-top: 5px; }
.brand-light { color: #fff; }
.brand-light b { color: #9fb6d3; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { position: relative; font-size: .93rem; font-weight: 500; color: var(--slate); text-decoration: none; padding: 6px 0; transition: color .2s ease; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav a:not(.btn):hover, .nav a.active { color: var(--navy); }
.nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(560px, calc(100svh - 72px), 780px); display: flex; align-items: center; overflow: hidden; }
/* Foto a todo el ancho, encuadre centrado en las personas (sin distorsión) */
/* Escritorio: texto sobre azul a la izquierda y foto completa a la derecha,
   con las personas centradas en su mitad (no quedan detrás del texto). */
.hero { background: var(--navy); }
.hero-bg { position: absolute; top: 0; bottom: 0; left: 48%; right: 0; width: 52%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 48%, rgba(11,31,58,.55) 54%, rgba(11,31,58,.08) 68%, rgba(11,31,58,0) 100%); }
.hero-content > * { max-width: min(540px, 40vw); }
.hero-content { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #e7c77b; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; max-width: 16ch; }
.hero-lead { margin-top: 20px; max-width: 56ch; font-size: clamp(1rem, 1.3vw, 1.125rem); color: rgba(255,255,255,.88); }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Franja de datos ---------- */
.facts { background: var(--navy); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255,255,255,.12); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font: 800 1.9rem/1.1 var(--display); color: #e7c77b; }
.facts span { font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); position: relative; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--navy); color: #fff; overflow: hidden; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .about-copy h2, .trust h2, .contact-info h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
.section-head > p:last-child { margin-top: 14px; color: var(--slate); font-size: 1.05rem; }
.section-head-light > p:last-child { color: rgba(255,255,255,.75); }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.section-dark .kicker { color: #e7c77b; }
.sub-head { font-size: 1.2rem; margin-bottom: 20px; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy p { margin-top: 16px; color: var(--slate); }
.about-copy h2 { margin-bottom: 4px; }
.about-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.mv-card { border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: var(--radius); padding: 28px 30px; background: #fff; }
.mv-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.mv-card p { color: var(--slate); }

/* ---------- Servicios: pestañas ---------- */
.tab-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-list [role="tab"] { font: 600 .93rem/1.3 var(--body); color: var(--slate); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; text-align: left; }
.tab-list [role="tab"]:hover { border-color: var(--steel); color: var(--navy); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tab-panel:not([hidden]) { animation: fadeIn .3s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
/* Foto arriba de la tarjeta, misma proporción en todas las pestañas */
.panel-media { margin: 0; aspect-ratio: 3 / 1; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.panel-body { padding: clamp(24px, 3.5vw, 40px); }
.panel-body h3 { font-size: 1.35rem; margin-bottom: 18px; }
.panel-intro { color: var(--slate); margin: -8px 0 18px; }
.panel-body h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); margin-bottom: 12px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.check { list-style: none; display: grid; gap: 9px; }
.check li { position: relative; padding-left: 26px; color: var(--slate); font-size: .95rem; line-height: 1.5; }
.check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg); }
.check-2col { grid-template-columns: 1fr 1fr; column-gap: 40px; }

/* ---------- Experiencia ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s ease, box-shadow .2s ease; }
.exp-org { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dark); }
.exp-card h4 { font-size: 1.1rem; }
.exp-card p { color: var(--slate); font-size: .93rem; }
.exp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.exp-feature { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.exp-feature figure { margin: 0; aspect-ratio: 16 / 7; overflow: hidden; }
.exp-feature figure img { width: 100%; height: 100%; object-fit: cover; }
.exp-feature-body { padding: 26px 28px 30px; }
.exp-feature-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.exp-feature-body > p { color: var(--slate); font-size: .95rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chips li { font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.note { font-size: .9rem !important; }
.census { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .9rem; }
.census th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); padding: 8px 10px 8px 0; border-bottom: 2px solid var(--line); }
.census td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--slate); vertical-align: top; }
.census td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- Alianzas ---------- */
.cards-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ally { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.ally-place { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #e7c77b; font-weight: 600; }
.ally h3 { font-size: 1.02rem; }
.ally p { font-size: .88rem; color: rgba(255,255,255,.78); }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; background: var(--mist); }
.person-body { padding: 16px 16px 20px; }
.person h3 { font-size: 1rem; }
.flag { display: inline-block; font: 600 .66rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); background: #eaf1f8; border-radius: 4px; padding: 4px 6px; margin-left: 2px; vertical-align: 2px; }
.role { font-size: .85rem; font-weight: 600; color: var(--steel); margin-top: 6px; }
.person-body p:last-child { font-size: .83rem; color: var(--slate); margin-top: 6px; line-height: 1.5; }

/* ---------- Clientes ---------- */
.client-feature { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 8px; }
.client-feature h3 { font-size: 1.2rem; }
.client-feature p { color: var(--slate); margin-top: 8px; }
.logo-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.logo-boards figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2vw, 24px); }

/* ---------- Transparencia ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.trust-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.trust-media img { width: 100%; height: 100%; object-fit: cover; }
.trust p:not(.kicker) { margin-top: 14px; color: var(--slate); }
.sign { font-weight: 600; color: var(--navy) !important; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info > p:not(.kicker) { margin-top: 14px; color: rgba(255,255,255,.8); max-width: 46ch; }
.contact-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: rgba(255,255,255,.9); line-height: 1.45; }
.contact-list svg, .map-pin svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #e7c77b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.locate { display: flex; gap: 16px; margin-top: 28px; align-items: stretch; flex-wrap: wrap; }
.map-card { flex: 1 1 200px; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); text-decoration: none; transition: background-color .2s ease; }
.map-card:hover { background: rgba(255,255,255,.12); }
.map-card strong { display: block; }
.map-card small { color: rgba(255,255,255,.7); }
.map-pin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(231,199,123,.12); }
.qr { margin: 0; background: #fff; border-radius: var(--radius); padding: 10px; text-align: center; width: 132px; }
.qr img { width: 112px; height: 112px; margin-inline: auto; image-rendering: pixelated; }
.qr figcaption { font-size: .7rem; color: var(--slate); margin-top: 4px; }

.form { background: #fff; color: var(--navy); border-radius: 12px; padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form h3 { font-size: 1.2rem; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .88rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--slate-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--navy); background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(47,93,140,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b4432f; background: #fff7f5; }
.err { font-size: .83rem; color: #a3341f; }
.err:empty { display: none; }
.check-field, .field.check { grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; }
.field.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--steel); }
.field.check label { font-weight: 400; color: var(--slate); }
.field.check .err { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-actions .btn { flex: 1 1 200px; }
.form-success { background: #eef6f0; border-left: 3px solid #2e7d4f; border-radius: 6px; padding: 14px 16px; font-size: .93rem; }
.form-success a { font-weight: 600; color: #1f6a3f; }

/* ---------- Pie ---------- */
.footer { background: #071528; color: rgba(255,255,255,.75); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-tag { margin-top: 12px; font-size: .92rem; max-width: 36ch; }
.footer h3 { font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 4px; font-size: .92rem; }
.footer ul a { display: inline-block; padding-block: 5px; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px 22px; padding-right: calc(var(--gutter) + 72px); border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.to-top { text-decoration: none; display: inline-block; padding-block: 6px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #1f8f4e; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(11,31,58,.25); transition: transform .2s var(--ease-out), background-color .2s ease; }
.wa-float:hover { background: #18773f; }
.wa-float:active { transform: scale(.94); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Aparición al hacer scroll (solo si se acepta movimiento) ---------- */
.reveal-on .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-on .rv.in { opacity: 1; transform: none; }

/* Movimiento al pasar el mouse: solo con puntero real */
@media (hover: hover) and (pointer: fine) {
  .exp-card:hover { border-color: #c9d4e3; box-shadow: var(--shadow); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .exp-split { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  /* Menú móvil. El desenfoque de la cabecera se quita aquí porque convierte a la
     cabecera en el marco del menú fijo y lo dejaría atrapado en 64 px de alto. */
  .site-header { backdrop-filter: none; background: #fff; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 61; }
  .menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; background: #fff; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 88px var(--gutter) 40px; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility 0s .18s; }
  .nav.open { visibility: visible; opacity: 1; transition: opacity .25s var(--ease-out); }
  .nav a:not(.btn) { font: 700 1.5rem/1.2 var(--display); color: var(--navy); padding: 8px 0; }
  .nav-cta { margin-top: 20px; }
  .header-inner { height: 64px; }
  .brand-mark { height: 40px; }
  .brand-name { font-size: 1.15rem; }

  /* Móvil: foto completa arriba como banda, texto debajo sobre azul */
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-bg { position: relative; left: 0; width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .hero-shade { inset: auto 0 auto 0; top: 0; height: calc(100vw * 2 / 3); background: linear-gradient(180deg, rgba(11,31,58,0) 60%, var(--navy) 100%); }
  .hero-content { padding-block: 28px 48px; }
  .hero-content > * { max-width: none; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 20px 16px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .facts-grid > div:nth-child(-n+2) { border-top: 0; }
  .facts-grid > div:nth-child(odd) { padding-left: 0; }
  .facts-grid > div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .about-grid, .trust-grid, .contact-grid, .mv-grid, .logo-boards { grid-template-columns: 1fr; }
  .trust-media { order: -1; }
  .panel-media { aspect-ratio: 16 / 8; }
  .check-2col { grid-template-columns: 1fr; }
  .cards-5 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cards-3, .cols-2, .cols-3, .cards-5 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person-body { padding: 12px 12px 16px; }
  .person-body p:last-child { font-size: .8rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tab-list [role="tab"] { flex: 1 1 100%; border-radius: 8px; }
  .facts strong { font-size: 1.6rem; }
  .census { font-size: .84rem; }
  .footer-base { padding-right: var(--gutter); padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
