/* ==========================================================================
   Ratito · landing
   Mobile-first. Sin frameworks ni build.
   ========================================================================== */

:root {
  /* Paleta de marca */
  --crema:       #FFF4E3;  /* fondo general */
  --crema-2:     #F7E8CF;  /* fondo de secciones alternas */
  --tinta:       #2B2B35;  /* texto y bordes */
  --gris:        #6B6B78;  /* texto secundario */
  --naranja:     #E07A2E;  /* marca y CTA principal */
  --naranja-osc: #B85F1E;  /* sombra del CTA */
  --azul:        #2F6F9F;  /* Auto y viajes */
  --rojo:        #D0632A;  /* Restaurante */
  --verde:       #3F8A4E;  /* Espera, y check de "sí" */
  --violeta:     #7A5BA6;  /* Lluvia */
  --amarillo:    #F6C445;  /* detalles y resaltados */
  --blanco:      #FFFFFF;

  /* Derivados para que el texto chico cumpla WCAG AA (≥ 4,5:1) */
  --gris-2:      #5F5F6B;  /* texto secundario sobre crema-2 (5,2:1) */
  --rojo-txt:    #A64F22;  /* rojo para texto o fondo de etiquetas (5,6:1 con blanco) */
  --verde-txt:   #367542;  /* verde para texto o fondo de etiquetas (5,6:1 con blanco) */
  --claro:       #D4D4DC;  /* texto secundario sobre tinta (9,5:1) */

  /* Solo decoración (pasto) */
  --verde-claro: #7BC26A;
  --marron:      #7A4B2A;
  --marron-osc:  #5C3820;

  --font-pixel: "Pixelify Sans", "Andika", system-ui, sans-serif;
  --font-text:  "Andika", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --wrap: 560px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

a { color: var(--azul); text-underline-offset: 3px; text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
  text-wrap: balance;
}
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; font-weight: 600; }

/* Los números de los títulos van con la fuente de texto: en Pixelify el 5 parece una S */
.num { font-family: var(--font-text); font-weight: 700; letter-spacing: 0; }
h1 .num, h2 .num, h3 .num { font-size: 1.1em; line-height: 1; }

mark {
  background: linear-gradient(transparent 58%, var(--amarillo) 58%, var(--amarillo) 92%, transparent 92%);
  color: inherit;
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Sprites pixel: siempre nítidos */
.spr {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  flex: none;
}

/* Foco visible en todo lo interactivo */
:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  background: var(--tinta);
  color: var(--blanco);
  padding: 12px 16px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

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

/* ---------- Caja pixel ----------
   Borde de 3px con esquinas escalonadas (clip-path de 12 puntos, escalón de 6px)
   y sombra dura sin blur. El borde y el fondo son dos capas recortadas;
   la sombra es un drop-shadow que sigue la forma escalonada. */
.pbox {
  --s: 6px;                    /* escalón */
  --bw: 3px;                   /* grosor del borde */
  --off: 6px;                  /* desplazamiento de la sombra */
  --pb-border: var(--tinta);
  --pb-bg: var(--blanco);
  --pb-shadow: var(--tinta);
  position: relative;
  isolation: isolate;
  filter: drop-shadow(var(--off) var(--off) 0 var(--pb-shadow));
}
.pbox::before,
.pbox::after {
  content: "";
  position: absolute;
  pointer-events: none;
  clip-path: polygon(
    var(--s) 0, calc(100% - var(--s)) 0, calc(100% - var(--s)) var(--s), 100% var(--s),
    100% calc(100% - var(--s)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s)) 100%, var(--s) 100%,
    var(--s) calc(100% - var(--s)), 0 calc(100% - var(--s)), 0 var(--s), var(--s) var(--s)
  );
}
.pbox::before { inset: 0; background: var(--pb-border); z-index: -2; }
.pbox::after  { inset: var(--bw); background: var(--pb-bg); z-index: -1; }

.pbox-sm { --s: 4px; --off: 3px; }

/* Colores por momento */
.m-auto   { --c: var(--azul);    --c-txt: var(--azul);      --c-dark: var(--azul); }
.m-rest   { --c: var(--rojo);    --c-txt: var(--rojo-txt);  --c-dark: var(--rojo-txt); }
.m-espera { --c: var(--verde);   --c-txt: var(--verde-txt); --c-dark: var(--verde-txt); }
.m-lluvia { --c: var(--violeta); --c-txt: var(--violeta);   --c-dark: var(--violeta); }
.m-otro   { --c: var(--tinta);   --c-txt: var(--tinta);     --c-dark: var(--tinta); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-dark, var(--tinta));
  color: var(--blanco);
  font: 700 15px/1.35 var(--font-text);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
}

/* ---------- Botón CTA ---------- */
.btn {
  --pb-bg: var(--naranja);
  --pb-shadow: var(--naranja-osc);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  background: none;
  color: var(--blanco);
  font: 700 19px/1.2 var(--font-text);   /* blanco sobre naranja: solo grande y bold (3:1) */
  text-align: center;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--naranja-osc);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .08s ease-out, filter .08s ease-out;
}
.btn:active {
  --off: 3px;
  transform: translate(3px, 3px);
}
@media (hover: hover) {
  .btn:hover { --pb-bg: #D46E24; }  /* más oscuro: sube el contraste */
}

.micro {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--gris);
  text-align: center;
  text-wrap: balance;
}

/* ---------- Barra superior y header ---------- */
.topbar {
  background: var(--tinta);
  color: var(--blanco);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  padding: 7px var(--gutter);
  text-wrap: balance;
}
.topbar span { white-space: nowrap; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.header-logo { display: inline-flex; align-items: center; min-height: 44px; }
.header-logo img { width: 110px; height: 36px; }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--tinta);
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-color: var(--naranja);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* ---------- Hero ---------- */
.hero { padding: 12px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "visual" "cta";
}
.hero-copy { grid-area: copy; }
.hero-visual { grid-area: visual; }
.hero-cta { grid-area: cta; }

.eyebrow {
  --pb-bg: var(--amarillo);
  --off: 3px;
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 14px;
  font-size: clamp(14px, 4vw, 16px);   /* entra en una línea desde 360px */
  font-weight: 700;
  line-height: 1.3;
}
.eyebrow span { white-space: nowrap; }
.hero h1 { margin-bottom: 14px; }
.lead { font-size: 18px; margin-bottom: 0; }

.hero-visual {
  position: relative;
  margin: 16px 0 18px;
  padding: 16px 8px 8px;
}
.hero-img { width: 100%; height: auto; position: relative; z-index: 1; }
.hero-visual .spr { position: absolute; z-index: 2; }
.hero-nube     { top: -4px; left: 0; animation: flota 7s steps(7) infinite alternate; }
.hero-estrella { top: 6px; right: 4px; }
.hero-auto     { bottom: -6px; left: 10px; }

@keyframes flota {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

/* Ratito asomando por arriba del botón */
.peek-btn { position: relative; margin-top: 42px; }
.peek-btn .btn { z-index: 1; }
.peek-btn-raton {
  position: absolute;
  right: 22px;
  top: -40px;
  z-index: 0;
}

.chips {
  display: flex;
  gap: 12px;
  margin: 26px calc(-1 * var(--gutter)) 0;
  padding: 2px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 8px 14px 8px 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  scroll-snap-align: start;
}

/* ---------- Separadores ---------- */
.sprite-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 22px;
  padding: 6px 0 0;
  opacity: .9;
}

/* ---------- Secciones ---------- */
.sec { padding: 60px 0; }
.sec-alt {
  position: relative;
  background: var(--crema-2);
  margin-block: 12px;
}
/* Escalón pixel entre crema y crema-2 */
.sec-alt::before,
.sec-alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--crema-2) 0 12px, transparent 12px 24px) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--crema-2), var(--crema-2)) 0 6px / 100% 6px no-repeat;
}
.sec-alt::before { top: -12px; }
.sec-alt::after  { bottom: -12px; transform: scaleY(-1); }
.sec-alt .micro { color: var(--gris-2); }

.sec-title { text-align: center; margin-bottom: 14px; }
.sec-sub { text-align: center; margin: 0 auto 26px; max-width: 34em; }

/* Aparición suave (solo si hay JS y no se pidió reducir movimiento) */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* ---------- ¿Te pasa esto? ---------- */
.pain-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.pain {
  --pb-border: var(--c);
  --bw: 4px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 96px;
}
.pain .spr { justify-self: center; }
.pain p { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; }

.pain-close { margin-top: 40px; text-align: center; }
.pain-big { font-size: 22px; line-height: 1.45; margin-bottom: 18px; }
.pain-answer {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  text-wrap: balance;
}

/* ---------- Carpetas por momento ---------- */
.folders { display: grid; gap: 26px; margin-top: 28px; }
.folder { display: flex; flex-direction: column; }
.folder-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin: 3px 3px 0;
  padding: 14px 16px;
  background: var(--c);
  color: var(--blanco);
  border-bottom: 3px solid var(--tinta);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% 100%, 0 100%, 0 6px, 6px 6px);
}
.folder-head h3 { margin: 0; font-size: 24px; color: var(--blanco); }  /* texto grande: 3:1 alcanza */
.folder-body { padding: 16px 20px 20px; }
.folder-count { font-weight: 700; font-size: 19px; color: var(--c-txt); margin-bottom: 8px; }
.folder-intro { margin-bottom: 6px; }
.folder-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 4px;
}
.folder-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .6em;
  width: 9px; height: 9px;
  background: var(--c);
}
.folder-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 3px dashed var(--crema-2);
  font-style: italic;
  font-size: 17px;
}

/* ---------- Carrusel (galería y reseñas) ---------- */
.carousel { position: relative; }
.car-track {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  padding: 6px var(--gutter) 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -3px; }
.car-list { display: flex; gap: 18px; }
.car-list::after { content: ""; flex: 0 0 1px; }  /* respeta el padding final del scroll */
.car-item { flex: 0 0 78%; scroll-snap-align: start; }

.car-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}
.car-controls[hidden] { display: none !important; }
.car-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.car-btn svg { width: 15px; height: 21px; fill: currentColor; shape-rendering: crispEdges; }
.car-btn:active { --off: 1px; transform: translate(2px, 2px); }
.car-btn:disabled { opacity: .35; cursor: default; transform: none; }
.car-count { margin: 0; min-width: 4.5em; text-align: center; font-weight: 700; font-size: 16px; color: var(--gris); }

/* Galería */
.gal-card {
  display: block;
  width: 100%;
  padding: 12px 12px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gal-card img { width: 100%; border: 2px solid var(--crema-2); }
.gal-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; }
.gal-name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.gal-age { font-size: 16px; line-height: 1.3; color: var(--gris); margin-top: -4px; }

/* Color vs B/N */
.versiones { margin: 34px 0 0; padding: 14px 14px 18px; }
.versiones img { width: 100%; }
.versiones figcaption { margin-top: 14px; font-size: 18px; }

.aviso {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 0;
  padding: 14px 16px;
  border: 3px dashed var(--tinta);
  background: var(--blanco);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

/* ---------- Cómo funciona ---------- */
.steps { display: grid; gap: 22px; margin-top: 28px; counter-reset: none; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  padding: 18px 20px 20px;
}
.step-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--amarillo);
  border: 3px solid var(--tinta);
  font: 700 22px/1 var(--font-text);
}
.step .spr { justify-self: start; }
.step p { grid-column: 1 / -1; margin: 0; font-size: 18px; }

.tip {
  --pb-bg: var(--amarillo);
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 0;
  padding: 18px 20px;
  font-size: 18px;
}

/* ---------- Reseñas ---------- */
.rev-list { align-items: flex-start; }
.rev-item { padding-bottom: 24px; }  /* espacio para la cola del globo */
.globo {
  margin: 0;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.globo-cola {
  position: absolute;
  left: 28px;
  top: calc(100% - 3px);
  width: 27px;
  height: 21px;
  background: var(--tinta);
  clip-path: polygon(0 0, 27px 0, 27px 9px, 18px 9px, 18px 15px, 9px 15px, 9px 21px, 0 21px);
}
.globo-cola::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blanco);
  clip-path: polygon(3px 0, 24px 0, 24px 6px, 15px 6px, 15px 12px, 6px 12px, 6px 18px, 3px 18px);
}
.rev-text { margin: 0; font-size: 18px; line-height: 1.5; }
.rev-text p { margin: 0; }
.rev-who { font-weight: 700; font-size: 16px; color: var(--gris); }
.rev-item .tag { align-self: flex-start; }
.phone {
  align-self: center;
  width: 100%;
  max-width: 220px;
  padding: 16px 8px 18px;
  background: var(--tinta);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 4px 8px, 4px 4px, 8px 4px);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 36px; height: 4px;
  margin-left: -18px;
  background: var(--gris);
}
.phone img { width: 100%; background: var(--blanco); }
/* Con una sola reseña no hace falta carrusel */
.rev-list[data-count="1"] .car-item { flex-basis: 100%; }

/* ---------- ¿Es para vos? ---------- */
.fit { display: grid; gap: 26px; margin-top: 28px; }
.fit-box { padding: 22px 20px; }
.fit-si { --pb-border: var(--verde); --bw: 4px; }
.fit-no { --pb-border: var(--gris); }
.fit-si h3 { color: var(--verde-txt); }
.fit-no h3 { color: var(--rojo-txt); }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.icon-list li:last-child { margin-bottom: 0; }
.ico { flex: none; width: 21px; height: 18px; margin-top: 5px; shape-rendering: crispEdges; fill: currentColor; }
.ico-si { color: var(--verde); }
.ico-no { color: var(--rojo-txt); }

/* ---------- Precio ---------- */
.price-box {
  --pb-bg: var(--tinta);
  --pb-shadow: var(--naranja);
  max-width: 640px;
  margin-inline: auto;
  padding: 30px 22px 26px;
  color: var(--crema);
}
.price-box h2 { color: var(--crema); text-align: center; margin-bottom: 22px; }
.price-list li { font-size: 18px; }
.price-list .ico { color: var(--verde-claro); }
.price {
  margin: 28px 0 22px;
  padding-top: 22px;
  border-top: 3px dashed #4A4A58;
  text-align: center;
}
.price-num {
  margin: 0;
  font: 700 58px/1 var(--font-text);
  color: var(--amarillo);
  letter-spacing: -.01em;
}
.price-sub { margin: 10px 0 0; font-weight: 700; font-size: 18px; }
.price-per {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 12px;
  border: 2px dashed var(--amarillo);
  color: var(--crema);
  font-size: 16px;
}
.price-cuotas { margin: 10px 0 0; font-weight: 700; color: var(--verde-claro); }
.price-box .btn { --pb-border: var(--crema); }
.price-box .micro { color: var(--claro); }

/* ---------- Garantía ---------- */
.peek { position: relative; }
.peek-img { position: absolute; z-index: 0; }
.peek > .pbox { z-index: 1; }

.garantia-peek { padding-top: 58px; }
.garantia-peek .peek-img { top: 0; left: 22px; }
.garantia {
  padding: 26px 22px 24px;
}
.garantia h2 { padding-right: 96px; margin-bottom: 12px; }
.sello {
  position: absolute;
  top: -26px;
  right: 14px;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--tinta);
  clip-path: polygon(20% 0, 80% 0, 80% 10%, 90% 10%, 90% 20%, 100% 20%, 100% 80%, 90% 80%, 90% 90%, 80% 90%, 80% 100%, 20% 100%, 20% 90%, 10% 90%, 10% 80%, 0 80%, 0 20%, 10% 20%, 10% 10%, 20% 10%);
}
.sello::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  background: var(--amarillo);
  clip-path: inherit;
}
.sello { isolation: isolate; }
.sello-n { font-size: 38px; line-height: 1; }
.sello-t { font: 700 15px/1.1 var(--font-pixel); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; margin-top: 26px; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--tinta), var(--tinta)) center / 18px 4px no-repeat,
    linear-gradient(var(--tinta), var(--tinta)) center / 4px 18px no-repeat;
}
.faq-item details[open] summary::after {
  background: linear-gradient(var(--naranja-osc), var(--naranja-osc)) center / 18px 4px no-repeat;
}
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-item details p { padding: 0 18px 18px; margin: 0; font-size: 18px; }

/* ---------- Cierre ---------- */
.cierre-peek { padding-top: 146px; }
.cierre-peek .peek-img { top: 0; left: 50%; margin-left: -96px; }
.cierre-box { padding: 30px 22px 26px; text-align: center; }
.cierre-box h2 { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 24px;
  background: var(--crema-2);
  color: var(--tinta);
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--crema-2) 0 12px, transparent 12px 24px) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--crema-2), var(--crema-2)) 0 6px / 100% 6px no-repeat;
}
.footer-inner { padding-top: 36px; padding-bottom: 32px; text-align: center; }
.footer-logo { width: 86px; height: 28px; margin: 0 auto 8px; }
.footer-tag { font-weight: 700; margin-bottom: 10px; }
.footer-contact { margin-bottom: 14px; }
.footer a { color: var(--tinta); }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 17px;
}
.footer-links .btn-arrep {
  margin: 6px 0;
  padding: 0 16px;
  border: 3px solid var(--tinta);
  background: var(--blanco);
  font-weight: 700;
  text-decoration: none;
}
.legal { font-size: 16px; color: var(--gris-2); margin: 0 auto 8px; max-width: 36em; }

/* Pasto pixel: una fila de matas, una de cuadraditos verdes y una de tierra (todo CSS) */
.pasto {
  height: 32px;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, var(--verde-claro) 8px 16px, transparent 16px 40px) 0 0 / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--verde) 0 8px, var(--verde-claro) 8px 16px) 0 8px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--marron) 0 24px, var(--marron-osc) 24px 32px, var(--marron) 32px 56px) 0 16px / 100% 16px no-repeat;
}

/* ---------- Barra fija inferior (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--crema);
  border-top: 3px solid var(--tinta);
  padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s ease-out, visibility 0s linear .25s;
}
.sticky-cta.is-on {
  transform: none;
  visibility: visible;
  transition: transform .25s ease-out, visibility 0s;
}
.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--wrap);
  margin-inline: auto;
}
.sticky-price { display: flex; flex-direction: column; margin: 0; line-height: 1.2; }
.sticky-price strong { font-size: 22px; }
.sticky-price span { font-size: 16px; color: var(--gris); }
.btn-sticky { --off: 4px; width: auto; flex: 1 1 auto; max-width: 250px; padding-inline: 14px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--crema);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(43, 43, 53, .92); }
.lb-open, .lb-open body { overflow: hidden; }
.lb-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 12px 16px;
  pointer-events: none;   /* el clic en el fondo llega al <dialog> y lo cierra */
}
.lb-inner > * { pointer-events: auto; }
.lb-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  background: var(--blanco);
  border: 3px solid var(--tinta);
  box-shadow: 6px 6px 0 var(--naranja);
}
.lb-cap { margin: 0; font-weight: 700; font-size: 17px; text-align: center; }
.lb-nav { display: flex; gap: 22px; }
.lb-nav .car-btn { --pb-bg: var(--crema); }
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  cursor: pointer;
  --pb-bg: var(--crema);
}
.lb-close svg { width: 21px; height: 18px; fill: currentColor; shape-rendering: crispEdges; }
.lightbox :focus-visible { outline-color: var(--amarillo); }

/* ---------- Páginas legales ---------- */
.legal-page { padding: 16px 0 60px; }
.doc { padding: 26px 20px 28px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 22px; margin-top: 1.6em; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 1.2em; margin-bottom: 1em; }
.doc li { margin-bottom: .4em; }
.doc-meta { color: var(--gris); font-size: 16px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 14px;
  color: var(--tinta);
  font-weight: 700;
}
.back-link svg { width: 10px; height: 14px; fill: currentColor; shape-rendering: crispEdges; }

.form { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: 16px; color: var(--gris); margin: 0; }
.hint-inline { font-weight: 400; color: var(--gris); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 3px solid var(--tinta);
  border-radius: 0;
  background: var(--blanco);
  color: var(--tinta);
  font: 400 18px/1.4 var(--font-text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 0; }
.form-result {
  margin-top: 22px;
  padding: 16px;
  border: 3px dashed var(--tinta);
  background: var(--crema);
}
.form-result pre {
  margin: 12px 0 0;
  padding: 12px;
  background: var(--blanco);
  white-space: pre-wrap;
  word-break: break-word;
  font: 400 16px/1.45 var(--font-text);
}

@media (min-width: 600px) {
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 960px) {
  :root { --gutter: 24px; }
  body { font-size: 18px; }
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }

  .wrap { max-width: calc(1040px + 2 * var(--gutter)); }
  .wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }

  .hero { padding: 36px 0 64px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "copy visual" "cta visual";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: center;
  }
  .hero-copy { align-self: end; }
  .hero-cta { align-self: start; }
  .hero-visual { margin: 0; }
  .lead { font-size: 20px; }
  .peek-btn { max-width: 420px; }
  .hero-cta .micro { max-width: 420px; }

  .sec { padding: 88px 0; }
  .sec-sub { margin-bottom: 36px; }

  .pain-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .pain { grid-template-columns: none; grid-template-rows: 56px auto; align-items: start; row-gap: 16px; padding: 22px; }
  .pain .spr { justify-self: start; align-self: end; }
  .pain-close { max-width: 760px; margin-inline: auto; }
  .pain-big { font-size: 24px; }
  .pain-answer { font-size: 30px; }

  .folders { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .carousel-gal .car-track { overflow: visible; margin: 0; padding: 0; }
  .carousel-gal .car-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .carousel-gal .car-list::after { content: none; }
  .carousel-gal .car-item { flex: none; display: flex; }
  .carousel-gal .gal-card { height: 100%; }
  .carousel-gal .car-controls { display: none; }

  .versiones {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 56px;
    padding: 18px 28px 18px 18px;
  }
  .versiones figcaption { margin: 0; font-size: 20px; }
  .aviso { max-width: 760px; margin-inline: auto; justify-content: center; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { align-content: start; }
  .tip { max-width: 760px; margin-inline: auto; margin-top: 36px; }

  .carousel-rev .car-track { overflow: visible; margin: 0; padding: 0 0 12px; }
  .carousel-rev .car-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 36px; }
  .carousel-rev .car-list::after { content: none; }
  .carousel-rev .car-item { flex: none; }
  .carousel-rev .car-controls { display: none; }
  .rev-list[data-count="1"] { grid-template-columns: minmax(0, 560px); justify-content: center; }

  .fit { grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }

  .price-box { padding: 40px 48px 34px; }

  .cierre-peek { padding-top: 196px; }
  .cierre-peek .peek-img { width: 256px; height: 256px; margin-left: -128px; }

  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }

  .sticky-cta { display: none; }

  .doc { padding: 40px 48px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-on .reveal { opacity: 1; transform: none; }
}
