/* =========================================================
   TuInflable.cl — Landing
   Colores tomados del logo. Fondo crema = fondo del logo (#F7F7EC).
   ========================================================= */
:root {
  --azul: #2F6FD0;
  --azul-osc: #1F4FA3;
  --azul-noche: #17366F;
  --celeste: #5BB8F0;
  --celeste-suave: #E3F2FC;
  --naranjo: #F26B3A;          /* fondos, decoraciones y números grandes */
  --naranjo-texto: #C2461B;    /* textos chicos en naranjo: contraste ≥ 4.5:1 sobre crema */
  --naranjo-osc: #B83F17;
  --amarillo: #F5C542;
  --crema: #F7F7EC;
  --blanco: #FFFFFF;
  --texto: #1E2A44;
  --texto-suave: #55617A;
  --borde: #E4E6DA;
  --borde-azul: #CFE0F7;
  --aviso: #FFF4CF;
  --desactivado: #B9C2CF;
  --wa: #25D366;               /* verde WhatsApp: solo botón flotante (ícono) */
  --wa-btn: #128043;           /* botones con texto: blanco legible (≥ 4.5:1) */
  --wa-btn-hover: #0E6D38;
  --wa-osc: #128C4A;

  --f-titulo: "Fredoka", "Nunito", system-ui, sans-serif;
  --f-texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio-icono: 12px;
  --radio: 22px;
  --radio-lg: 28px;
  --radio-xl: 36px;
  --radio-sm: 14px;
  --sombra: 0 10px 30px rgba(23, 54, 111, .10);
  --sombra-lg: 0 24px 60px rgba(23, 54, 111, .18);
  --sombra-wa: 0 8px 20px rgba(18, 128, 67, .28);
  --ancho: 1160px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--crema);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--azul); }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.12; margin: 0 0 .5em; color: var(--azul-noche); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); letter-spacing: -.01em; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.container--narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--azul); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--naranjo-texto); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--texto-suave); max-width: 34em; }
.muted { color: var(--texto-suave); }
.hl { color: var(--azul); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .26em;
  background: var(--amarillo); border-radius: 99px; z-index: -1; opacity: .85;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-texto); font-weight: 800; font-size: 1rem;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.btn--wa { background: var(--wa-btn); color: #fff; box-shadow: var(--sombra-wa); }
.btn--wa:hover { background: var(--wa-btn-hover); box-shadow: 0 12px 26px rgba(18, 128, 67, .36); }
.btn--ghost { background: var(--blanco); color: var(--azul); border-color: var(--borde-azul); }
.btn--ghost:hover { border-color: var(--azul); }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1.08rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn.is-disabled { background: var(--desactivado); box-shadow: none; pointer-events: none; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--borde); box-shadow: 0 4px 18px rgba(23, 54, 111, .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.header__logo { display: flex; align-items: center; text-decoration: none; }
.header__logo img { height: 46px; width: auto; }
/* --p va de 0 a 1 según cuánto se bajó (solo en celular, lo calcula main.js) */
.logo__castillo { position: relative; z-index: 1; transform-origin: 50% 100%; }
.logo__texto {
  display: block; overflow: hidden; flex: none;
  width: calc(var(--logo-texto-ancho, 118px) * (1 - var(--p, 0)));
  opacity: calc(1 - var(--p, 0) * 1.15);
}
.logo__texto img { transform: translateX(calc(-55% * var(--p, 0))) scale(calc(1 - .35 * var(--p, 0))); transform-origin: left center; }
/* Turbina: nace donde estaban las letras (crece y gira hasta quedar en su lugar) */
.logo__turbina {
  display: block; flex: none; align-self: flex-end; position: relative; z-index: 2;
  /* Más chica que el castillo (≈ 60% de su alto) y con aire entre ambos */
  width: calc(26px * var(--p, 0)); height: 23.5px; margin: 0 0 3px calc(3px * var(--p, 0));
  opacity: clamp(0, calc(var(--p, 0) * 1.6 - .3), 1);
  transform: scale(calc(.35 + .65 * var(--p, 0))) rotate(calc((1 - var(--p, 0)) * 120deg));
  transform-origin: 30% 60%;
}
.logo__turbina svg { width: 26px; height: 23.5px; display: block; overflow: visible; }
/* Solo los elementos animados usan su propia caja (si se aplica a todos, desplaza los que tienen rotate(...) en el SVG) */
.t-aspas, .t-aire { transform-box: fill-box; }
.t-aspas { transform-origin: 50% 50%; animation: t-girar .45s linear infinite; }
@keyframes t-girar { to { transform: rotate(360deg); } }
.t-aire { fill: #fff; stroke: var(--celeste); stroke-width: .8; opacity: 0; }
.header.is-compact .t-aire { animation: t-soplar 1.2s ease-out infinite; }
.header.is-compact .t-aire--2 { animation-delay: .4s; }
.header.is-compact .t-aire--3 { animation-delay: .8s; }
@keyframes t-soplar {
  0% { transform: translate(0, 0) scale(.6); opacity: .95; }
  100% { transform: translate(-11px, -1px) scale(1.4); opacity: 0; }
}
@media (min-width: 900px) { .logo__turbina { display: none; } }

/* Con las letras guardadas, el castillo queda "respirando" como un inflable */
.header.is-compact .logo__castillo { animation: logo-inflable 2.8s ease-in-out infinite; }
@media (max-width: 899px) {
  .header__inner { height: calc(72px - 14px * var(--p, 0)); }
  .header__logo img { height: calc(46px - 4px * var(--p, 0)); }
}
@keyframes logo-inflable {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.05, .95); }
  55% { transform: scale(.97, 1.05); }
  75% { transform: scale(1.01, .99); }
}
.nav { display: none; gap: 28px; }
.nav a { color: var(--texto); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav a:hover { color: var(--azul); }
@media (min-width: 900px) { .nav { display: flex; } .header__logo img { height: 52px; } .logo__texto { --logo-texto-ancho: 134px; } }
/* En celular el botón flotante cumple esa función: se oculta el del encabezado */
@media (max-width: 640px) { .header .btn--sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 32px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -200px;
  background: radial-gradient(circle at center, var(--celeste-suave) 0%, rgba(227, 242, 252, 0) 68%);
  z-index: -1;
}
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 40px 0 48px; } .hero__grid { grid-template-columns: 1.2fr 1fr; gap: 32px; } .hero h1 { font-size: clamp(2.5rem, 4.3vw, 3.4rem); } }
#para-ti .section__head { max-width: 860px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
@media (max-width: 520px) { .hero__ctas .btn { width: 100%; } }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 999px;
  font-weight: 700; font-size: .92rem; color: var(--azul-noche);
}
.chips .icon { color: var(--wa-osc); width: 1.05em; height: 1.05em; }

.hero__media { position: relative; max-width: 600px; margin: 0 auto; width: 100%; }

/* ---------- Video del inflado ---------- */
.hero-video {
  position: relative; z-index: 1; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radio-xl); border: 8px solid var(--blanco);
  background: var(--celeste-suave); box-shadow: var(--sombra-lg);
  animation: entrar-video 1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes entrar-video { from { transform: translateY(14px) scale(.98); } to { transform: none; } }

/* Etiqueta de estado: "Inflando…" → "Listo para jugar" */
.hero-video__status {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-weight: 800; font-size: .82rem; color: var(--azul-noche); box-shadow: 0 6px 16px rgba(23, 54, 111, .12);
  transition: opacity .3s;
}
.hero-video__status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--naranjo); animation: latido 1.1s ease-in-out infinite; }
.hero-video__status.is-done .dot { background: var(--wa-btn); animation: none; }
@keyframes latido { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }

.hero-video__replay {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(23, 54, 111, .78); color: #fff; font: inherit; font-weight: 700; font-size: .82rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .2s;
}
.hero-video__replay:hover { background: var(--azul-noche); transform: translateY(-1px); }
.hero-video__replay .icon { width: 1.05em; height: 1.05em; }
.hero-video__replay:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }

/* Formas de color detrás del video */
.blob { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.blob--1 { width: 62%; aspect-ratio: 1; right: -9%; top: -8%; background: var(--celeste); opacity: .28; filter: blur(2px); animation: blob 9s ease-in-out infinite alternate; }
.blob--2 { width: 34%; aspect-ratio: 1; left: -7%; bottom: -6%; background: var(--amarillo); opacity: .55; animation: blob 11s ease-in-out infinite alternate-reverse; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(-12px, 10px) scale(1.06); } }

/* ---------- Etiquetas flotantes ---------- */
.badge--price {
  position: absolute; left: -5%; bottom: 9%; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  background: var(--amarillo); color: var(--azul-noche);
  border-radius: 22px; padding: 13px 20px; box-shadow: var(--sombra);
  transform: rotate(-6deg); animation: flotar 4.5s ease-in-out infinite;
}
.badge__small { font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.badge__big { font-family: var(--f-titulo); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
@keyframes flotar { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

.float-card {
  position: absolute; right: -6%; top: 16%; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--borde); border-radius: 16px; padding: 10px 14px; box-shadow: var(--sombra);
  font-size: .82rem; color: var(--texto-suave); line-height: 1.3;
  animation: flotar-card 5s ease-in-out infinite -1.5s;
}
.float-card strong { display: block; color: var(--azul-noche); font-size: .9rem; }
.float-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--celeste-suave); color: var(--azul); }
@keyframes flotar-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Celular / tablet: la ilustración va primero, para que se vea apenas se abre la página */
@media (max-width: 899px) {
  .hero { padding: 8px 0 32px; }
  .hero__grid { gap: 28px; }
  .hero__media { order: -1; max-width: 460px; }
  /* En celular, la insignia y la forma amarilla quedan dentro del área del video: siguen moviéndose, pero no tapan el texto de abajo */
  .badge--price { left: 14px; bottom: 16%; padding: 8px 14px; border-radius: 16px; }
  .blob--2 { width: 26%; left: -3%; bottom: 8%; }
  .blob--1 { top: -4%; }
  .badge__big { font-size: 1.45rem; }
  .badge__small { font-size: .66rem; }
  .float-card { display: none; }
  .hero h1 { font-size: clamp(2.05rem, 8.4vw, 2.6rem); }
  .hero .lead { font-size: 1.05rem; }
  .hero__ctas { margin: 22px 0 20px; }
}

/* ---------- Aparición suave al hacer scroll (solo si hay JS) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }

/* ---------- Galería de fotos reales ---------- */
.photos { padding: 8px 0 8px; }
.photos__head { display: grid; gap: 8px 48px; align-items: end; margin-bottom: 28px; }
.photos__head h2 { margin: 0; }
.photos__head p.muted { margin: 0; max-width: 30em; }
@media (min-width: 900px) { .photos { padding: 16px 0 8px; } .photos__head { grid-template-columns: 1.2fr 1fr; } }
.mosaic { display: grid; gap: 14px; }
.mosaic__item {
  position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  border-radius: var(--radio); background: var(--celeste-suave); box-shadow: var(--sombra);
}
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item:focus-visible { outline: 4px solid var(--amarillo); outline-offset: 3px; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; }
  .mosaic__item--big { grid-column: span 2; grid-row: span 2; }
}
/* En celular: carrusel horizontal que se desliza con el dedo */
@media (max-width: 759px) {
  .mosaic { grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic__item { aspect-ratio: 3 / 4; scroll-snap-align: center; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(23, 54, 111, .82); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--radio); box-shadow: var(--sombra-lg); }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--blanco); color: var(--azul-noche); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--sombra);
}

/* ---------- Secciones ---------- */
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 48px 0; } }
.section--tint { background: var(--blanco); }
.section--blue { background: var(--azul); color: #fff; position: relative; overflow: hidden; }
.section--blue::after {
  content: ""; position: absolute; inset: auto -120px -180px auto; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(91, 184, 240, .35);
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section__sub { color: var(--texto-suave); font-size: 1.08rem; }
.section__head--light h2 { color: #fff; }
.section__head--light .eyebrow { color: var(--amarillo); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; background: var(--blanco); border-radius: var(--radio);
  padding: 28px 24px 24px; box-shadow: var(--sombra); border: 1px solid var(--borde);
}
.step__num {
  position: absolute; top: -14px; right: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 700;
  background: var(--naranjo); color: #fff; box-shadow: 0 6px 14px rgba(242, 107, 58, .35);
}
.step__icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--celeste-suave); color: var(--azul); margin-bottom: 14px; }
.step p { color: var(--texto-suave); margin: 0; font-size: .98rem; }

/* ---------- Producto ---------- */
.product { display: grid; gap: 44px; align-items: start; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.gallery__main { margin: 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 4.4; background: var(--celeste-suave); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--azul); }
.thumb:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }

.features { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--celeste-suave); color: var(--azul); }
.features strong { display: block; color: var(--azul-noche); }
.features span { color: var(--texto-suave); font-size: .96rem; }

.price-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--crema); border: 2px dashed var(--borde-azul); border-radius: var(--radio); padding: 20px 22px;
}
.price-card__label { display: block; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); }
.price-card__value { display: block; font-family: var(--f-titulo); font-weight: 700; font-size: 2.2rem; color: var(--azul); line-height: 1.15; }
.price-card__value small { font-size: 1rem; color: var(--texto-suave); font-family: var(--f-texto); }
.price-card__note { font-size: .92rem; color: var(--texto-suave); }

/* ---------- Video ---------- */
.section--video { padding-top: 0; background: var(--blanco); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-lg); background: var(--azul-noche); }
.video iframe, .video__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { padding: 0; cursor: pointer; background: none; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .95);
  display: grid; place-items: center; color: var(--naranjo-osc); box-shadow: var(--sombra-lg); transition: transform .2s;
}
.video__play svg { width: 38px; height: 38px; margin-left: 4px; }
.video__btn:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__btn:focus-visible { outline: 4px solid var(--amarillo); outline-offset: -4px; }

/* ---------- Microcopy bajo los botones del hero ---------- */
.hero__micro { margin: -10px 0 18px; font-size: .9rem; color: var(--texto-suave); }

/* Subtítulo sobre fondo azul */
.section__head--light .section__sub { color: rgba(255, 255, 255, .9); }

/* Resalte al llegar al cotizador desde un botón: el campo comuna "late" una vez */
.quote.is-highlight #q-comuna { animation: resaltar 1.4s ease-out 1; }
@keyframes resaltar {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, .9); border-color: var(--amarillo); }
  70% { box-shadow: 0 0 0 10px rgba(245, 197, 66, 0); border-color: var(--amarillo); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0); }
}

/* ---------- Escena de la camioneta (cotizador) ---------- */
.delivery { margin: 6px 0 0; }
.delivery__svg { display: block; width: 100%; height: auto; border-radius: var(--radio); box-shadow: var(--sombra); }
.delivery__svg * { transform-box: fill-box; }
.delivery__caption {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: .88rem; font-weight: 700; color: var(--azul-noche); line-height: 1.35;
}
.delivery__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--naranjo); animation: latido 1.1s ease-in-out infinite; }

/* Movimiento: el fondo avanza hacia la izquierda y la camioneta rueda en su lugar */
.d-clouds { animation: d-avanzar 38s linear infinite; }
.d-scenery { animation: d-avanzar 9s linear infinite; }
@keyframes d-avanzar { from { transform: translateX(0); } to { transform: translateX(-360px); } }
.d-dashes { animation: d-linea .55s linear infinite; }
@keyframes d-linea { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 32; } }
.d-wheel { transform-origin: 50% 50%; animation: d-girar .5s linear infinite; }
@keyframes d-girar { to { transform: rotate(360deg); } }
.d-bounce { animation: d-rebote .45s ease-in-out infinite alternate; }
@keyframes d-rebote { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
.d-cargo { transform-origin: 50% 100%; animation: d-carga .9s ease-in-out infinite alternate; }
@keyframes d-carga { from { transform: scale(1, 1); } to { transform: scale(1.01, .975); } }
.d-head { transform-origin: 50% 100%; animation: d-cabeza 1.8s ease-in-out infinite alternate; }
.d-head--2 { animation-delay: -.9s; }
@keyframes d-cabeza { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.d-puff { transform-origin: 50% 50%; animation: d-humo 1.4s ease-out infinite; opacity: 0; }
.d-puff--2 { animation-delay: .7s; }
@keyframes d-humo { 0% { transform: translate(0, 0) scale(.6); opacity: .8; } 100% { transform: translate(-22px, -8px) scale(1.6); opacity: 0; } }

/* Al elegir comuna, la camioneta "acelera" un momento */
.delivery.is-go .d-scenery { animation-duration: 4.5s; }
.delivery.is-go .d-dashes { animation-duration: .3s; }
.delivery.is-go .d-wheel { animation-duration: .28s; }

@media (max-width: 799px) { .delivery { max-width: 420px; } }

/* ---------- Letra chica del despacho (cotizador) ---------- */
.quote__hint { display: block; margin-top: 3px; font-size: .83rem; line-height: 1.5; font-weight: 400; color: var(--texto-suave); max-width: 32em; }

/* ---------- Precio por niño (cotizador) ---------- */
.quote__per { margin: -4px 0 0; padding: 10px 14px; border-radius: var(--radio-sm); background: var(--celeste-suave); color: var(--azul-noche); font-size: .93rem; }
.quote__per strong { color: var(--azul); }

/* ---------- Confianza: quién te atiende + compromisos ---------- */
.trust { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .trust { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.trust__card {
  text-align: center; background: var(--crema); border: 1px solid var(--borde); border-radius: 28px;
  padding: 28px 24px; box-shadow: var(--sombra); max-width: 420px; margin: 0 auto; width: 100%;
}
.trust__logo { width: 96px; height: auto; margin: 0 auto 10px; }
.trust__name { font-family: var(--f-titulo); font-weight: 600; font-size: 1.4rem; color: var(--azul-noche); margin: 0; }
.trust__role { font-size: .9rem; color: var(--texto-suave); margin: 0 0 14px; }
.trust__quote { font-size: 1.02rem; color: var(--texto); margin: 0 0 20px; }
.trust .checklist li { font-weight: 500; }
.trust .checklist strong { color: var(--azul-noche); }

/* ---------- Empresas e instituciones ---------- */
.b2b {
  display: grid; gap: 28px; align-items: center;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio-lg);
  padding: 28px 24px; box-shadow: var(--sombra);
}
@media (min-width: 900px) { .b2b { grid-template-columns: 1.25fr 1fr; gap: 48px; padding: 40px 44px; } }
.b2b h2 { margin-bottom: .4em; }
.b2b__text .muted { margin-bottom: 22px; }
@media (max-width: 520px) { .b2b .btn { width: 100%; } }
.b2b__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.b2b__list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--crema); border-radius: var(--radio-sm); font-weight: 700; color: var(--azul-noche);
}
.b2b__list .icon { width: 38px; height: 38px; padding: 8px; border-radius: var(--radio-icono); background: var(--celeste-suave); color: var(--azul); }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; gap: 18px; }
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
/* En celular: carrusel horizontal, como la galería, para no alargar la página */
@media (max-width: 759px) {
  .testimonials { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
  .testimonials::-webkit-scrollbar { display: none; }
  .testimonial { scroll-snap-align: center; }
}
.testimonial {
  position: relative; margin: 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 24px; box-shadow: var(--sombra);
}
.testimonial__stars { display: flex; gap: 3px; color: var(--amarillo); }
.testimonial__stars svg { width: 18px; height: 18px; }
.testimonial__text { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--texto); flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--texto-suave); line-height: 1.35; }
.testimonial__who strong { display: block; color: var(--azul-noche); font-size: 1rem; }
.testimonial__photo, .testimonial__initial { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial__initial {
  display: grid; place-items: center; background: var(--celeste-suave); color: var(--azul);
  font-family: var(--f-titulo); font-weight: 600; font-size: 1.25rem;
}
.testimonial__demo {
  position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px;
  background: var(--aviso); color: var(--azul-noche); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.testimonials__more { text-align: center; margin: 22px 0 0; font-weight: 700; }

/* ---------- Aviso (un solo castillo) ---------- */
.notice {
  display: flex; align-items: center; justify-content: center; gap: .6em; text-align: left;
  max-width: 920px; margin: -16px auto 24px; padding: 12px 18px; border-radius: 999px;
  background: var(--aviso); color: var(--azul-noche); font-weight: 700; font-size: .96rem;
}
.notice .icon { color: #C99A12; }
@media (max-width: 640px) { .notice { border-radius: var(--radio-sm); align-items: flex-start; } .notice .icon { margin-top: .15em; } }

/* ---------- Cotizador ---------- */
.quote {
  display: grid; gap: 0; max-width: 920px; margin: 0 auto;
  background: var(--blanco); border-radius: 28px; box-shadow: var(--sombra-lg); overflow: hidden; border: 1px solid var(--borde);
}
@media (min-width: 800px) { .quote { grid-template-columns: 1fr 1.1fr; } }
.quote__form { padding: 28px; display: grid; gap: 18px; align-content: start; background: linear-gradient(160deg, var(--celeste-suave), #f3f9fe); }
@media (min-width: 800px) { .quote__form { padding: 40px; } }
.field { display: grid; gap: 6px; font-weight: 800; color: var(--azul-noche); }
.field em { font-weight: 600; font-style: normal; color: var(--texto-suave); }
.field select, .field input {
  font: inherit; font-weight: 600; color: var(--texto); width: 100%;
  padding: .85em 1em; border-radius: var(--radio-sm); border: 2px solid var(--borde-azul); background: var(--blanco);
  min-height: 52px; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232F6FD0' stroke-width='3' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(47, 111, 208, .15); }
.quote__result { padding: 28px; display: grid; gap: 18px; align-content: start; }
@media (min-width: 800px) { .quote__result { padding: 40px; } }
.quote__lines { margin: 0; display: grid; gap: 12px; }
.quote__lines > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--borde); }
.quote__lines dt { color: var(--texto-suave); }
.quote__lines dd { margin: 0; font-weight: 800; white-space: nowrap; }
.quote__total { border-bottom: 0 !important; padding-bottom: 0 !important; align-items: baseline; }
.quote__total dt { font-family: var(--f-titulo); font-size: 1.3rem; color: var(--azul-noche); font-weight: 600; }
.quote__total dd { font-family: var(--f-titulo); font-size: 2.3rem; color: var(--azul); }
.quote__note { font-size: .88rem; color: var(--texto-suave); margin: 0; }

/* ---------- Incluye ---------- */
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
@media (min-width: 640px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perks li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radio); padding: 26px 22px; }
.perks .icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--amarillo); color: var(--azul-noche); margin-bottom: 14px; }
.perks h3 { color: #fff; }
.perks p { margin: 0; color: rgba(255, 255, 255, .86); font-size: .98rem; }

/* ---------- Seguridad ---------- */
.safety { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .safety { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.safety__media { border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 3.6; max-width: 520px; }
.safety__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 38px; font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio-sm); padding: 0 22px; transition: background .2s; }
.faq details[open] { background: var(--celeste-suave); border-color: var(--borde-azul); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 800; color: var(--azul-noche); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--f-titulo); font-size: 1.6rem; color: var(--azul); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 4px; border-radius: 6px; }
.faq details p { color: var(--texto-suave); padding-bottom: 18px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { padding: 48px 0; }
.cta-final__inner {
  display: grid; gap: 22px; justify-items: center; text-align: center;
  background: linear-gradient(135deg, var(--naranjo-osc), #D4561F); color: #fff;
  border-radius: 32px; padding: 44px 24px; box-shadow: var(--sombra-lg);
}
@media (min-width: 900px) { .cta-final__inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; padding: 40px 48px; align-items: center; } }
.cta-final__logo { width: 110px; border-radius: 50%; background: var(--crema); padding: 6px; }
.cta-final h2 { color: #fff; margin-bottom: .2em; }
.cta-final p { margin: 0; font-size: 1.17rem; font-weight: 700; }

/* ---------- Pie ---------- */
.footer { padding: 32px 0 96px; border-top: 1px solid var(--borde); text-align: center; color: var(--texto-suave); }
.footer__logo { height: 54px; width: auto; margin: 0 auto 12px; }
.footer p { margin: 0 0 4px; }
.footer__small { font-size: .88rem; }
.footer__review { font-size: .92rem; margin: 4px 0 10px !important; }
.footer__review a { font-weight: 700; }
.footer__lema { font-family: var(--f-titulo); font-weight: 600; font-size: 1.15rem; color: var(--azul-noche); margin-bottom: 6px !important; }
.social { list-style: none; padding: 0; margin: 14px 0 12px; display: flex; justify-content: center; gap: 12px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blanco); border: 1px solid var(--borde); color: var(--azul); transition: transform .15s, background .2s, color .2s;
}
.social a:hover { transform: translateY(-2px); background: var(--azul); color: #fff; }
.social svg { width: 22px; height: 22px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(18, 140, 74, .45);
  transition: transform .2s ease;
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  z-index: -1; animation: pulso 2.4s ease-out infinite;
}
@keyframes pulso { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
