/* ============================================================
   Marea Viva — sistema de diseño para páginas internas
   Sistemas Leal · dark editorial · sol racionado · una banda arena
   ============================================================ */
:root {
  --ocean: #0b3d4c;
  /* la banda profunda tenía 1.13:1 contra --ocean: imperceptible, el ritmo de
     secciones no se leía. A #072a35 sube a 1.28:1 — se nota sin gritar. */
  --ocean-deep: #072a35;
  --teal: #14697d;
  --agua: #1a8a9e;
  --agua-claro: #6bc5d2;
  --sol: #e8a643;
  --sol-hover: #d4952e;
  --arena: #f5f2ec;
  --ink-body: rgba(255, 255, 255, 0.7);
  --ink-micro: rgba(255, 255, 255, 0.62);
  --hairline: rgba(255, 255, 255, 0.12);
  --wa: #25d366;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ocean);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* grain editorial */
body::before {
  content: ""; position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSIyIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjUiLz48L3N2Zz4=");
  opacity: 0.03; pointer-events: none; z-index: 999;
}

/* ---------- tipografía ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--agua-claro); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--sol); flex: none; }
.eyebrow.centered { justify-content: center; }
.serif-i, .serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sol); }
.accent { color: var(--sol); }

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

/* ---------- reveals ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-on { opacity: 1; transform: none; }

/* El contenido del hero vive SOBRE EL PLIEGUE: nunca debe depender de JS para
   verse. Se anima con keyframes puro (fill both) en lugar del observer, igual
   que la home — si el JS falla o tarda, el titular sigue visible. */
.page-hero [data-reveal] {
  animation: heroRise 0.6s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
  transition: none;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 43, 54, 0.86); backdrop-filter: blur(10px); border-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav-brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--ink-body); transition: color 0.2s; padding: 11px 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-cta {
  font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25); transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--sol); background: rgba(232, 166, 67, 0.08); }
.nav-burger { display: none; width: 44px; height: 44px; margin-right: -7px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; }
.nav-burger span { display: block; width: 30px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ============ PAGE HERO ============ */
.page-hero {
  position: relative; padding: 168px 0 72px;
  background: radial-gradient(120% 90% at 50% 0%, var(--ocean) 55%, var(--ocean-deep) 100%);
  overflow: hidden;
}
.page-hero .breadcrumb { font-size: 13px; color: var(--ink-micro); margin-bottom: 26px; }
.page-hero .breadcrumb a { display: inline-block; padding: 6px 2px; }
.page-hero .breadcrumb a:hover { color: var(--agua-claro); }
.page-hero h1 { font-size: clamp(40px, 6.5vw, 78px); max-width: 16ch; }
.page-hero .lead { max-width: 40ch; font-size: 19px; color: var(--ink-body); margin-top: 24px; }
/* el canvas es un elemento reemplazado: sin width/height explícitos usaría su
   tamaño intrínseco (300x150) en vez de estirarse con inset:0 */
.page-hero .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.7; }
.page-hero > .wrap { position: relative; z-index: 1; }

/* ============ SECCIÓN GENÉRICA ============ */
section.block { padding: 96px 0; position: relative; }
section.block.tight { padding: 64px 0; }
.block h2 { font-size: clamp(30px, 4.4vw, 48px); }
.block .section-sub { max-width: 42ch; font-size: 17px; color: var(--ink-body); margin-top: 16px; }
.block-head { margin-bottom: 48px; }

/* bandas alternas */
.band-arena { background: var(--arena); color: var(--ocean); }
.band-arena .eyebrow { color: var(--teal); }
.band-arena .serif-accent, .band-arena .accent { color: var(--teal); }
.band-arena .section-sub, .band-arena p { color: #4a6572; }
/* el sol sobre arena da 1.89:1 — sobre banda clara todo acento va en teal */
.band-arena .card-ico, .band-arena .stat strong { color: var(--teal); }
.band-arena .eyebrow::before { background: var(--teal); }
.band-arena .faq-q::after { color: var(--teal); }
.band-deep { background: var(--ocean-deep); }

/* ============ SERVICIO / FEATURE ROWS (índice editorial) ============ */
.feature-rows { border-top: 1px solid var(--hairline); }
.feature-row {
  position: relative; display: grid; grid-template-columns: 88px 1fr auto; gap: 20px;
  align-items: baseline; padding: 40px 12px; border-bottom: 1px solid var(--hairline);
  /* el desplazamiento al hover va por transform (compositor), no por
     padding-left: animar padding provoca reflow en cada frame */
  transition: background 0.2s ease;
}
.feature-row .num {
  font-size: 60px; font-weight: 300; line-height: 1; color: rgba(255, 255, 255, 0.38);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease, transform 0.3s var(--ease-out);
}
.feature-row > div { transition: transform 0.3s var(--ease-out); }
.feature-row h3 { font-size: 26px; }
.feature-row p { margin-top: 8px; font-size: 15px; color: var(--ink-body); max-width: 37ch; }
.feature-row .dato { font-size: 13px; font-weight: 600; color: var(--agua-claro); white-space: nowrap; transition: color 0.2s, transform 0.25s; }
@media (hover: hover) {
  .feature-row:hover { background: rgba(255, 255, 255, 0.03); }
  .feature-row:hover .num, .feature-row:hover > div { transform: translateX(12px); }
  .feature-row:hover .num { color: var(--sol); }
  .feature-row:hover .dato { color: var(--sol); transform: translateX(-6px); }
}

/* ============ CARDS GRID ============ */
/* auto-fill y no auto-fit: auto-fit colapsa las pistas vacías y una tarjeta
   suelta se estiraría a todo el ancho, midiendo el doble que la misma tarjeta
   de la sección de al lado. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
/* Modificador para grupos de 3 y de 6: en 1160px la rejilla base da 4 columnas,
   así que 3 dejaban un hueco y 6 partían en 4+2 (fila huérfana). Con 3 columnas
   fijas, 3 dan una fila limpia y 6 dan dos. */
.cards.cards-3, .blog-grid.cards-3 { grid-template-columns: repeat(3, 1fr); }
/* Y para las comparaciones a dos columnas (mercado vs. nosotros), que antes
   dependían de que auto-fit estirara las pistas vacías. */
.cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--hairline); border-radius: 16px; padding: 28px;
  background: rgba(255, 255, 255, 0.02); transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.card:hover { border-color: rgba(107, 197, 210, 0.4); transform: translateY(-3px); }
.card .card-ico { width: 44px; height: 44px; color: var(--sol); margin-bottom: 16px; }
.card h3 { font-size: 20px; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-body); }
.band-arena .card { background: rgba(11, 61, 76, 0.03); border-color: rgba(11, 61, 76, 0.12); }
.band-arena .card p { color: #4a6572; }
.band-arena .card:hover { border-color: rgba(20, 105, 125, 0.4); }

/* stat / métricas */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.stat strong { display: block; font-size: 40px; font-weight: 700; line-height: 1.05; color: var(--sol); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-body); }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; font-size: 18px; font-weight: 600; color: #fff;
}
.faq-q::after { content: "+"; font-size: 26px; color: var(--sol); font-weight: 400; transition: transform 0.3s; flex: none; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
/* grid-template-rows 0fr→1fr no necesita medir altura: no recorta al hacer zoom */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a.open { grid-template-rows: 1fr; }
/* [hidden] es una regla del navegador de baja especificidad: sin esto,
   .faq-a { display:grid } la ganaba y el panel cerrado seguia visible */
.faq-a[hidden] { display: none; }
.faq-a > div { padding: 0 0 24px; font-size: 16px; color: var(--ink-body); max-width: 46ch; }

/* ============ BOTONES ============ */
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sol); color: var(--ocean); font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 10px; transition: background 0.2s, transform 0.2s;
}
.btn-solid:hover { background: var(--sol-hover); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 10px; transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--agua-claro); background: rgba(26, 138, 158, 0.1); }
.btn-wa {
  display: inline-flex; align-items: center; gap: 12px; background: var(--sol); color: var(--ocean);
  font-weight: 700; font-size: 17px; padding: 17px 34px; border-radius: 12px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-wa:hover { background: var(--sol-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 166, 67, 0.25); }
.band-arena .btn-ghost { border-color: rgba(11,61,76,0.25); color: var(--ocean); }
.band-arena .btn-ghost:hover { border-color: var(--teal); background: rgba(20,105,125,0.08); }

/* ============ BOTTOM CTA ============ */
.bottom-cta { text-align: center; padding: 110px 0; }
.bottom-cta h2 { font-size: clamp(34px, 5.5vw, 64px); max-width: 18ch; margin: 0 auto; }
.bottom-cta .sub { max-width: 54ch; margin: 22px auto 0; font-size: 17px; color: var(--ink-body); }
.bottom-cta .cta-row { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--hairline); padding: 64px 0 40px; background: var(--ocean-deep); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; }
.footer p.foot-desc { font-size: 14px; color: var(--ink-micro); max-width: 32ch; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-micro); margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 14px; color: var(--ink-body); transition: color 0.2s; }
.footer li a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-micro); }

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.02); transition: border-color 0.25s, transform 0.25s var(--ease-out);
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: rgba(107,197,210,0.4); transform: translateY(-3px); }
.blog-card .bc-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card .bc-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--agua-claro); }
.blog-card h3 { font-size: 21px; margin-top: 10px; }
.blog-card p { font-size: 14.5px; color: var(--ink-body); margin-top: 10px; flex: 1; }
.blog-card .bc-more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--sol); }
.article { max-width: 660px; margin: 0 auto; }
.article .lead { font-size: 20px; color: var(--ink-body); margin: 24px 0; }
.article h2 { font-size: 30px; margin: 44px 0 16px; }
.article h3 { font-size: 22px; margin: 32px 0 12px; }
.article p { font-size: 17px; color: rgba(255,255,255,0.82); margin: 16px 0; }
.article ul, .article ol { margin: 16px 0 16px 24px; color: rgba(255,255,255,0.82); font-size: 17px; }
.article li { margin: 8px 0; }
.article a { color: var(--agua-claro); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote { border-left: 2px solid var(--sol); padding-left: 22px; margin: 28px 0;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--sol); }

/* lang toggle */
.lang-toggle { font-size: 13px; font-weight: 600; color: var(--ink-body); padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 6px; transition: border-color .2s, color .2s; }
.lang-toggle:hover { color: #fff; border-color: var(--agua-claro); }

/* menú móvil: oculto por defecto (solo aparece bajo el burger en móvil) */
.nav-menu-mobile { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  /* tablet: 3 columnas fijas quedarían por debajo del mínimo legible */
  .cards.cards-3, .blog-grid.cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-right .nav-link, .nav-right .lang-toggle { display: none; }
  .nav-burger { display: flex; }
  .nav-menu-mobile {
    position: fixed; inset: 72px 0 auto 0; background: rgba(7,43,54,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline); padding: 24px; display: none; flex-direction: column; gap: 18px; z-index: 49;
  }
  .nav-menu-mobile.open { display: flex; }
  .nav-menu-mobile a { font-size: 17px; color: #fff; }
}
@media (max-width: 640px) {
  /* En pantallas chicas la marca y el CTA se amontonaban y partían en dos
     líneas: el CTA ya vive dentro del menú móvil, así que aquí se retira. */
  .nav-brand { white-space: nowrap; }
  .nav-right .nav-cta { display: none; }
  /* móvil: una sola columna */
  .cards.cards-3, .blog-grid.cards-3, .cards.cards-2 { grid-template-columns: 1fr; }
  section.block { padding: 72px 0; }
  .page-hero { padding: 128px 0 56px; }
  .feature-row { grid-template-columns: 52px 1fr; }
  .feature-row .num { font-size: 38px; }
  .feature-row .dato { grid-column: 2; white-space: normal; }
  .footer-cols { grid-template-columns: 1fr; }
  .bottom-cta .cta-row { flex-direction: column; }
  .bottom-cta .cta-row > * { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: opacity 0.2s; }
  .page-hero [data-reveal] { animation: none; opacity: 1; transform: none; }
  body::before { display: none; }
}

/* ============================================================
   CAPA DE IMPACTO — síntesis del panel de diseño (2026-07-24)
   Todo CSS puro: 0 KB de JavaScript adicional.
   Se apoya en la clase .is-on que el IntersectionObserver ya coloca.
   ============================================================ */

/* --- 1. La constelación se disuelve hacia abajo (mata el corte duro) --- */
.page-hero .hero-canvas {
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  animation: canvasIn 1.6s ease-out both;
}
@keyframes canvasIn { from { opacity: 0; } to { opacity: 0.7; } }

/* --- 2. Costura de luz entre el hero y la primera sección --- */
.page-hero + section { position: relative; }
.page-hero + section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 197, 210, 0.32), transparent);
}

/* --- 3. Cortina editorial: los titulares se imprimen de izq. a der. --- */
.page-hero h1[data-reveal] {
  padding-bottom: 0.12em; margin-bottom: -0.12em;      /* aire a descendentes */
  animation: heroCurtain 1s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
@keyframes heroCurtain {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(0.14em); }
  to   { opacity: 1; clip-path: inset(0 0 0 0);    transform: none; }
}
section.block h2[data-reveal], .bottom-cta h2[data-reveal] {
  padding-bottom: 0.12em; margin-bottom: -0.12em;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out),
              clip-path 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
section.block h2[data-reveal].is-on, .bottom-cta h2[data-reveal].is-on {
  clip-path: inset(0 0 0 0);
}

/* --- 4. El filete del eyebrow se traza --- */
.eyebrow::before { transform-origin: left; }
.eyebrow[data-reveal]::before {
  transform: scaleX(0);
  transition: transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 150ms);
}
.eyebrow[data-reveal].is-on::before { transform: scaleX(1); }
.page-hero .eyebrow::before {
  animation: drawRule 0.7s var(--ease-out) both;
  animation-delay: calc(var(--d, 0ms) + 220ms);
}
@keyframes drawRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- 5. Ritmo automático: los hijos de cada rejilla entran escalonados
        (arregla el "todo aparece de golpe" sin tocar el HTML) --- */
:is(.cards, .blog-grid, .stats, .feature-rows) > *:nth-child(2) { --d: 70ms; }
:is(.cards, .blog-grid, .stats, .feature-rows) > *:nth-child(3) { --d: 140ms; }
:is(.cards, .blog-grid, .stats, .feature-rows) > *:nth-child(4) { --d: 210ms; }
:is(.cards, .blog-grid, .stats, .feature-rows) > *:nth-child(5) { --d: 280ms; }
:is(.cards, .blog-grid, .stats, .feature-rows) > *:nth-child(n+6) { --d: 350ms; }

/* --- 6. Anillo de luz en tarjetas al hover (solo anima opacity) --- */
.card, .blog-card { position: relative; isolation: isolate; }
.card::after, .blog-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--agua-claro), var(--sol));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease-out); pointer-events: none;
}
@media (hover: hover) {
  .card:hover::after, .blog-card:hover::after { opacity: 0.85; }
}

/* --- 7. Subrayado que se traza en el nav + "estás aquí" en sol --- */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::after { background: var(--sol); transform: scaleX(1); }

/* --- 8. Filete editorial sobre cada métrica --- */
.stat { position: relative; padding-top: 18px; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--hairline);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero .hero-canvas { animation: none; opacity: 0.7; }
  .page-hero h1[data-reveal] { animation: none; clip-path: none; }
  section.block h2[data-reveal], .bottom-cta h2[data-reveal] { clip-path: none; transition: opacity 0.2s; }
  .eyebrow[data-reveal]::before, .page-hero .eyebrow::before { animation: none; transform: scaleX(1); transition: none; }
  .card::after, .blog-card::after { transition: none; }
  .nav-link::after { transition: none; }
}

/* ============================================================
   ACCESIBILIDAD — el sitio no definía NINGUNA regla de foco:
   quien navega con teclado no veía dónde estaba parado.
   Doble tono para que se vea sobre ocean, sobre arena y sobre sol.
   ============================================================ */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--sol);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px rgba(11, 61, 76, 0.85);
}
.band-arena :where(a, button):focus-visible {
  outline-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(245, 242, 236, 0.9);
}

/* Salto al contenido (primer tabulador de la página) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sol); color: var(--ocean);
  font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* Sólo para lectores de pantalla */
.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;
}

@media (prefers-reduced-motion: reduce) {
  /* movimiento que sobrevivía al ajuste del sistema */
  .faq-a, .faq-q::after,
  .card, .blog-card, .btn-solid, .btn-wa, .btn-ghost, .nav-cta, .nav-link,
  .feature-row, .feature-row .num, .feature-row > div, .feature-row .dato,
  .skip-link { transition: none !important; }
  .page-hero .hero-canvas { animation: none; }
}

/* ============ CONTACTO ============ */
/* la tarjeta de Kala es <button>: hay que neutralizar el estilo de UA */
button.contacto-card {
  width: 100%; font: inherit; text-align: left; cursor: pointer; color: inherit;
  display: block;
}
.contacto-card .dato {
  margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--agua-claro);
}
.band-arena .contacto-card .dato { color: var(--teal); }

.form-contacto {
  margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px;
  max-width: 780px;
}
.campo-ancho { grid-column: 1 / -1; }
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ocean);
}
.campo .req { color: #b4451f; }
.campo input, .campo select, .campo textarea {
  font-family: var(--sans); font-size: 15.5px; color: var(--ocean);
  background: #fff; border: 1px solid rgba(11, 61, 76, 0.22); border-radius: 10px;
  padding: 13px 15px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.campo textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.campo input::placeholder, .campo textarea::placeholder { color: #5c6f7a; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 105, 125, 0.16);
}
.campo input.malo, .campo textarea.malo { border-color: #b4451f; }
/* el error se anuncia por texto, no sólo por color */
.campo-err { margin: 0; font-size: 13px; font-weight: 600; color: #96371a; }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-envio { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-contacto .btn-solid { border: 0; cursor: pointer; font-family: var(--sans); }
.form-contacto .btn-solid:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-nota { margin: 0; font-size: 13px; color: #5c6f7a; max-width: 42ch; }
.form-estado { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 600; }
.form-estado:empty { display: none; }
.form-estado.bien { color: #1a6b4a; }
.form-estado.mal { color: #96371a; }
.form-estado a { color: inherit; text-decoration: underline; }

@media (max-width: 620px) {
  .form-contacto { grid-template-columns: 1fr; gap: 18px; }
  .form-envio { flex-direction: column; align-items: stretch; }
  .form-contacto .btn-solid { justify-content: center; }
}

/* ============ FUNDADOR ============ */
.fundador { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.fundador.con-foto { grid-template-columns: 340px 1fr; }
.fundador-foto { margin: 0; }
.fundador-foto img {
  width: 100%; height: auto; aspect-ratio: 42 / 52; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
}
.fundador-texto h3 { font-size: 26px; }
.fundador-rol {
  margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--agua-claro);
}
.fundador-texto > p { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--ink-body); max-width: 62ch; }
.fundador-firma a {
  font-weight: 700; color: var(--sol);
  text-decoration: underline; text-underline-offset: 4px;
}
.fundador-firma a:hover { color: var(--sol-hover); }

@media (max-width: 800px) {
  .fundador.con-foto { grid-template-columns: 1fr; gap: 28px; }
  .fundador-foto { max-width: 260px; }
}
.fundador:not(.con-foto) .fundador-foto { display: none; }
