/* Boceto B3 · lavanderia limpia con la estetica del local: lienzo crema
   (la fachada es calida), azul agua del rotulo para actuar, el verde del logo
   reservado a lo natural y a la marca, y burbujas suaves de fondo como en el
   logo y el vinilo del escaparate. */

:root {
  /* Color: lienzo crema; un acento (azul agua) para botones y enlaces; el
     verde del logo solo como relleno o marca, nunca como texto sobre claro
     (1,9:1). */
  --ink:     #1a3038;  /* texto principal y pie: 13,2:1 lienzo */
  --paper:   #fdfaf4;  /* lienzo crema muy suave */
  --sand:    #f7f0e4;  /* segundo fondo para alternar secciones, arena como la fachada */
  --card:    #fffdf8;  /* tarjetas, casi blanco */
  --line:    #d6c3a5;  /* separadores puntuales, mas fuerte para que se vea sobre crema */
  --muted:   #4a5f63;  /* texto secundario: 6,5:1 lienzo, 6,0:1 segundo fondo */
  --accent:  #0a7189;  /* azul agua del rotulo, oscurecido: blanco encima 5,6:1; como texto 5,0:1 sobre segundo fondo */
  --leaf:    #8dc544;  /* verde del logo: rellenos, subrayados, placas; tinta encima 6,7:1; sobre el pie 6,7:1 */
  --leaf-ink: #3a721c; /* verde para iconos sobre claro: 5,1:1 segundo fondo */
  --bubble-rgb: 1 157 222; /* #019dde, azul claro del logo: solo burbujas decorativas, con transparencia */
  --on-dark: #a9c0c4;  /* texto sobre tinta: 7,2:1 */
  --dark-line: #2c4750; /* filetes y botones sobre tinta */

  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --sans: "Barlow", system-ui, sans-serif;

  --wrap: 1160px;
  --section: clamp(64px, 7vw, 104px);
  --section-join: clamp(40px, 4.4vw, 64px);
  --radius: 10px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--paper));
    --accent-deep: color-mix(in srgb, var(--accent), var(--ink) 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (min-width: 1180px) { html { scroll-padding-top: 100px; } }
@media (max-width: 899px) { html { scroll-padding-bottom: 84px; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); font-synthesis: none; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-weight: 700; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.01em; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 28px; } }
.section { padding-block: var(--section); }
.section + .section { padding-top: var(--section-join); }
.section--sand { background: var(--sand); }
.section--sand + .section, .section + .section--sand { padding-top: var(--section); }

.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
.note { font-size: .95rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background .18s var(--ease); border: 0; cursor: pointer; }
.btn .icon { width: 20px; height: 20px; stroke-width: 2; }
.btn--main { background: var(--accent); color: #fff; }
.btn--main:hover { background: var(--accent-deep); }
.btn--soft { background: var(--accent-soft); color: var(--ink); }
.btn--soft:hover { background: var(--line); }
.btn--leaf { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--leaf); }
.btn--leaf:hover { background: var(--sand); }
.eco { background: none; color: var(--ink); font-weight: 700; text-decoration: underline 4px var(--leaf); text-underline-offset: 5px; text-decoration-skip-ink: none; }
.tick .is-eco .icon { color: var(--leaf-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow .icon { width: 20px; height: 20px; stroke-width: 2; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: block; flex: none; border-radius: 6px; }
.brand__logo { display: block; width: auto; height: 56px; }
.header .wrap { gap: 10px; }
.header .btn { margin-left: auto; min-height: 44px; padding: 0 18px; flex: none; white-space: nowrap; }
.nav a { text-decoration: none; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.lang { display: flex; gap: 4px; font-size: .88rem; }
.lang a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 6px 8px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.flag { flex: none; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
/* En la cabecera de escritorio solo la bandera (el codigo queda para lectores de pantalla); en el menu movil, bandera y codigo */
@media (min-width: 1180px) {
  .lang a { padding: 9px 8px; }
  .lang__code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.lang a[aria-current="true"] { color: var(--ink); background: var(--sand); }

/* Menu movil: boton que despliega la navegacion bajo la cabecera */
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s var(--ease), background .2s var(--ease); }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -5px; }
.menu-btn__bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu { display: none; }
.header.is-open .menu { display: grid; gap: 16px; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(26, 48, 56, .45); }
.header.is-open .nav { display: grid; }
.header.is-open .nav a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; font-size: 1.1rem; border-radius: var(--radius); }
.header.is-open .nav a + a { border-top: 1px solid var(--line); border-radius: 0; }
.nav a[aria-current="page"] { color: var(--accent); }
/* En movil la barra fija de abajo ya lleva las acciones: la cabecera queda con logo y menu */
@media (max-width: 899px) { .header .btn { display: none; } .menu-btn { margin-left: auto; } }

@media (min-width: 1180px) {
  .header .wrap { gap: 24px; min-height: 88px; }
  .brand__logo { height: 70px; }
  .menu-btn { display: none; }
  .menu, .header.is-open .menu { display: contents; }
  .nav, .header.is-open .nav { display: flex; gap: 6px; margin-inline: auto; }
  .nav a, .header.is-open .nav a { padding: 8px 14px; min-height: 0; font-size: inherit; border-radius: 999px; border-top: 0; }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--sand); color: inherit; }
  .header .btn { margin-left: 0; order: 1; }
}

/* Hero */
.hero { padding-block: clamp(24px, 4vw, 56px) var(--section); }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.kicker .icon { width: 20px; height: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hours { position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px; background: var(--card); border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.hours .icon { color: var(--accent); width: 28px; height: 28px; }
.hours b { display: block; font-size: 1.05rem; }
.hours span { color: var(--muted); font-size: .92rem; }
/* En movil el horario va debajo de la foto para no taparla */
@media (max-width: 699px) { .hours { position: static; max-width: none; margin-top: 12px; } }

/* Banda de hechos: una sola pieza con divisores, no tres tarjetas */
.facts-band { background: var(--sand); }
.facts { display: grid; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { display: flex; gap: 14px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.facts li:last-child { border-bottom: 0; }
@media (min-width: 820px) and (max-width: 1099px) {
  .facts li { padding: 22px 24px; }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--line); }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts li:nth-child(n+3) { border-bottom: 0; }
}
@media (min-width: 1100px) { .facts li { padding: 26px 24px; border-bottom: 0; border-left: 1px solid var(--line); } .facts li:first-child { border-left: 0; padding-left: 0; } }
.facts .icon { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: var(--card); color: var(--accent); }
.facts__eco .icon { background: var(--leaf); color: var(--ink); }
.facts small { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }

/* Selector: que vas a lavar */
.chooser { display: grid; gap: 28px; }
@media (min-width: 940px) { .chooser { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 599px) {
  .chooser .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .chooser .chip { min-height: 56px; padding: 8px 12px; border-radius: var(--radius); font-size: .94rem; line-height: 1.25; }
}
.result { background: var(--sand); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.result__kg { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 8vw, 6rem); line-height: .85; letter-spacing: -0.01em; }
.result__kg small { font-size: .35em; letter-spacing: 0; margin-left: 6px; }
.result__price { display: grid; gap: 2px; font-size: 1.05rem; }
.result__price b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.result__price span { color: var(--muted); font-size: .95rem; }
.prices { display: grid; gap: 28px; margin-top: var(--section); }
@media (min-width: 940px) { .prices { grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; } }
.prices__intro { display: grid; gap: 14px; }
.prices__example { padding: 14px 18px; border-radius: var(--radius); background: var(--sand); }
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.price-table th, .price-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table thead th { font-size: .85rem; color: var(--muted); font-weight: 700; padding-block: 14px 10px; }
.price-table tbody th span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.price-table td { font-family: var(--display); font-weight: 700; font-size: 1.5rem; white-space: nowrap; }
.price-table td:last-child { color: var(--accent); }
.price-table__dry th, .price-table__dry td { border-top: 2px solid var(--line); }
@media (max-width: 479px) { .price-table th, .price-table td { padding-inline: 12px; } .price-table td { font-size: 1.3rem; } }
.result__then { display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.result__then .icon { color: var(--accent); }
.sizes-list { display: grid; gap: 10px; margin-top: 4px; }
.sizes-list li { display: flex; gap: 10px; }
.sizes-list b { min-width: 56px; }

/* Pasos */
.how { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .how { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.steps { display: grid; gap: 22px; margin-top: 28px; counter-reset: paso; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; counter-increment: paso; }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.steps p { color: var(--muted); }
.rounded-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.rounded-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Mientras esperas */
.wait { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .wait { grid-template-columns: 1fr 1fr; gap: 64px; } .wait > figure { order: 2; } }
.perks { display: grid; gap: 18px 28px; margin-top: 28px; }
@media (min-width: 600px) { .perks { grid-template-columns: 1fr 1fr; } }
.perks li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.perks .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.perks b { display: block; }
.perks span { color: var(--muted); font-size: .96rem; }

/* Opiniones */
.reviews { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .reviews { grid-template-columns: 1fr 2fr; gap: 56px; } }
.reviews__sum { display: grid; gap: 16px; justify-items: start; }
.reviews__sum .reviews__num { margin-top: 8px; }
.reviews__num { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 9vw, 6.4rem); line-height: .85; letter-spacing: -0.01em; }
.stars { display: flex; gap: 4px; color: var(--accent); }
.stars .icon { width: 24px; height: 24px; fill: currentColor; stroke-width: 1; }
.reviews__list { display: grid; gap: 14px; }
@media (min-width: 640px) { .reviews__list { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; background: var(--card); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 14px; align-content: start; }
.review .stars .icon { width: 18px; height: 18px; }
.review blockquote p { font-weight: 700; line-height: 1.45; }
.review--main blockquote p { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; text-wrap: balance; }
@media (min-width: 640px) { .review--main { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .reviews__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .reviews__list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 86%; scroll-snap-align: start; }
}
.review blockquote { margin: 0; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.review__who { display: grid; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--line); overflow: hidden; }
@supports (color: color-mix(in srgb, red, blue)) { .avatar { color: color-mix(in srgb, var(--accent) 38%, var(--sand)); } }
.review figcaption b { color: var(--ink); }
.place__map { display: block; width: 100%; height: 300px; border: 0; background: var(--sand); }

/* Donde + FAQ */
.visit { display: grid; gap: 40px; }
@media (min-width: 940px) { .visit { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.place { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.place__info { padding: 28px; display: grid; gap: 18px; }
.place__row { display: flex; gap: 14px; }
.place__info .link-arrow { padding-top: 4px; min-height: 44px; }
.place__row .icon { color: var(--accent); margin-top: 2px; }
.place__row b { display: block; }
.hueco { display: grid; place-items: center; text-align: center; min-height: 220px; padding: 24px; color: var(--muted); font-size: .95rem; background: repeating-linear-gradient(135deg, var(--sand) 0 14px, var(--paper) 14px 28px); }
.hueco p { max-width: 36ch; }
.faq details { background: var(--card); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); flex: none; transition: transform .18s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Pie */
.footer { background: var(--ink); color: var(--on-dark); padding: 56px 0 100px; font-size: .95rem; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }
.footer .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer b { color: var(--leaf); display: block; margin-bottom: 8px; }
.footer a { color: #fff; }
.footer ul { display: grid; gap: 6px; }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--dark-line); }

.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.mobile-bar a { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding-inline: 16px; border-radius: 999px; font-weight: 700; white-space: nowrap; text-decoration: none; background: var(--card); color: var(--ink); }
.mobile-bar a:first-child { background: var(--accent); color: #fff; }
@media (max-width: 359px) { .mobile-bar .icon { display: none; } }
@media (min-width: 900px) { .mobile-bar { display: none; } }
/* En el inicio la barra espera a que los botones del hero salgan de pantalla (menu.js) */
.mobile-bar { transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s; }
.js-bar .mobile-bar:not(.is-visible) { transform: translateY(calc(100% + 16px)); opacity: 0; visibility: hidden; }

/* ---------- Tutorial ---------- */
.page-hero { background: var(--sand); padding-block: clamp(40px, 5vw, 72px); }
.page-hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 940px) { .page-hero .wrap { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .chips { margin-top: 0; }
.page-hero .chip { text-decoration: none; display: inline-flex; align-items: center; }
.story { display: grid; gap: 20px; padding-block: var(--section-join) var(--section); counter-reset: card; }
.card { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 18px; counter-increment: card; }
@media (min-width: 940px) { .card--media { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; } }
.card__num { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--accent); }
.card__num::before { content: counter(card); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.card > div { display: grid; gap: 16px; }
.tick { display: grid; gap: 10px; }
.tick li { display: flex; gap: 10px; }
.tick .icon { color: var(--accent); width: 22px; height: 22px; stroke-width: 2; margin-top: 3px; }
.tip { display: flex; gap: 12px; background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; }
.tip .icon { color: var(--accent); }
.tip--warn { background: var(--sand); }
.size-row { display: grid; gap: 10px; }
@media (min-width: 700px) { .size-row { grid-template-columns: 1fr 1.2fr 1.4fr; } }
.size-pill { background: var(--paper); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.size-pill b { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; letter-spacing: -0.01em; }
.size-pill span { color: var(--muted); font-size: .95rem; }
.mini-steps { display: grid; gap: 10px; counter-reset: m; }
.mini-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: m; }
.mini-steps li::before { content: counter(m); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); font-weight: 700; font-size: .95rem; }
.mini-steps span { color: var(--muted); font-size: .95rem; display: block; }
.prog { display: grid; gap: 8px; }
.prog li { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--paper); align-content: start; }
.prog [data-label]::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); }
.prog .pending { justify-self: start; }
@media (max-width: 699px) {
  .prog { grid-template-columns: 1fr 1fr; }
  .prog .head { display: none; }
}
@media (min-width: 700px) {
  .prog li { grid-template-columns: 1.2fr 1fr 1fr 1.6fr; align-items: center; padding-inline: 18px; }
  .prog [data-label]::before { display: none; }
  .prog .head { background: transparent; padding-block: 0 4px; color: var(--muted); font-size: .9rem; font-weight: 700; }
}
.pending { justify-self: start; }
.pending { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 999px; padding: 1px 10px; }
.dial { display: grid; gap: 10px; }
@media (min-width: 700px) { .dial { grid-template-columns: repeat(3, 1fr); } }
.dial li { border-radius: var(--radius); padding: 18px; background: var(--paper); display: grid; gap: 4px; }
.dial b { font-size: 1.15rem; }
.dial i { display: flex; gap: 4px; }
.dial i::before, .dial i::after { content: ""; }
.flame { display: flex; gap: 5px; }
.flame span { width: 26px; height: 8px; border-radius: 4px; background: var(--line); }
.flame span.on { background: var(--accent); }
.help { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; }
.help h2 { color: #fff; }
.help .btn--soft { background: var(--dark-line); color: #fff; }

/* Burbujas de fondo, como las del logo y el vinilo del escaparate: solo
   decoracion, detras del contenido, centro transparente para no tapar texto */
.has-bubbles { position: relative; overflow: hidden; overflow: clip; }
.has-bubbles > :not(.bubbles) { position: relative; z-index: 1; }
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bubbles i { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / .95) 0 7%, transparent 14%),
    radial-gradient(circle at 68% 74%, rgb(255 255 255 / .6) 0 4%, transparent 9%),
    radial-gradient(circle, rgb(var(--bubble-rgb) / .03) 52%, rgb(var(--bubble-rgb) / .14) 76%, rgb(var(--bubble-rgb) / .34) 100%);
  box-shadow: inset 0 0 0 1px rgb(var(--bubble-rgb) / .28); }
/* Zona de rebote de las viajeras: sin JS, todo el hero; con JS (efectos.js),
   el hueco que deja la foto: encima de ella en movil, a su izquierda en ancho */
.roam-area { position: absolute; inset: 0; container-type: size; --tx: 30s; --ty: 16s; }
@media (max-width: 939px) { .roam-area { --tx: 20s; --ty: 30s; } }
@media (max-width: 699px) { .roam-area { --tx: 9s; --ty: 30s; } }
.bubble-roam { display: none; }
@media (prefers-reduced-motion: no-preference) { @supports (width: 1cqw) { .bubble-roam { display: block; } } }
/* En movil la burbuja grande del hero se aparta del titular */
@media (max-width: 939px) { .hero .bubbles > i:first-child { left: 92%; top: 1%; } }
@media (max-width: 939px) { .bubbles i { width: calc(var(--s) * .7); margin: calc(var(--s) * -.35) 0 0 calc(var(--s) * -.35); } }

/* Ola de agua entre bloques, como el vinilo del escaparate: la capa de
   delante es del color del bloque siguiente, la de detras azul translucido */
.wave { display: block; height: clamp(34px, 5vw, 72px); margin-top: -1px; color: var(--sand); }
.wave svg { display: block; width: 100%; height: 100%; }
.wave__water { fill: rgb(var(--bubble-rgb) / .22); }
.wave__front { fill: currentColor; }
.wave--from-sand { background: var(--sand); color: var(--paper); }
.wave--to-ink { color: var(--ink); margin-bottom: -1px; }
.hero { padding-bottom: clamp(40px, 5vw, 72px); }
.footer.has-bubbles .bubbles i { box-shadow: inset 0 0 0 1px rgb(var(--bubble-rgb) / .5); }

/* ---------- Asistente (asistente.js) ---------- */
.pv-launch { position: fixed; right: 24px; bottom: 24px; z-index: 35; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(26, 48, 56, .55); transition: background .18s var(--ease), transform .3s var(--ease); }
.pv-launch:hover { background: var(--accent-deep); }
.pv-launch .icon { width: 22px; height: 22px; }
.pv-launch[hidden] { display: none; }
/* En movil va encima de la barra fija; si la barra aun no ha salido, baja a su sitio */
@media (max-width: 899px) {
  .pv-launch { right: 12px; bottom: 76px; min-height: 48px; padding: 0 16px 0 13px; }
  .js-bar:has(.mobile-bar:not(.is-visible)) .pv-launch { transform: translateY(64px); }
}
.pv-chat { position: fixed; z-index: 40; right: 24px; bottom: 24px; width: 384px; height: min(640px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(26, 48, 56, .5); }
.pv-chat[hidden] { display: none; }
@media (max-width: 899px) {
  .pv-chat { inset: auto 0 0 0; width: auto; height: min(92dvh, 760px); border-radius: 20px 20px 0 0; border-width: 1px 0 0; }
  .pv-open, .pv-open body { overflow: hidden; }
}
.pv-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; background: var(--ink); color: #fff; }
.pv-chat__avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); }
.pv-chat__avatar .icon { width: 22px; height: 22px; }
.pv-chat__title { display: grid; flex: 1; line-height: 1.25; }
.pv-chat__title span { color: var(--on-dark); font-size: .88rem; }
.pv-chat__btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.pv-chat__btn:hover { background: var(--dark-line); }
.pv-chat__btn .icon { width: 22px; height: 22px; }
.pv-chat__log { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pv-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: .98rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.pv-msg--bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.pv-msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.pv-link { display: flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 4px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: normal; }
.pv-link .icon { width: 18px; height: 18px; stroke-width: 2; }
.pv-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-opt { min-height: 44px; padding: 8px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: .94rem; font-weight: 700; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.pv-opt:hover:not([disabled]) { border-color: var(--accent); }
.pv-opt--ghost { background: transparent; color: var(--muted); }
.pv-opts.is-done { display: none; }
.pv-typing { display: flex; gap: 5px; padding-block: 16px; }
.pv-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; }
.pv-form { display: grid; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.pv-form fieldset { border: 0; margin: 0; padding: 0; }
.pv-form legend, .pv-form label { font-weight: 700; font-size: .92rem; padding: 0; }
.pv-form label small { font-weight: 400; color: var(--muted); }
.pv-form label > input { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.pv-form label > input:focus { border-color: var(--accent); outline: none; }
.pv-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pv-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pv-seg label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.pv-seg input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.pv-seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv-form .btn { justify-content: center; font: inherit; font-weight: 700; }
.pv-chat__form { display: flex; gap: 8px; padding: 10px 12px 0; border-top: 1px solid var(--line); background: var(--paper); }
.pv-chat__form[hidden] { display: none; }
.pv-chat__form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; }
.pv-chat__form input:focus { border-color: var(--accent); outline: none; }
.pv-chat__form button { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.pv-chat__form button .icon { width: 22px; height: 22px; }
.pv-chat__note { margin: 0; padding: 8px 16px 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.pv-chat__form:not([hidden]) + .pv-chat__note { padding-top: 6px; }
@media (max-width: 899px) { .pv-chat__note { padding-bottom: max(12px, env(safe-area-inset-bottom)); } }

/* Efectos suaves (efectos.js): aparicion al llegar, flecha que avanza al pasar
   el raton y cambio de kg en el selector. Desactivados con reducir movimiento. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(16px); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .btn .icon, .link-arrow .icon { transition: transform .2s var(--ease); }
  .btn:hover .icon, .link-arrow:hover .icon { transform: translateX(3px); }
  .result__kg.is-swap, #r-txt.is-swap { animation: swap-in .35s var(--ease); }
  @keyframes swap-in { from { opacity: 0; transform: translateY(6px); } }
  /* Las burbujas flotan muy despacio, cada una a su ritmo */
  .bubbles i { animation: bob 7s ease-in-out var(--d, 0s) infinite alternate; }
  .bubbles i:nth-child(even) { animation-duration: 9s; }
  @keyframes bob { to { transform: translateY(-14px); } }
  /* Burbuja viajera del hero: rebota en diagonal de borde a borde, como el
     logo del salvapantallas de la tele, pero lento. Dos animaciones lineales
     independientes (horizontal con translate, vertical con transform) y
     retraso negativo para que arranque ya por el medio. Solo anima propiedades
     que no repintan y se pausa cuando el hero sale de pantalla (efectos.js).
     Las unidades cq miden el hero; las duraciones dan unos 40 px por segundo. */
  .hero .bubbles .bubble-roam { --s: 58px; left: 0; top: 0; margin: 0; will-change: translate, transform, scale;
    animation: bounce-x var(--tx) linear calc(var(--tx) * -.5) infinite alternate,
               bounce-y var(--ty) linear calc(var(--ty) * -.4) infinite alternate,
               wobble 5s ease-in-out infinite alternate; }
  /* La pequena va a la misma velocidad pero sale de otro sitio y con otro ritmo */
  .hero .bubbles .bubble-roam--small { --s: 34px;
    animation: bounce-x calc(var(--tx) * 1.13) linear calc(var(--tx) * -.08) infinite alternate,
               bounce-y calc(var(--ty) * .91) linear calc(var(--ty) * -.85) infinite alternate,
               wobble 4s ease-in-out -2s infinite alternate; }
  @keyframes bounce-x { from { translate: 0 0; } to { translate: calc(100cqw - 100%) 0; } }
  @keyframes bounce-y { from { transform: translateY(0); } to { transform: translateY(calc(100cqh - 100%)); } }
  @keyframes wobble { from { scale: 1 .96; } to { scale: .96 1.04; } }
  .pv-typing span { animation: pv-dot 1s ease-in-out infinite; }
  .pv-typing span:nth-child(2) { animation-delay: .15s; }
  .pv-typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes pv-dot { 50% { opacity: 1; transform: translateY(-3px); } }
  .is-offscreen .bubbles i, .hero.is-offscreen .bubbles .bubble-roam { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
