/* ==========================================================================
   RENVO — Landing page
   Mobile-first (375px) → 1440px. Solo #4ebdc6, #1e9bc0, #0c2527, blanco y grises.
   ========================================================================== */

:root {
  /* Marca */
  --navy: #0c2527;
  --sky: #1e9bc0;
  --teal: #4ebdc6;
  --white: #ffffff;

  /* Neutros */
  --ink: var(--navy);
  --ink-2: #3f5355;          /* texto secundario, 8.3:1 sobre blanco */
  --gray-50: #f4f7f7;
  --gray-100: #e9eeee;
  --gray-200: #d9e1e1;
  --gray-400: #8a9a9b;

  /* Azul muy claro (tintes de marca al ~7–8% sobre blanco) */
  --tint-a: #f1fafa;         /* turquesa #4ebdc6 al 8% */
  --tint-b: #eef7fb;         /* azul cielo #1e9bc0 al 7% */

  /* Tipografía */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);     /* 34 → 56 */
  --fs-h2: clamp(1.625rem, 1.3rem + 1.5vw, 2.5rem);     /* 26 → 40 */
  --fs-h3: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);   /* 18 → 20 */
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);    /* 16 → 18 */
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;

  /* Espacio (8pt) */
  --gutter: 20px;
  --section-y: clamp(72px, 5rem + 3vw, 120px);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Sombras con tinte marino */
  --shadow-sm: 0 1px 2px rgba(12, 37, 39, 0.06), 0 2px 8px rgba(12, 37, 39, 0.05);
  --shadow: 0 1px 2px rgba(12, 37, 39, 0.06), 0 8px 24px rgba(12, 37, 39, 0.08);
  --shadow-lg: 0 2px 4px rgba(12, 37, 39, 0.06), 0 20px 48px rgba(12, 37, 39, 0.14);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 64px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, p, li, figcaption, summary, a { overflow-wrap: anywhere; }
.gallery > *, .services > *, .steps > *, .reasons > *, .hero__grid > *, .step > *, .reason > * { min-width: 0; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a, button, summary, [role="slider"] { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--teal); }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; outline-color: var(--teal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 140ms var(--ease-out), box-shadow 200ms ease;
}
/* Velo marino para el hover: oscurece un poco (mejora el contraste en vez de bajarlo) */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  opacity: 0;
  transition: opacity 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn__icon { width: 1.25em; height: 1.25em; flex: none; }

/* Principal: texto blanco sobre #1e9bc0 → solo AA en texto grande (≥19px bold) */
.btn--primary {
  background: var(--sky);
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(12, 37, 39, 0.12), 0 6px 16px rgba(30, 155, 192, 0.28);
}
/* Secundario: texto marino sobre turquesa → 7.2:1 */
.btn--secondary {
  background: var(--teal);
  color: var(--navy);
}
.btn--sm { min-height: 44px; padding: 10px 14px; gap: 8px; font-size: 0.875rem; white-space: nowrap; }
.btn--lg { min-height: 56px; padding: 14px 28px; }
.btn--xl { min-height: 60px; padding: 16px 32px; font-size: 1.25rem; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { opacity: 0.12; }
  .btn--primary:hover { box-shadow: 0 2px 4px rgba(12, 37, 39, 0.12), 0 10px 24px rgba(30, 155, 192, 0.34); }
  .btn--secondary:hover::after { opacity: 0.1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
/* La sombra aparece al hacer scroll: solo se anima opacity */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: 0 1px 0 var(--gray-100), 0 8px 24px rgba(12, 37, 39, 0.08);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.site-header.is-compact::after { opacity: 1; }

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: none;
  border-radius: 8px;
  transform-origin: left center;
  transition: transform 240ms var(--ease-out);
}
.site-header__logo img { width: 112px; height: auto; }
@media (min-width: 768px) { .site-header__logo img { width: 136px; } .btn--sm { font-size: 0.9375rem; padding-inline: 18px; } }
.site-header.is-compact .site-header__logo { transform: scale(0.86); }

@media (max-width: 369px) {
  .hide-xs { display: none; }
  .btn--lg, .btn--xl { padding-inline: 16px; gap: 8px; }
  .hero__lead { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: clamp(56px, 4rem + 2vw, 96px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(95% 65% at 100% 0%, rgba(78, 189, 198, 0.42), transparent 68%),
    radial-gradient(85% 60% at 0% 100%, rgba(30, 155, 192, 0.26), transparent 72%),
    linear-gradient(180deg, #f4fbfc 0%, #e4f3f7 100%);
}
.hero__grid {
  display: grid;
  gap: 32px;
}
.hero__copy { display: grid; gap: 16px; justify-items: start; }
.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero__lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
  max-width: 34ch;
}
.hero__actions { display: grid; gap: 10px; justify-items: start; margin-top: 8px; width: 100%; }
.hero__actions .btn { width: 100%; }
.hero__note { font-size: var(--fs-sm); color: var(--ink-2); }

.hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
  aspect-ratio: 1200 / 750;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__divider {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(12, 37, 39, 0.08);
}

@media (min-width: 600px) {
  .hero__actions .btn { width: auto; }
}

@media (min-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 64px); }
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 56px;
  }
  .hero__copy { gap: 20px; }
}

/* Etiquetas Antes / Después */
.tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 37, 39, 0.86);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.tag--left { left: 12px; }
.tag--right { right: 12px; }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--tint { background: linear-gradient(180deg, var(--tint-a) 0%, var(--tint-b) 100%); }
/* Resultados reales: azul un poco más presente (turquesa ~14% → azul cielo ~13%) */
#resultados { background: linear-gradient(180deg, #e6f6f7 0%, #e2f2f7 100%); }
.section--fade { background: linear-gradient(180deg, var(--white) 0%, var(--tint-b) 100%); }
.section--bubbles { overflow: hidden; }

/* El contenido siempre por encima de burbujas y ondas */
.hero > .container,
.section > .container,
.cta > .container { position: relative; z-index: 1; }

/* ---------- Ondas separadoras ---------- */
.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 0;
  width: 100%;
  height: clamp(28px, 4vw, 56px);
  pointer-events: none;
}

/* ---------- Burbujas decorativas ----------
   Solo transform y opacity. La capa externa sube (linear, como algo que flota),
   la interna se mece de lado a lado (ease-in-out). El brillo es un fondo estático. */
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  --rise: 900px;
}
@supports (height: 1cqh) {
  .bubbles { container-type: size; }
  .bubble { --rise: calc(100cqh + 80px); }
}
.bubble {
  position: absolute;
  left: var(--x);
  bottom: calc(var(--s) * -1);
  width: var(--s);
  height: var(--s);
  opacity: 0;
  animation: bubble-rise var(--d) linear var(--dl) infinite;
  will-change: transform, opacity;
}
.bubble i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 155, 192, 0.7);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 10%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 50%, rgba(78, 189, 198, 0.12) 45%, rgba(30, 155, 192, 0.42) 100%);
  animation: bubble-sway var(--sw) ease-in-out infinite alternate;
}
.bubbles--dark .bubble i {
  border-color: rgba(78, 189, 198, 0.55);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0 10%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 50%, rgba(78, 189, 198, 0) 52%, rgba(78, 189, 198, 0.28) 100%);
}
@keyframes bubble-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: var(--o); }
  85% { opacity: var(--o); }
  100% { transform: translate3d(0, calc(var(--rise) * -1), 0); opacity: 0; }
}
@keyframes bubble-sway {
  from { transform: translate3d(-10px, 0, 0); }
  to { transform: translate3d(10px, 0, 0); }
}
/* En celular, 5 burbujas por sección */
@media (max-width: 767px) {
  .bubble:nth-child(n + 6) { display: none; }
}
.section__head { display: grid; gap: 10px; margin-bottom: clamp(28px, 2rem + 1vw, 48px); max-width: 640px; }
.section__sub { color: var(--ink-2); }
.section__cta { display: flex; justify-content: center; margin-top: clamp(32px, 2rem + 1vw, 48px); }
.section__cta .btn { width: 100%; }
@media (min-width: 600px) { .section__cta .btn { width: auto; } }

/* ---------- Servicios ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(78, 189, 198, 0.16);
  color: var(--navy);
}
.card__icon svg, .reason__icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__text { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 12px; }

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .card { grid-column: span 2; }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .card:nth-child(5) { grid-column: span 2; justify-self: stretch; width: auto; }
}

/* Entrada escalonada de tarjetas (solo con JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 420ms var(--ease-out) calc(var(--i, 0) * 60ms),
    transform 520ms var(--ease-out) calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Antes / Después ---------- */
.gallery {
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.ba { margin: 0; }
.ba__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-200);
  box-shadow: var(--shadow);
  /* El navegador conserva el scroll vertical; el gesto horizontal es nuestro */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: ew-resize;
  isolation: isolate;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* Capa "después": se mueve con transform (compositor), sin repintar */
.ba__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate3d(50%, 0, 0);
  will-change: transform;
}
.ba__after .ba__img { transform: translate3d(-50%, 0, 0); will-change: transform; }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  z-index: 4;
  width: 44px;
  margin-left: -22px;
  display: grid;
  place-items: center;
  outline: none;
  will-change: transform;
}
.ba.is-ready .ba__handle { left: 0; }
.ba__handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(12, 37, 39, 0.1);
}
.ba__knob {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(12, 37, 39, 0.22);
  transition: transform 160ms var(--ease-out);
}
.ba__knob svg { width: 22px; height: 22px; }
.ba.is-dragging .ba__knob { transform: scale(1.08); }
.ba__handle:focus-visible .ba__knob { outline: 3px solid var(--navy); outline-offset: 3px; }

.ba__caption {
  margin-top: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.ba--single .ba__frame { cursor: default; touch-action: auto; }
.ba__placeholder {
  display: grid;
  place-items: center;
  background: var(--gray-200);
  border: 2px dashed var(--gray-400);
  box-shadow: none;
}
.ba__placeholder span {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.ba__single-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cómo funciona ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--tint-a);
  border: 1px solid rgba(78, 189, 198, 0.22);
}
.step__num {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}
.step__title { margin-bottom: 4px; padding-top: 8px; }
.step__text { color: var(--ink-2); font-size: 0.9375rem; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { grid-template-columns: 1fr; padding: 28px; }
  .step__title { padding-top: 4px; }
}

/* ---------- Por qué RENVO ---------- */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.reason__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(30, 155, 192, 0.12);
  color: var(--navy);
}
.reason__title { margin-bottom: 4px; }
.reason__text { color: var(--ink-2); font-size: 0.9375rem; }

@media (min-width: 700px) {
  .reasons { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .reason { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- Cobertura ---------- */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.9375rem;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.chip::before { flex: none; }
.chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.coverage__note { margin-top: 24px; color: var(--ink-2); }
.coverage__note a { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__chev {
  position: relative;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--gray-50);
  transition: transform 220ms var(--ease-out);
}
.faq__chev::before {
  content: "";
  position: absolute;
  left: 50%; top: 45%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translate(-50%, -50%) rotate(45deg);
}
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 20px 20px; color: var(--ink-2); }
.faq__item[open] .faq__a { animation: faq-in 220ms var(--ease-out); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .faq__q:hover .faq__chev { background: var(--gray-100); }
}

/* ---------- CTA final ---------- */
.cta {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--section-y);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(78, 189, 198, 0.22), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: center; }
.cta__title { color: var(--white); font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.015em; max-width: 18ch; }
.cta__text { color: rgba(255, 255, 255, 0.82); margin-bottom: 12px; }
.cta .btn { width: 100%; max-width: 420px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 48px;
  /* espacio para que el botón flotante no tape el texto */
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-sm);
}
.footer__inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer__logo { width: 150px; height: auto; }
.footer__slogan { color: rgba(255, 255, 255, 0.82); }
.footer a { color: var(--white); }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__copy { color: rgba(255, 255, 255, 0.7); }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social__link {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.social__link svg { width: 22px; height: 22px; }
.social__link:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .social__link:hover { background: rgba(78, 189, 198, 0.24); }
}

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed;
  z-index: 60;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(12, 37, 39, 0.18), 0 10px 28px rgba(30, 155, 192, 0.4);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 140ms var(--ease-out);
}
.fab svg { width: 30px; height: 30px; }
.fab:active { transform: scale(0.94); }
.fab:focus-visible { outline-offset: 4px; }

/* ---------- Entrada del hero (una sola vez, CSS puro) ---------- */
[data-enter] {
  animation: enter-rise 560ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.hero__title[data-enter] { --rise: 14px; }
.hero__lead[data-enter] { --rise: 10px; }
.hero__actions[data-enter] { --rise: 8px; }
.eyebrow[data-enter] { animation-name: enter-fade; animation-duration: 400ms; }
[data-enter-fade] { animation-name: enter-media; animation-duration: 640ms; }

@keyframes enter-rise {
  from { opacity: 0; transform: translateY(var(--rise, 10px)); }
  to { opacity: 1; transform: none; }
}
@keyframes enter-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes enter-media {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] { animation: enter-fade 200ms ease both; animation-delay: 0ms; }
  .js [data-reveal] { transform: none; transition: opacity 200ms ease; }
  .faq__item[open] .faq__a { animation: enter-fade 150ms ease; }
  .faq__chev, .site-header__logo, .ba__knob { transition: none; }
  .btn, .fab, .social__link { transition: none; }
  .btn:active, .fab:active, .social__link:active { transform: none; }
  /* Burbujas quietas, repartidas a distintas alturas */
  .bubble {
    animation: none;
    opacity: var(--o);
    transform: translate3d(0, calc(var(--rise) * var(--p) * -1), 0);
  }
  .bubble i { animation: none; }
}
