/* =========================================================
   Espuma — estilos (demo de Tereré Estudio)
   Concepto: la página es el túnel de lavado. El auto queda quieto y las estaciones pasan con el scroll.
   ========================================================= */
@font-face { font-family: "Inter Display"; src: url("../../fonts/inter-display-black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --azul: #061a3a;
  --azul-2: #0c2a5a;
  --azul-3: #163d7a;
  --cian: #22d3ee;
  --cian-osc: #0e7490;
  --coral: #ff7a3d;
  --coral-osc: #c2410c;
  --blanco: #f5f9ff;
  --papel: #ffffff;
  --tinta: #061a3a;
  --suave: #4a5d7e;
  --linea: rgba(6, 26, 58, .14);
  --tit: "Inter Display", "Inter", system-ui, sans-serif;
  --txt: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --te-toast-bg: var(--azul);
  --te-toast-fg: var(--blanco);
  --te-demo-bg: var(--azul);
  --te-demo-fg: var(--cian);
}
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--blanco); color: var(--tinta); font: 400 1rem/1.55 var(--txt); overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--tit); font-weight: 900; line-height: .95; letter-spacing: -.035em; }
h2 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); }
h1 span, h2 span { color: var(--coral-osc); }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; }
.sutil { color: var(--suave); font-size: .86rem; }
.ayuda { font-size: .86rem; color: var(--suave); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 0; border-radius: 999px; font: 600 1rem/1 var(--txt); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn--coral { background: var(--coral); color: var(--azul); }
.btn--coral:hover { background: #ff9461; }
.btn--azul { background: var(--azul); color: var(--blanco); }
.btn--chico { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn--ancho { width: 100%; min-height: 56px; font-size: 1.08rem; }
.btn--wa { background: #148a47; color: #fff; }
.btn--ig { background: #b4246f; color: #fff; }

/* ---------- Cabecera con precio en vivo ---------- */
.cab { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: rgba(245, 249, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.cab > a:first-child { margin-right: auto; }
.cab__logo { width: 124px; }
.cab__total { font: 600 .88rem/1.1 var(--txt); color: var(--suave); white-space: nowrap; }
.cab__total span:first-child { font: 900 1.05rem/1 var(--tit); color: var(--tinta); }
@media (max-width: 400px) { .cab__total span:last-child, .cab__total { font-size: .8rem; } .cab__logo { width: 104px; } .cab .btn--chico { padding: 8px 14px; } }
@media (min-width: 1000px) { .cab { padding: 10px 40px; gap: 24px; } .cab__logo { width: 160px; } .cab__total span:first-child { font-size: 1.3rem; } }

/* ---------- Inicio ---------- */
.inicio { position: relative; display: grid; gap: 20px; align-content: center; min-height: calc(86svh - 90px); padding: 40px 16px 30px; max-width: 1240px; margin: 0 auto; isolation: isolate; overflow-x: clip; }
.inicio::before, .inicio::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 3px solid var(--cian); opacity: .55; }
.inicio::before { width: 46vmin; aspect-ratio: 1; right: -12%; top: 2%; }
@media (min-width: 760px) { .inicio::before { right: 4%; top: 6%; } }
.inicio::after { width: 18vmin; aspect-ratio: 1; right: 30%; bottom: 14%; background: rgba(34, 211, 238, .15); border-color: transparent; }
.inicio h1 { font-size: clamp(3.2rem, 1.6rem + 8vw, 8.4rem); max-width: 10ch; }
.inicio h1 span { display: block; }
.inicio__bajada { max-width: 36ch; font-size: 1.12rem; color: var(--suave); }
.inicio__baja { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--suave); }
.inicio__baja span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .inicio__baja span { animation: bajar 1.6s ease-in-out infinite; }
  @keyframes bajar { 50% { transform: translateY(6px); } }
}
.vehiculos { display: flex; gap: 10px; flex-wrap: wrap; }
.vehiculo { display: grid; justify-items: start; gap: 4px; min-width: 0; flex: 1 1 0; max-width: 200px; padding: 12px 14px 12px; border: 2px solid var(--linea); border-radius: 18px; background: var(--papel); cursor: pointer; text-align: left; transition: border-color .15s ease, background-color .15s ease; }
.vehiculo svg { width: 100%; max-width: 120px; height: auto; }
.vehiculo svg path { fill: var(--azul-3); }
.vehiculo b { font: 900 1.15rem/1 var(--tit); }
.vehiculo small { font-size: .78rem; color: var(--suave); }
.vehiculo[aria-checked="true"] { border-color: var(--azul); background: var(--azul); color: var(--blanco); }
.vehiculo[aria-checked="true"] small { color: var(--cian); }
.vehiculo[aria-checked="true"] svg path { fill: var(--coral); }
@media (min-width: 1000px) { .inicio { padding: 60px 40px; } }

/* ---------- Túnel ---------- */
.tunel { position: relative; background: var(--azul); color: var(--blanco); --pos: 0; --sucio: 1; --agua: 1; --espuma: 0; --gotas: 0; --llanta: 0; --cera: 0; --aire: 0; --interior: 0; --perfume: 0; --giro: 0deg; }
.tunel__pegado { position: relative; height: min(100svh, 820px); min-height: 560px; overflow: hidden; }
.estaciones { margin: 0; padding: 0; list-style: none; display: flex; height: 100%; }
.estacion { position: relative; flex: 0 0 100%; padding: 84px 20px 0; display: grid; align-content: start; justify-items: start; gap: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), rgba(34, 211, 238, .1) calc(25% - 3px) 25%), linear-gradient(180deg, var(--azul) 0%, var(--azul-2) 70%, var(--azul) 100%); }
.estacion::before { content: ""; position: absolute; left: 50%; top: 30%; width: min(92%, 720px); height: 62%; transform: translateX(-50%); border: 10px solid rgba(34, 211, 238, .14); border-bottom: 0; border-radius: 48px 48px 0 0; pointer-events: none; }
.estacion > * { position: relative; max-width: 30ch; }
.estacion h2 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.8rem); color: var(--blanco); }
.estacion p { color: #c6d6f2; }
.estacion__num { font: 900 .95rem/1 var(--tit); letter-spacing: .1em; color: var(--cian) !important; }
.estacion__inc { font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(34, 211, 238, .14); color: var(--cian) !important; }
.estacion__extras { display: flex; flex-wrap: wrap; gap: 8px; max-width: 34ch; }
.sumar { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--coral); background: transparent; color: var(--blanco); font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.sumar small { font-weight: 400; opacity: .85; }
.sumar[aria-pressed="true"] { background: var(--coral); color: var(--azul); }
.auto { position: absolute; left: 50%; bottom: calc(9% + 40px); width: min(94vw, 660px); transform: translateX(-50%); pointer-events: none; }
.auto svg { width: 100%; height: auto; overflow: visible; }
.piso { position: absolute; left: 0; right: 0; bottom: 0; height: calc(9% + 46px); background: linear-gradient(180deg, #0b2550, #04122a); border-top: 2px solid rgba(34, 211, 238, .35); pointer-events: none; }
.pasos { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.pasos button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.pasos button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 249, 255, .35); transition: transform .2s ease, background-color .2s ease; }
.pasos button[aria-current="step"]::before { background: var(--cian); transform: scale(1.4); }
@media (min-width: 1000px) {
  .estacion { padding: 110px 60px 0; }
  .estacion::before { top: 20%; width: min(80%, 980px); height: 74%; }
  .estacion p { font-size: 1.15rem; }
  .auto { bottom: calc(8% + 44px); width: min(62vw, 880px); }
}

/* Modo pegado (con JS y sin "menos movimiento"): el auto queda y las estaciones pasan con el scroll */
.tunel--pegado { height: 600vh; }
.tunel--pegado .tunel__pegado { position: sticky; top: 0; height: 100svh; max-height: none; }
.tunel--pegado .estaciones { width: 600%; transform: translateX(calc(var(--pos) * -83.3333%)); will-change: transform; }
.tunel--pegado .estacion { flex-basis: calc(100% / 6); }
/* Modo carrusel (sin JS o con "menos movimiento"): se desliza de costado */
.tunel:not(.tunel--pegado) .estaciones { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tunel:not(.tunel--pegado) .estaciones::-webkit-scrollbar { display: none; }
.tunel:not(.tunel--pegado) .estacion { scroll-snap-align: start; }

/* ---------- El auto (SVG dibujado en JS) ---------- */
.c-sombra { fill: rgba(0, 0, 0, .45); }
.c-cuerpo { fill: var(--coral); }
.c-mugre { fill: #5b4632; opacity: calc(var(--sucio) * .55); }
.c-barro { fill: #3d2b1a; opacity: var(--sucio); }
.c-vidrio { fill: #13325f; }
.c-detalle { fill: none; stroke: rgba(6, 26, 58, .45); stroke-width: 2; stroke-linecap: round; }
.c-luz { fill: #fff3c4; }
.c-luz-tras { fill: #ff3b3b; }
.c-asiento { fill: #ffb07c; opacity: var(--interior); }
.c-perfume { fill: none; stroke: var(--cian); stroke-width: 2.5; stroke-linecap: round; opacity: var(--perfume); }
.c-cera { fill: #fff; opacity: calc(var(--cera) * .5); }
.c-chispa { fill: #fff; opacity: var(--cera); }
.c-gota { fill: rgba(220, 245, 255, .9); opacity: var(--gotas); }
.c-espuma circle { fill: #fdfeff; stroke: #cfe9f7; stroke-width: 1; }
.c-espuma { opacity: var(--espuma); }
.c-agua line { stroke: #7fe6f7; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 12; }
.c-agua { opacity: var(--agua); }
.c-aire line { stroke: #dff7ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 30 26; }
.c-aire { opacity: var(--aire); }
.c-rueda { fill: #111827; }
.c-llanta { fill: #8b99ad; }
.c-llanta-brillo { fill: #f1f7ff; opacity: var(--llanta); }
.c-rayos { transform-box: fill-box; transform-origin: center; transform: rotate(var(--giro)); }
.c-rayos line { stroke: #2b3546; stroke-width: 3; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .c-agua line { animation: caer .5s linear infinite; }
  .c-aire line { animation: soplar .7s linear infinite; }
  @keyframes caer { to { stroke-dashoffset: -18; } }
  @keyframes soplar { to { stroke-dashoffset: 56; } }
}

/* ---------- Turno ---------- */
.turno { padding: 60px 16px 70px; }
.turno__grilla { max-width: 1140px; margin: 0 auto; display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .turno__grilla { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; } .recibo { position: sticky; top: 86px; } }
.recibo { padding: 22px; border-radius: 26px; background: var(--azul); color: var(--blanco); display: grid; gap: 12px; }
.recibo__t { font: 900 1.4rem/1 var(--tit); color: var(--cian); }
.recibo__lineas { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.recibo__lineas li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(245, 249, 255, .2); font-size: .95rem; }
.recibo__lineas li span:last-child { white-space: nowrap; font-weight: 600; }
.recibo__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.recibo__total b { font: 900 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1 var(--tit); color: var(--coral); }
.recibo__min { font-size: .9rem; color: #c6d6f2; }
.form, .listo { display: grid; gap: 12px; min-width: 0; }
.form h2, .listo h2 { margin-bottom: 6px; }
.campo__t { font-weight: 600; font-size: .95rem; }
.form > .campo__t { margin-top: 8px; }
.dias { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.dia { flex: 0 0 auto; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; width: 70px; padding: 10px 6px; border: 2px solid var(--linea); border-radius: 16px; background: var(--papel); cursor: pointer; }
.dia small { font-size: .74rem; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.dia b { font: 900 1.5rem/1 var(--tit); }
.dia[aria-checked="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.dia[aria-checked="true"] small { color: var(--cian); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--linea); border-radius: 16px; background: var(--papel); cursor: pointer; font-weight: 600; }
.chip small { font-weight: 400; font-size: .78rem; color: var(--suave); }
.chip[aria-checked="true"] { border-color: var(--azul); background: var(--azul); color: var(--blanco); }
.chip[aria-checked="true"] small { color: var(--cian); }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.hora { align-items: center; min-width: 76px; }
.campos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 8px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo input { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--linea); border-radius: 14px; background: var(--papel); }
.campo input:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .45); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--azul); }
.error { color: #b42318; font-weight: 600; min-height: 1.2em; }
.listo { padding: 26px; border-radius: 26px; background: var(--papel); border: 2px solid var(--linea); justify-items: start; }
.listo__codigo { font: 900 clamp(3rem, 2rem + 5vw, 5rem)/1 var(--tit); letter-spacing: .04em; color: var(--coral-osc); }
.listo details { width: 100%; }
.listo summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.globo { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #dcf8c6; color: #111b21; white-space: pre-line; font-size: .92rem; overflow-wrap: anywhere; }

/* ---------- Club (bento) ---------- */
.club { padding: 60px 16px 70px; background: var(--papel); }
.club > h2, .club > .sutil { max-width: 1140px; margin: 0 auto; }
.club > .sutil { margin-top: 14px; }
.bento { max-width: 1140px; margin: 26px auto 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.bento__item { flex: 0 0 82%; scroll-snap-align: start; display: grid; align-content: end; gap: 8px; min-height: 220px; padding: 22px; border-radius: 26px; background: var(--blanco); border: 2px solid var(--linea); min-width: 0; }
.bento__item h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.bento__item--grande { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
.bento__item--grande p { color: #c6d6f2; }
.bento__item--cian { background: var(--cian); border-color: var(--cian); }
.bento__item--coral { background: var(--coral); border-color: var(--coral); }
.bento__eti { font-weight: 600; color: var(--cian) !important; }
.bento__precio { font: 900 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--tit); color: var(--coral) !important; }
@media (min-width: 760px) {
  .bento { display: grid; overflow: visible; grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "a b c" "a d d"; padding: 0; }
  .bento__item:nth-child(1) { grid-area: a; min-height: 460px; }
  .bento__item:nth-child(2) { grid-area: b; }
  .bento__item:nth-child(3) { grid-area: c; }
  .bento__item:nth-child(4) { grid-area: d; }
}

/* ---------- Quiero una así ---------- */
.quiero { padding: 60px 16px; background: var(--cian); }
.quiero__fila { max-width: 1140px; margin: 0 auto; display: grid; gap: 22px; align-items: center; }
.quiero h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-bottom: 12px; }
.quiero p { max-width: 54ch; }
.quiero .btn { justify-self: start; }
@media (min-width: 900px) { .quiero__fila { grid-template-columns: 1fr auto; } }

/* ---------- Pie y páginas internas ---------- */
.pie { background: var(--azul); color: #c6d6f2; padding: 44px 16px 16px; font-size: .92rem; }
.pie__fila { max-width: 1140px; margin: 0 auto; display: grid; gap: 22px; }
.pie__fila > div { display: grid; gap: 8px; align-content: start; }
@media (min-width: 768px) { .pie__fila { grid-template-columns: 1.4fr 1fr; } }
.pie__logo { width: 170px; }
.pie__t { font: 900 1.05rem/1 var(--tit); color: var(--cian); }
.pie a { color: #fff; }
.pie .btn { justify-self: start; min-height: 44px; }
.pie__aviso { max-width: 1140px; margin: 26px auto 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; }
.interna { max-width: 760px; margin: 0 auto; padding: 40px 16px 60px; display: grid; gap: 14px; }
.interna h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.interna h2 { font-size: 1.5rem; margin-top: 10px; letter-spacing: -.02em; }
.interna ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.interna .aviso { padding: 14px 18px; border-radius: 16px; background: var(--papel); border: 2px solid var(--linea); }
