/* VendeChat EC public site, v3 "Vecino premium" (odd/tasks/site-v3.md). Brand: brand/brand-identity.md. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/hostgrotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martianmono.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #1f7dbe;
  --sky-lift: #3a97d6;
  --sky-line: rgba(255, 255, 255, 0.24);
  --sky-text: #ffffff;
  --navy: #0a2238;
  --navy-deep: #051426;
  --ink: #0a2238;
  --graphite: #4a5b6d;
  --paper: #ffffff;
  --surface: #eaf4fb;
  --pale: #bfe3f8;
  --sold-out: #f0a28e;
  --line: rgba(10, 34, 56, 0.14);
  --display: "Unbounded", "Host Grotesk", system-ui, sans-serif;
  --body: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: "Martian Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(72px, 10vw, 136px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.sitio--noche :focus-visible,
.heroe :focus-visible,
.reglas :focus-visible,
.cierre :focus-visible,
.capitulo--ladrillo :focus-visible {
  outline-color: var(--paper);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.salto {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.salto:focus {
  top: 0;
}

.contenedor {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .contenedor {
    padding: 0 32px;
  }
}

.cifra {
  font-family: var(--data);
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Buttons */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.boton:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.boton:active {
  transform: translateY(1px) scale(0.99);
}

.boton--grande {
  min-height: 58px;
  padding: 14px 26px;
  font-size: 1.0625rem;
}

.boton--chico {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-radius: 999px;
}

.boton--linea {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.boton--linea:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.boton--claro {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--navy);
}

.boton--claro:hover {
  background: var(--surface);
  border-color: var(--paper);
}

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  min-height: 0;
  padding-bottom: 2px;
}

.enlace-flecha::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}

.enlace-flecha:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* Header and footer (shared with privacidad.html) */

header.sitio {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.sitio--noche {
  background: var(--sky);
  color: var(--paper);
}

header.sitio--noche {
  border-bottom-color: var(--sky-line);
  background: var(--sky);
}

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.marca {
  display: inline-flex;
  flex-shrink: 0;
}

.marca img {
  display: block;
  width: 188px;
  height: auto;
}

.navegacion {
  display: none;
  gap: 32px;
}

.navegacion a {
  color: var(--graphite);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}

.sitio--noche .navegacion a {
  color: var(--sky-text);
}

.navegacion a:hover {
  color: var(--navy);
}

.sitio--noche .navegacion a:hover {
  color: var(--paper);
}

@media (min-width: 820px) {
  .navegacion {
    display: flex;
  }
}

footer.sitio {
  background: var(--ink);
  color: var(--paper);
}

footer.sitio--noche {
  background: var(--sky);
  border-top: 1px solid var(--sky-line);
}

.pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 0.92rem;
  color: var(--sky-text);
}

.pie a {
  color: var(--paper);
}

/* Hero */

.heroe {
  background: radial-gradient(120% 90% at 50% 0%, var(--sky-lift) 0%, var(--sky) 62%);
  color: var(--paper);
  padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 8vw, 104px);
}

.heroe-cabeza {
  display: grid;
  gap: 28px;
}

.heroe h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.entrada {
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--sky-text);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

@media (min-width: 900px) {
  .heroe h1 {
    max-width: 22ch;
  }

  .heroe-lado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .heroe-lado .entrada {
    max-width: 52ch;
    margin: 0;
  }

  .heroe-lado .acciones {
    flex-shrink: 0;
  }
}

/* The film: same source as the MP4 (site/film/film.js), drawn live. */

.pelicula {
  position: relative;
  margin: clamp(32px, 5vw, 56px) 0 0;
}

.pelicula picture,
.pelicula-poster,
.pelicula-lienzo {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.pelicula-poster {
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--sky-line);
}

.pelicula-lienzo {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.pelicula.lista .pelicula-lienzo {
  opacity: 1;
}

.pelicula-pausa {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--sky-line);
  border-radius: 999px;
  background: rgba(10, 34, 56, 0.72);
  color: var(--paper);
  font: 600 0.88rem var(--body);
  cursor: pointer;
}

.pelicula-pausa:hover {
  background: var(--sky);
}

@media (min-width: 900px) {
  .pelicula-poster {
    aspect-ratio: 16 / 9;
  }
}

/* Chapters */

.capitulo {
  padding: var(--section) 0;
}

.capitulo h2,
.reglas h2,
.pasos-seccion h2,
.precios h2,
.preguntas h2,
.cierre h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.capitulo-rejilla {
  display: grid;
  gap: 48px;
  align-items: center;
}

.capitulo-texto p {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: 1.125rem;
}

@media (min-width: 960px) {
  .capitulo-rejilla {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 80px;
  }

  .capitulo-rejilla--invertida .capitulo-texto {
    order: 2;
  }
}

.capitulo--catalogo {
  background: var(--surface);
}

.capitulo--catalogo .capitulo-texto p {
  color: var(--graphite);
}

.muestra {
  position: relative;
}

.catalogo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  padding: 18px 14px 14px;
  border-radius: 22px;
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 30px 60px -28px rgba(10, 34, 56, 0.55);
  font-size: 1rem;
}

.catalogo caption {
  caption-side: bottom;
  padding-top: 12px;
  text-align: left;
  font: 500 0.78rem var(--data);
  color: var(--graphite);
}

.catalogo th {
  padding: 4px 12px 12px;
  text-align: left;
  font: 500 0.72rem var(--data);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky-text);
}

.catalogo td {
  position: relative;
  padding: 14px 12px;
  border-top: 1px solid var(--sky-line);
}

.catalogo th:last-child,
.catalogo td:last-child {
  text-align: right;
}

.catalogo td:nth-child(3),
.catalogo td:nth-child(4) {
  font-family: var(--data);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .catalogo {
    padding: 12px 6px 8px;
    font-size: 0.9rem;
  }

  .catalogo th,
  .catalogo td {
    padding-left: 8px;
    padding-right: 8px;
  }

  .catalogo td:nth-child(3),
  .catalogo td:nth-child(4) {
    font-size: 0.8rem;
  }
}

.catalogo-fila--agotada td {
  color: rgba(255, 255, 255, 0.5);
}

.catalogo-fila--agotada td:last-child {
  color: var(--sold-out);
}

/* The matching row lights up once, like in the film. */
.catalogo-fila--elegida td {
  background-image: linear-gradient(var(--sky), var(--sky));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: background-size 0.9s var(--ease-out);
}

.catalogo-fila--elegida td:first-child {
  border-radius: 10px 0 0 10px;
}

.catalogo-fila--elegida td:last-child {
  border-radius: 0 10px 10px 0;
}

.js .muestra:not(.visible) .catalogo-fila--elegida td {
  background-size: 0% 100%;
}

.js .muestra .catalogo-fila--elegida td:nth-child(2) { transition-delay: 0.12s; }
.js .muestra .catalogo-fila--elegida td:nth-child(3) { transition-delay: 0.24s; }
.js .muestra .catalogo-fila--elegida td:nth-child(4) { transition-delay: 0.36s; }

.conversacion {
  display: grid;
  gap: 10px;
  margin: 14px 0 0 auto;
  max-width: 380px;
  position: relative;
}

.burbuja {
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: 0 10px 24px -14px rgba(10, 34, 56, 0.45);
}

.burbuja--cliente {
  justify-self: end;
  max-width: 85%;
  background: var(--ink);
  color: var(--paper);
}

.burbuja--asistente {
  background: var(--paper);
  color: var(--ink);
}

.burbuja--asistente .cifra {
  color: var(--navy);
}

/* Owner's decision chapter: navy owns the band. */

.capitulo--ladrillo {
  background: var(--navy);
  color: var(--paper);
}

.capitulo--ladrillo .capitulo-texto p {
  color: rgba(255, 255, 255, 0.86);
}

.toques {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 52ch;
}

.toques li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.toques strong {
  color: var(--paper);
}

.aviso {
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.aviso-etiqueta {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--paper);
  font: 500 0.78rem var(--data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aviso-tarjeta {
  padding: 26px 28px 28px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -36px rgba(10, 34, 56, 0.7);
}

.aviso-tarjeta p {
  margin: 0 0 10px;
}

.aviso-titulo {
  padding-bottom: 14px;
  margin-bottom: 16px !important;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 700;
}

.aviso-titulo .cifra {
  color: var(--navy);
}

.aviso-nota {
  color: var(--graphite);
  font-size: 0.95rem;
}

.aviso-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.aviso-boton {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font-weight: 600;
}

.aviso-boton--si {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

/* House rules: the store's posted rules board. */

.reglas {
  padding: var(--section) 0;
  background: var(--sky);
  color: var(--paper);
}

.reglas-entrada {
  margin: -8px 0 40px;
  color: var(--sky-text);
  font-size: 1.125rem;
}

.reglas-lista {
  margin: 0;
  padding: 8px clamp(20px, 4vw, 48px);
  list-style: none;
  border: 1px solid var(--sky-line);
  border-radius: 28px;
  background: var(--navy);
}

.reglas-lista li {
  padding: clamp(20px, 2.6vw, 30px) 0;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sky-text);
}

.reglas-lista li + li {
  border-top: 1px solid var(--sky-line);
}

.reglas-lista span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pale);
}

/* Setup steps */

.pasos-seccion {
  padding: var(--section) 0;
  background: var(--paper);
}

.pasos {
  display: grid;
  gap: 36px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.paso {
  position: relative;
  padding-top: 34px;
  counter-increment: paso;
}

.paso::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: var(--line);
}

.paso::after {
  content: "Paso " counter(paso);
  position: absolute;
  left: 0;
  top: -2px;
  padding-right: 12px;
  background: var(--paper);
  font: 600 0.78rem var(--data);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.paso h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.paso p {
  margin: 0;
  color: var(--graphite);
  max-width: 34ch;
}

@media (min-width: 820px) {
  .pasos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Prices */

.precios {
  padding: var(--section) 0;
  background: var(--surface);
}

.planes {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

@media (min-width: 860px) {
  .planes {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}

.plan h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.plan-linea {
  margin: 0 0 24px;
  color: var(--graphite);
}

.plan-sello {
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--ink);
  font: 600 0.78rem var(--data);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.precio {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 28px;
}

.precio-cifra {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.precio-antes {
  flex-basis: 100%;
  font: 600 1.15rem var(--data);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.precio-iva {
  font-size: 0.95rem;
  color: var(--graphite);
}

.plan-incluye {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.plan-incluye li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
}

.plan-incluye li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  color: var(--navy);
}

.plan .boton {
  margin-top: auto;
  align-self: flex-start;
}

.plan--destacado {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.plan--destacado .plan-linea,
.plan--destacado .precio-iva {
  color: rgba(255, 255, 255, 0.82);
}

.plan--destacado .precio-antes {
  color: rgba(255, 255, 255, 0.78);
}

.plan--destacado .plan-incluye li {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.plan--destacado .plan-incluye li::before {
  color: var(--pale);
}

.nota {
  margin: 24px 0 0;
  color: var(--graphite);
  font-size: 0.95rem;
}

/* Questions */

.preguntas {
  padding: var(--section) 0;
  background: var(--paper);
}

.preguntas-rejilla {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .preguntas-rejilla {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 80px;
  }
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--graphite);
}

/* Close */

.cierre {
  padding: var(--section) 0;
  background: var(--sky);
  color: var(--paper);
}

.cierre-rejilla {
  display: grid;
  gap: 28px;
  align-items: end;
}

.cierre h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.cierre p {
  margin: 0 0 24px;
  color: var(--sky-text);
  font-size: 1.125rem;
}

@media (min-width: 960px) {
  .cierre-rejilla {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }
}

/* Privacy page */

.documento {
  max-width: 792px;
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.documento h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.documento .fecha {
  margin: 0 0 34px;
  color: var(--graphite);
  font-size: 0.95rem;
}

.documento h2 {
  margin: 36px 0 10px;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.35;
}

.documento p {
  margin: 0 0 14px;
}

.documento ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.documento li {
  margin-bottom: 6px;
}

.documento .tabla {
  margin: 0 0 16px;
  overflow-x: auto;
}

.documento table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.documento th,
.documento td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.documento th {
  background: var(--surface);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
