/* ==========================================================================
   Lavibes Lavandería · estilos
   Mundo: "la pila doblada". Azul de marca #2F768C + blanco.
   ========================================================================== */

@font-face {
  font-family: "Midruns Sans";
  src: url("../assets/fonts/midruns-sans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Midruns Script";
  src: url("../assets/fonts/midruns-script.ttf") format("truetype");
  font-display: swap;
}

/* La marca es azul y blanco siempre, también con el celular en modo noche.
   Samsung Internet oscurece a la fuerza las páginas que NO declaran soporte
   de modo oscuro (ignora "only light"). Por eso la raíz declara "light dark":
   el navegador entiende que la página ya tiene su tema oscuro y no la toca.
   Ese "tema oscuro" es, a propósito, el mismo azul y blanco de la marca.
   El contenido (body) se pinta como claro para que campos, selects y
   casillas usen los controles claros del sistema. */
:root { color-scheme: light dark; }
html, body { background-color: #FFFFFF; color: #163F4C; }
body { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  html, body { background-color: #FFFFFF; color: #163F4C; }
}

:root {
  --blue: #2F768C;          /* azul de marca */
  --blue-deep: #23596A;     /* pliegue / hover */
  --ink: #163F4C;           /* texto principal sobre blanco */
  --ink-soft: #3F6470;      /* texto secundario sobre blanco */
  --rinse: #DCEBF0;         /* tela clara */
  --rinse-2: #EEF5F8;       /* fondo suave */
  --rinse-crease: #C2DAE2;
  --white: #FFFFFF;
  --on-blue-soft: #EDF6F9;  /* texto secundario sobre azul (≥4.5:1) */
  --pending-bg: #FFF1C2;
  --pending-ink: #5A4300;
  --error: #B3261E;

  --font-display: "Midruns Sans", "Figtree", system-ui, sans-serif;
  --font-script: "Midruns Script", "Figtree", cursive;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Cifras: Midruns Sans confunde el 3 con el 8, así que los números van en Figtree */
  --font-figures: "Figtree", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-band: 14px 14px 6px 6px;
  --shadow-band: 0 8px 16px -10px rgba(22, 63, 76, 0.45);

  --header-h: 68px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
  accent-color: var(--blue);
  scrollbar-color: var(--blue) var(--rinse-2);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
.num, .estimate-value { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-blue :focus-visible, .how :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 99px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.8em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 14px -8px rgba(22, 63, 76, 0.6); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0.55em 1.05em; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 0.9em 1.6em; font-size: 1.0625rem; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-deep); }
  .btn-light:hover { background: var(--rinse); }
  .btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color 200ms ease;
}
.link-arrow .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { text-decoration-color: currentColor; }
  .link-arrow:hover .icon { transform: translateX(3px); }
}

/* ---------- preview bar (solo cuando faltan datos) ---------- */
.preview-bar {
  background: var(--pending-bg); color: var(--pending-ink);
  font-size: 0.875rem; line-height: 1.4; padding: 8px var(--gutter); text-align: center;
}
.preview-bar span { display: inline; }
.pending-chip, .pending {
  display: inline-block; padding: 0.15em 0.6em; border-radius: 99px;
  background: var(--pending-bg); color: var(--pending-ink);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.5; vertical-align: middle;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rinse); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; padding: 4px 0; margin-right: auto; }
.brand img { height: 48px; width: auto; }

.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; border-radius: 99px;
  transition: background-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--rinse-2); color: var(--blue); } }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border: 2px solid var(--rinse); border-radius: 99px; }
.lang-btn {
  min-width: 44px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 99px;
  background: transparent; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em;
  color: var(--ink-soft); cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--blue); color: var(--white); }

.menu-btn {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 99px;
  background: var(--rinse-2); cursor: pointer; place-items: center;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 220ms var(--ease-out), opacity 150ms ease;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199px) {
  .menu-btn { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--rinse);
    box-shadow: 0 18px 30px -20px rgba(22, 63, 76, 0.45);
    padding: 8px var(--gutter) 20px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { width: 100%; min-height: 52px; font-size: 1.0625rem; border-radius: 12px; }
}
@media (max-width: 380px) {
  .brand img { height: 38px; }
  .lang-btn { min-width: 40px; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 56px); overflow: clip; }
.hero-top {
  display: grid; gap: 20px 48px;
  grid-template-columns: 1fr;
  align-items: end;
}
.hero-title { display: grid; gap: 0.08em; }
.hero-l1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 9.2vw, 6rem); line-height: 0.92; letter-spacing: 0.005em;
  color: var(--ink);
}
.hero-l2 {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.6rem, 8.4vw, 5.5rem); line-height: 1.05;
  color: var(--blue);
  padding-left: 0.04em;
}
.hero-lead { font-size: clamp(1.0625rem, 1.7vw, 1.25rem); color: var(--ink-soft); max-width: 40ch; }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

@media (min-width: 960px) {
  .hero-top { grid-template-columns: 1.25fr 1fr; }
  .hero-side { padding-bottom: 14px; }
}

/* ---------- la pila ---------- */
.pile-wrap { padding-top: clamp(32px, 4vw, 36px); padding-bottom: var(--section-y); }
.pile-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pile-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1; letter-spacing: 0.02em; color: var(--blue);
}
.pile-lead { color: var(--ink-soft); max-width: 60ch; }
.pile-head .pending-chip[hidden] { display: none; }

.pile { position: relative; margin-top: 16px; display: grid; }
.stack { display: grid; gap: 4px; position: relative; z-index: 1; }
.band { --x: 0px; transform: translateX(var(--x)); }
.band a {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  min-height: 76px; padding: 14px 20px 18px;
  border-radius: var(--radius-band);
  text-decoration: none;
  box-shadow: var(--shadow-band);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
/* pliegue inferior y borde superior de la tela */
.band a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  border-radius: 0 0 6px 6px; background: rgba(10, 40, 50, 0.18);
}
.band a::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 7px; height: 2px;
  border-radius: 2px; background: currentColor; opacity: 0.16;
}
.band:nth-child(odd) a { background: var(--white); color: var(--ink); }
.band:nth-child(even) a { background: var(--rinse); color: var(--ink); }
.band:nth-child(even) a::after { background: #A9C8D3; }
.band-w { font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.25rem); line-height: 1.2; }
.band-p {
  font-family: var(--font-figures); font-weight: 800;
  font-size: clamp(1.6rem, 4.2vw, 2.25rem); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.band-p small { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.band-cta {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 0.3em;
  font-size: 0.875rem; font-weight: 600;
}
.band-cta .icon { width: 1em; height: 1em; transition: transform 200ms var(--ease-out); }
.band a:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 22px -12px rgba(22, 63, 76, 0.55); }
@media (hover: hover) and (pointer: fine) {
  .band a:hover { transform: translateY(-2px); box-shadow: 0 14px 22px -12px rgba(22, 63, 76, 0.55); }
  .band a:hover .band-cta .icon { transform: translateX(3px); }
}
.band a:active { transform: translateY(0) scale(0.99); }
.band-more .band-cta { grid-column: auto; justify-self: end; }

.pile-otter {
  width: min(34vw, 140px);
  justify-self: end;
  margin: 0 4px -8px 0;
  order: -1;
  position: relative; z-index: 2;
  pointer-events: none;
}
.pile-note {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 0.9375rem; color: var(--ink-soft);
}
.pile-note a { color: var(--blue); font-weight: 700; }

@media (min-width: 720px) {
  .band a { grid-template-columns: 1fr auto auto; min-height: 68px; padding: 12px 28px 16px; }
  .band-cta { grid-column: auto; order: 3; }
  .band-p { order: 2; }
  .band-more a { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .pile { grid-template-columns: 1fr 300px; align-items: end; column-gap: 8px; }
  .stack { gap: 4px; }
  .band:nth-child(1) { --x: 34px; margin-right: 34px; }
  .band:nth-child(2) { --x: 14px; margin-right: 18px; }
  .band:nth-child(3) { --x: 0px; }
  .band:nth-child(4) { --x: 22px; margin-right: 22px; }
  .band:nth-child(5) { --x: 6px; margin-right: 4px; }
  .band:nth-child(6) { --x: -4px; margin-right: -4px; }
  .pile-otter { order: 0; width: 290px; margin: 0 0 -6px; }
}
@media (min-width: 960px) and (max-height: 960px) {
  .hero { padding-top: 20px; }
  .hero-l1 { font-size: clamp(2.75rem, 7vw, 5.25rem); }
  .hero-l2 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
}

/* entrada de la pila: las prendas se asientan una vez (visibles desde el inicio, < 600 ms) */
@media (prefers-reduced-motion: no-preference) {
  .js .band { animation: settle 360ms var(--ease-out) both; }
  .js .band:nth-child(2) { animation-delay: 40ms; }
  .js .band:nth-child(3) { animation-delay: 80ms; }
  .js .band:nth-child(4) { animation-delay: 115ms; }
  .js .band:nth-child(5) { animation-delay: 150ms; }
  .js .band:nth-child(6) { animation-delay: 185ms; }
  .js .pile-otter { animation: otter-in 400ms var(--ease-out) 150ms both; }
}
@keyframes settle {
  from { transform: translate(var(--x), -10px) scaleY(0.96); }
  to { transform: translate(var(--x), 0) scaleY(1); }
}
@keyframes otter-in {
  from { transform: translateY(10px) rotate(-2deg); }
  to { transform: none; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

/* servicios: etiquetas de lavandería */
.services { background: var(--rinse-2); }
.services-grid { display: grid; gap: 28px; }
/* las prendas de servicio siguen el lenguaje de la pila: tela, pliegue y borde */
.labels { display: grid; gap: 5px; }
.label {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 10px 24px; align-items: center;
  padding: 24px 22px 28px 24px;
  background: var(--white); border-radius: var(--radius-band);
  box-shadow: var(--shadow-band);
}
.label:nth-child(even) { background: var(--rinse); }
.label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  border-radius: 0 0 6px 6px; background: var(--rinse-crease);
}
.label::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 8px; height: 2px;
  border-radius: 2px; background: var(--ink); opacity: 0.1;
}
@media (min-width: 960px) {
  .label:nth-child(1) { margin-right: 18px; translate: 18px 0; }
  .label:nth-child(3) { margin-right: 10px; translate: 10px 0; }
}
.label-body p { margin-top: 6px; color: var(--ink-soft); max-width: 52ch; }
.label-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.label-price .num { font-family: var(--font-figures); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--blue); letter-spacing: -0.02em; }
.label-price small { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }

.quote-tag {
  position: relative; align-self: start;
  background: var(--blue); color: var(--white);
  border-radius: var(--radius-band); padding: 26px 24px 32px;
  box-shadow: var(--shadow-band);
}
.quote-tag::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  border-radius: 0 0 6px 6px; background: var(--blue-deep);
}
.quote-tag img { width: 140px; margin: -70px 0 10px auto; }
.quote-tag h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1; letter-spacing: 0.01em; }
.quote-tag ul { margin-top: 16px; display: grid; gap: 8px; }
.quote-tag li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.quote-tag li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--white); transform: translateY(-2px); }
.quote-tag p { margin-top: 14px; color: var(--on-blue-soft); font-size: 0.9375rem; }

@media (min-width: 720px) {
  .label { grid-template-columns: 1fr auto; padding: 24px 28px; }
  .label-price { justify-content: flex-end; flex-direction: column; align-items: flex-end; gap: 4px; }
}
@media (min-width: 1040px) {
  .services-grid { grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
  .quote-tag { margin-top: 70px; position: sticky; top: calc(var(--header-h) + 90px); }
}

/* cómo funciona */
.how { background: var(--blue); color: var(--white); }
.how .lead { color: var(--on-blue-soft); }
.how-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
/* la nutria se asoma sobre el borde superior de la sección, así el título no queda hundido */
.how-otter { width: clamp(110px, 18vw, 200px); margin-top: clamp(-150px, -12vw, -90px); margin-bottom: -8px; position: relative; z-index: 1; }
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 4px;
  padding: 18px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.22);
}
.step-n {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--blue);
  font-family: var(--font-figures); font-weight: 800; font-size: 1.375rem; line-height: 1;
}
.step h3 { font-size: 1.1875rem; align-self: end; }
.step p { color: var(--on-blue-soft); max-width: 36ch; }
.how-note {
  margin-top: 28px; display: flex; gap: 10px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  background: var(--blue-deep); font-weight: 600; max-width: 62ch;
}
.how-note .icon { margin-top: 2px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; padding: 26px 0 0; row-gap: 10px; }
  .step-n { grid-row: auto; margin-bottom: 6px; }
  .step h3 { align-self: start; }
}

/* viajeros */
.travel-grid { display: grid; gap: 36px; }
.travel-intro { display: grid; gap: 14px; align-content: start; }
.travel-badge { width: clamp(120px, 22vw, 200px); margin-top: 12px; }
.travel-items { display: grid; gap: 0; }
.travel-item { padding: 26px 0; border-top: 2px solid var(--rinse); display: grid; gap: 10px; justify-items: start; }
.travel-item:last-child { border-bottom: 2px solid var(--rinse); }
.travel-item p { color: var(--ink-soft); max-width: 52ch; }
.travel-item .btn { margin-top: 6px; }
.travel-item h3 { font-size: 1.375rem; }
@media (min-width: 960px) {
  .travel-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}

/* cotizador */
.quote { background: var(--rinse-2); }
.quote-grid { display: grid; gap: 28px; }
.quote-intro { display: grid; gap: 14px; align-content: start; }
.quote-form {
  display: grid; gap: 18px;
  background: var(--white); border-radius: 22px; padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 1px 0 var(--rinse-crease), 0 24px 40px -30px rgba(22, 63, 76, 0.6);
}
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.optional { font-weight: 500; color: var(--ink-soft); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--rinse-crease); border-radius: 12px; background: var(--white);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: #50727D; }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 118, 140, 0.28); }
.field [aria-invalid="true"] { border-color: var(--error); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--blue); }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 600; }
.field-hint { color: var(--ink-soft); font-size: 0.875rem; }

.estimate {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 12px; background: var(--rinse-2);
}
.estimate-label { font-weight: 600; color: var(--ink-soft); font-size: 0.9375rem; }
.estimate-value { font-family: var(--font-figures); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--blue); letter-spacing: -0.02em; text-align: right; }

.wa-preview { display: grid; gap: 10px; padding-top: 4px; }
.wa-preview[hidden] { display: none; }
.wa-preview:focus { outline: none; }
.wa-preview-note { font-size: 0.875rem; font-weight: 600; color: var(--pending-ink); background: var(--pending-bg); padding: 8px 12px; border-radius: 10px; }
.wa-bubble {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.5;
  background: #E7F4EF; color: #10302A; padding: 14px 16px; border-radius: 4px 16px 16px 16px;
}
@media (min-width: 960px) {
  .quote-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* preguntas */
.faq-grid { display: grid; gap: 28px; }
.faq-list { display: grid; }
.faq details { border-top: 2px solid var(--rinse); }
.faq details:last-child { border-bottom: 2px solid var(--rinse); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.125rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue); transition: transform 220ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--blue); } }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }

/* ubicación y horario */
.visit { background: var(--white); }
.visit-grid { display: grid; gap: 64px; }
.visit-block { display: grid; gap: 16px; align-content: start; justify-items: start; position: relative; }
.visit-address { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 700; max-width: 32ch; }
.map-frame {
  position: relative; width: 100%;
  border-radius: var(--radius-band); overflow: hidden;
  background: var(--rinse); box-shadow: var(--shadow-band);
  aspect-ratio: 4 / 3;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: calc(100% - 6px); border: 0; }
.map-frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--blue);
}

.hours { display: grid; gap: 5px; width: 100%; margin-top: 8px; position: relative; z-index: 1; }
.hours-row {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 20px 22px 24px;
  background: var(--rinse); color: var(--ink);
  border-radius: var(--radius-band); box-shadow: var(--shadow-band);
}
.hours-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  border-radius: 0 0 6px 6px; background: var(--rinse-crease);
}
.hours-row.is-today { background: var(--blue); color: var(--white); }
.hours-row.is-today::after { background: var(--blue-deep); }
.hours-days { font-weight: 700; font-size: 1.125rem; display: inline-flex; align-items: center; gap: 10px; }
.hours-time { font-family: var(--font-figures); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.625rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.today-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; background: var(--white); color: var(--blue);
}
.hours-otter { width: clamp(140px, 20vw, 220px); justify-self: end; margin-top: -4px; }
@media (min-width: 960px) {
  .visit-grid { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .hours-row:nth-child(2) { margin-right: 18px; translate: 18px 0; }
}

/* contacto */
.contact { background: var(--blue); color: var(--white); }
.contact .lead { color: var(--on-blue-soft); }
.contact-grid { display: grid; gap: 40px; }
.contact-intro { display: grid; gap: 16px; justify-items: start; align-content: start; }
.contact-otter { width: clamp(150px, 22vw, 210px); margin-bottom: 8px; }
.contact-list { display: grid; gap: 0; align-content: start; }
.contact-row { display: grid; gap: 6px; padding: 20px 0; border-top: 2px solid rgba(255, 255, 255, 0.22); }
.contact-row dt { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--on-blue-soft); font-size: 0.9375rem; }
.contact-row dd { font-size: 1.1875rem; font-weight: 600; }
.contact-row dd a { color: var(--white); text-underline-offset: 0.2em; }
.contact-row dd ul { display: grid; gap: 4px; }
.contact-details { display: grid; align-content: start; }
.contact-maps { border-top: 2px solid rgba(255, 255, 255, 0.22); padding-top: 24px; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.contact .pending { background: var(--pending-bg); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* footer */
.site-footer { background: var(--blue); color: var(--white); padding: 0 0 calc(48px + env(safe-area-inset-bottom)); }
.site-footer .footer-row { border-top: 2px solid rgba(255, 255, 255, 0.22); padding-top: 40px; }
.footer-row { display: grid; gap: 24px; justify-items: start; }
.footer-logo { height: 120px; width: auto; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--on-blue-soft); font-size: 0.9375rem; }
.footer-meta a { color: var(--white); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 720px) { .footer-row { grid-template-columns: auto 1fr; align-items: center; } .footer-meta { justify-content: flex-end; } }

/* botón flotante (móvil) */
.fab {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 56px; border-radius: 999px;
  background: var(--blue); color: var(--white); font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 28px -12px rgba(22, 63, 76, 0.7);
  transform: translateY(calc(100% + 24px));
  transition: transform 260ms var(--ease-out);
}
.fab.is-visible { transform: none; }
.fab:active { transform: scale(0.98); }
@media (max-width: 719px) { body { padding-bottom: 84px; } }


/* ==========================================================================
   DINAMISMO: portada en azul, franja en movimiento, entradas al hacer scroll
   ========================================================================== */

/* --- portada a todo color --- */
.hero { background: var(--blue); color: var(--white); }
.hero .hero-l1 { color: var(--white); }
.hero .hero-l2 { color: var(--on-blue-soft); }
.hero .hero-lead { color: var(--on-blue-soft); }
.hero .pile-title { color: var(--white); }
.hero .pile-lead, .hero .pile-note { color: var(--on-blue-soft); }
.hero .pile-wrap { padding-bottom: clamp(56px, 7vw, 88px); }
.hero :focus-visible { outline-color: var(--white); }
.hero .band-cta { color: var(--ink); }
.hero .band a { box-shadow: 0 10px 18px -10px rgba(8, 30, 38, 0.55); }

/* --- cabecera: azul sobre la portada, blanca después --- */
.site-header { transition: background-color 250ms ease, border-color 200ms ease; }
.site-header.on-blue { background: var(--blue); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.site-header.on-blue .lang { border-color: rgba(255, 255, 255, 0.35); }
.site-header.on-blue .lang-btn { color: var(--white); }
.site-header.on-blue .lang-btn[aria-pressed="true"] { background: var(--white); color: var(--blue); }
.site-header.on-blue .menu-btn { background: rgba(255, 255, 255, 0.16); }
.site-header.on-blue .menu-lines,
.site-header.on-blue .menu-lines::before,
.site-header.on-blue .menu-lines::after { background: var(--white); }
.site-header.on-blue .menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.site-header.on-blue :focus-visible { outline-color: var(--white); }
.site-header.on-blue .nav.is-open :focus-visible { outline-color: var(--blue); }
@media (min-width: 1200px) {
  .site-header.on-blue .nav a { color: var(--white); }
  .site-header.on-blue .header-cta { background: var(--white); color: var(--blue); }
}
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .site-header.on-blue .nav a:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
  .site-header.on-blue .header-cta:hover { background: var(--rinse); color: var(--blue); }
}

/* --- titulares con palabra en script --- */
.h2 .script {
  font-family: var(--font-script); font-weight: 400;
  font-size: 1.12em; line-height: 0.9; letter-spacing: 0;
  color: var(--blue); display: inline-block; padding-left: 0.04em;
}
.how .h2 .script { color: var(--on-blue-soft); }

/* titulares completos en cursiva (Lo que lavamos, Cómo funciona, Arma tu cotización) */
.h2-script {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.6rem, 5.8vw, 4.25rem); line-height: 1.05; letter-spacing: 0;
  color: var(--blue);
}
.how .h2-script { color: var(--white); }

/* --- franja en movimiento --- */
.ticker {
  position: relative; overflow: hidden;
  background: var(--white); color: var(--blue);
  padding: clamp(18px, 3vw, 30px) 0;
  border-bottom: 2px solid var(--rinse);
}
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker-group { display: flex; align-items: center; flex: none; }
.ticker-word {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 6rem); line-height: 1; letter-spacing: 0.01em;
  padding: 0 0.28em; white-space: nowrap;
}
.ticker-sep { width: clamp(28px, 3.4vw, 46px); height: auto; flex: none; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-toggle {
  position: absolute; right: 12px; bottom: 8px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 99px; cursor: pointer;
  background: var(--rinse-2); color: var(--blue);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.ticker-toggle:active { transform: scale(0.94); }
.ticker-toggle .icon { width: 18px; height: 18px; }
.ticker-toggle .icon-play { display: none; }
.ticker.is-paused .ticker-toggle .icon-play { display: block; }
.ticker.is-paused .ticker-toggle .icon-pause { display: none; }

/* --- entradas al hacer scroll: visibles por defecto, solo se animan con JS y sin movimiento reducido --- */
.reveal [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 520ms ease-out, transform 640ms var(--ease-out);
}
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

.reveal [data-reveal-group] > * {
  opacity: 0;
  transition: opacity 480ms ease-out, transform 620ms var(--ease-out);
}
.reveal [data-reveal-group="up"] > * { transform: translateY(22px); }
/* servicios: las prendas llegan desde lados alternos */
.services { overflow-x: clip; } /* las prendas que esperan fuera de lugar no deben ensanchar la página */
.reveal [data-reveal-group="side"] > :nth-child(odd) { transform: translateX(-40px); }
.reveal [data-reveal-group="side"] > :nth-child(even) { transform: translateX(40px); }
.reveal [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.reveal [data-reveal-group].is-in > :nth-child(2) { transition-delay: 70ms; }
.reveal [data-reveal-group].is-in > :nth-child(3) { transition-delay: 130ms; }
.reveal [data-reveal-group].is-in > :nth-child(4) { transition-delay: 185ms; }
.reveal [data-reveal-group].is-in > :nth-child(5) { transition-delay: 235ms; }
.reveal [data-reveal-group].is-in > :nth-child(6) { transition-delay: 280ms; }

/* cómo funciona: la línea se dibuja paso a paso y cada número aparece al llegar */
.reveal [data-reveal-group="steps"] > * { opacity: 1; transform: none; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: var(--white); transform-origin: left; transform: scaleX(1);
}
.reveal .steps .step::before { transform: scaleX(0); transition: transform 520ms var(--ease-in-out); }
.reveal .steps .step-n { transform: scale(0.6); opacity: 0; transition: transform 420ms var(--ease-out), opacity 300ms ease-out; }
.reveal .steps.is-in .step::before { transform: scaleX(1); }
.reveal .steps.is-in .step-n { transform: none; opacity: 1; }
.reveal .steps.is-in .step:nth-child(1) .step-n { transition-delay: 120ms; }
.reveal .steps.is-in .step:nth-child(2)::before { transition-delay: 260ms; }
.reveal .steps.is-in .step:nth-child(2) .step-n { transition-delay: 380ms; }
.reveal .steps.is-in .step:nth-child(3)::before { transition-delay: 520ms; }
.reveal .steps.is-in .step:nth-child(3) .step-n { transition-delay: 640ms; }
.reveal .steps.is-in .step:nth-child(4)::before { transition-delay: 780ms; }
.reveal .steps.is-in .step:nth-child(4) .step-n { transition-delay: 900ms; }

/* --- la nutria responde al cursor --- */
.how-otter, .hours-otter, .contact-otter, .quote-tag img, .travel-badge {
  transition: transform 360ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .how-otter:hover, .hours-otter:hover, .contact-otter:hover, .quote-tag img:hover { transform: rotate(-5deg) translateY(-4px); }
  .travel-badge:hover { transform: rotate(8deg); }
  .label { transition: box-shadow 220ms var(--ease-out), translate 220ms var(--ease-out); }
  .label:hover { box-shadow: 0 16px 26px -14px rgba(22, 63, 76, 0.5); }
}

/* --- botón flotante de WhatsApp en escritorio --- */
@media (min-width: 720px) {
  .fab {
    left: auto; right: 24px; bottom: 24px;
    min-height: 60px; padding: 0 18px; gap: 0;
  }
  .fab .icon { width: 26px; height: 26px; }
  .fab span {
    max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
    transition: max-width 320ms var(--ease-out), opacity 200ms ease, margin-left 320ms var(--ease-out);
  }
  .fab:hover span, .fab:focus-visible span { max-width: 260px; opacity: 1; margin-left: 10px; }
}

/* movimiento reducido: todo quieto y visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .ticker-toggle { display: none; }
}
