/* Kiwi Licita · página de venta («/» sin sesión).
   Hoja aparte de app.css para que la página pública pese poco (sin JS).
   Misma familia que la app (Public Sans autohospedada) y la marca de Kiwi
   Dinámico: teal para toda acción, lima SOLO como acento (la píldora de
   posibilidad y el subrayado de marca; nunca como texto sobre blanco: no da
   contraste) y el gris del logo para el texto secundario.
   Móvil primero: las reglas base son para el celular y los @media suben. */

@font-face {
  font-family: 'Public Sans';
  src: url('/estatico/public-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #212a2b;
  --gris: #4c4c4c;
  --teal: #00796b;
  --teal-osc: #004d40;
  --teal-suave: #e0efec;
  --lima: #d8db39;
  --lima-suave: #f4f5d6;
  --papel: #ffffff;
  --fondo: #f4f6f3;
  --regla: #d9dfd9;
  --peligro: #b42318;
  --foco: #1d4ed8;
  --ancho: 1180px;
  --gutter: 16px;
  --sec: 72px;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgb(0 121 107 / 15%);
}

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

html {
  /* Sin scroll suave: el salto a un ancla y el foco por teclado llegan al
     instante (con smooth, el foco quedaba un momento fuera de la vista). */
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--tinta);
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--teal-osc);
  text-decoration-thickness: 2px;
}

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

.saltar {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--tinta);
  color: #fff;
  border-radius: 6px;
}

.saltar:focus {
  top: 8px;
  color: #fff;
}

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

/* --- Botones ---------------------------------------------------------------- */

.v-btn,
.v-btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  touch-action: manipulation;
}

.v-btn {
  background: var(--teal);
  color: #fff;
  border: 0;
  box-shadow: 0 1px 0 rgb(0 77 64 / 40%);
}

.v-btn:hover {
  background: var(--teal-osc);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.v-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.v-btn-sec {
  background: transparent;
  color: var(--tinta);
  border: 1px solid #9aa59f;
}

.v-btn-sec:hover {
  border-color: var(--tinta);
  color: var(--tinta);
  text-decoration: none;
  background: rgb(33 42 43 / 4%);
}

.v-btn-chico {
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.v-btn-grande {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1.0625rem;
}

/* --- Barra --------------------------------------------------------------- */

.v-barra {
  background: var(--papel);
  border-bottom: 1px solid var(--regla);
}

.v-barra-in {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.v-marca {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--tinta);
  text-decoration: none;
  flex: none;
}

.v-marca img {
  width: 84px;
  height: auto;
}

.v-marca-producto {
  padding-left: 10px;
  border-left: 1px solid var(--regla);
  font-weight: 700;
  font-size: 1rem;
}

.v-nav {
  display: none;
}

.v-barra-acciones {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v-entrar {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--tinta);
  font-weight: 600;
  text-decoration: none;
}

.v-entrar:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* --- Hero ------------------------------------------------------------------ */

.v-hero {
  background: var(--papel);
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--regla);
}

.v-hero-in {
  display: grid;
  gap: 40px;
}

.v-hero h1 {
  font-size: clamp(2.125rem, 1.35rem + 3.6vw, 3.75rem);
  font-weight: 760;
  letter-spacing: -0.028em;
  line-height: 1.04;
  max-width: 14ch;
}

.v-hero-bajada {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--gris);
  max-width: 34em;
}

.v-hero-acciones {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.v-hero-dato {
  margin-top: 20px;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
  max-width: 32em;
}

.v-sello {
  display: table;
  margin: 0 0 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lima-suave);
  box-shadow: inset 0 0 0 1px #c9cc2f;
  color: var(--tinta);
  font-weight: 650;
}

/* Captura del correo dentro de una «bandeja»: así se lee como lo que es, un
   correo que llega cada mañana, y no como una captura suelta. */
.v-hero-correo {
  position: relative;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--regla);
  border-radius: 12px;
  background: var(--papel);
  box-shadow:
    0 1px 2px rgb(33 42 43 / 6%),
    0 18px 40px -18px rgb(0 77 64 / 28%);
  overflow: hidden;
  animation: v-entra 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.v-buzon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 10px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--fondo);
  border-bottom: 1px solid var(--regla);
  font-size: 0.875rem;
}

.v-buzon-de {
  font-weight: 700;
}

.v-buzon-asunto {
  min-width: 0;
  color: var(--gris);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-buzon-hora {
  color: var(--gris);
  font-variant-numeric: tabular-nums;
}

.v-hero-correo img {
  width: 100%;
  /* Se ve la cabecera y el primer concurso; el resto del correo se corta. */
  max-height: 500px;
  object-fit: cover;
  object-position: top;
}

.v-ejemplo {
  padding: 8px 16px 10px;
  border-top: 1px solid var(--regla);
  background: var(--fondo);
  color: var(--gris);
  font-size: 0.8125rem;
}

@keyframes v-entra {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Secciones ------------------------------------------------------------- */

.v-seccion {
  padding: var(--sec) 0;
}

.v-seccion-blanca {
  background: var(--papel);
  border-top: 1px solid var(--regla);
  border-bottom: 1px solid var(--regla);
}

.v-seccion h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem);
  font-weight: 730;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.v-intro {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--gris);
  max-width: 36em;
}

.v-angosto {
  max-width: 820px;
}

/* Pasos: es una secuencia de verdad, así que van numerados. */
.v-pasos {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 28px;
  counter-reset: paso;
}

.v-pasos li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  row-gap: 6px;
}

.v-pasos li::before {
  content: counter(paso);
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lima);
  color: var(--tinta);
  font-weight: 760;
  font-size: 1.125rem;
  display: grid;
  place-items: center;
}

.v-pasos h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  align-self: center;
}

.v-pasos p {
  color: var(--gris);
  max-width: 30em;
}

.v-dos {
  display: grid;
  gap: 40px;
}

.v-dos-texto > p + p {
  margin-top: 14px;
}

.v-dos-texto > p:not(.v-intro) {
  color: var(--gris);
  max-width: 34em;
}

/* La cifra del producto como tipografía: es lo que distingue a Kiwi Licita
   (el porcentaje nunca va sin su base). */
.v-cita {
  margin: 32px 0 28px;
  padding: 0;
}

.v-cita p {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.375rem);
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -0.018em;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
  max-width: 18em;
}

.v-pildora {
  display: inline-block;
  padding: 0.04em 0.38em;
  margin-right: 0.12em;
  border-radius: 999px;
  background: var(--lima);
  font-weight: 780;
  white-space: nowrap;
}

.v-ficha {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  border: 1px solid var(--regla);
  border-radius: 22px;
  overflow: hidden;
  background: var(--fondo);
  box-shadow: 0 18px 40px -20px rgb(0 77 64 / 30%);
}

.v-ficha img {
  width: 100%;
}

.v-funciones {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--regla);
}

.v-funciones li {
  padding: 20px 0;
  border-bottom: 1px solid var(--regla);
}

.v-funciones h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.v-funciones p {
  margin-top: 6px;
  color: var(--gris);
  max-width: 32em;
}

/* --- Preguntas ------------------------------------------------------------- */

.v-faq {
  margin-top: 32px;
  border-top: 1px solid var(--regla);
}

.v-faq details {
  border-bottom: 1px solid var(--regla);
}

.v-faq summary {
  position: relative;
  min-height: 56px;
  padding: 16px 40px 16px 0;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

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

.v-faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.v-faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 28px;
}

.v-faq summary:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
}

.v-faq summary:hover {
  color: var(--teal);
}

.v-faq details p {
  padding: 0 0 20px;
  color: var(--gris);
  max-width: 40em;
}

/* --- Formulario ------------------------------------------------------------ */

.v-form {
  background: var(--papel);
  border: 1px solid var(--regla);
  border-radius: 14px;
  padding: 24px 18px;
  display: grid;
  gap: 18px;
}

.v-solo .v-form {
  margin-top: 28px;
}

.v-form-filas {
  display: grid;
  gap: 18px;
}

.v-campo {
  display: grid;
  gap: 6px;
}

.v-campo label {
  font-weight: 650;
}

.v-ayuda {
  font-size: 0.9375rem;
  color: var(--gris);
}

.v-campo input,
.v-campo select,
.v-campo textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8f9a94;
  border-radius: 8px;
  background: #fff;
  color: var(--tinta);
  /* 16px: en iPhone un campo más chico hace zoom al enfocarlo. */
  font: inherit;
  font-size: 1rem;
}

.v-campo textarea {
  resize: vertical;
  min-height: 96px;
}

.v-campo input:focus-visible,
.v-campo select:focus-visible,
.v-campo textarea:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 1px;
  border-color: var(--foco);
}

.v-campo-error input,
.v-campo-error select,
.v-campo-error textarea {
  border-color: var(--peligro);
  border-width: 2px;
}

.v-error {
  color: var(--peligro);
  font-weight: 600;
  font-size: 0.9375rem;
}

.v-aviso {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdecea;
  color: #7a1a12;
  font-weight: 600;
}

/* Campo trampa para bots: fuera de la pantalla, no `display:none` (algunos
   bots se saltan lo oculto). */
.v-trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.v-form .v-btn {
  width: 100%;
}

.v-letra-chica {
  font-size: 0.875rem;
  color: var(--gris);
}

/* Nota secundaria de la página de gracias (igual para todos: no revela si
   la empresa ya es cliente). */
.v-nota {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--regla);
  color: var(--gris);
  max-width: 34em;
}

.v-wa {
  margin-top: 24px;
}

.v-despues {
  margin-top: 28px;
  padding-left: 1.25em;
  display: grid;
  gap: 10px;
  color: var(--gris);
  max-width: 30em;
}

.v-despues li::marker {
  color: var(--teal);
  font-weight: 700;
}

.v-solo {
  min-height: 60vh;
}

.v-solo h1 {
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

/* --- Pie ------------------------------------------------------------------- */

.v-pie {
  background: var(--papel);
  border-top: 1px solid var(--regla);
  padding: 40px 0 48px;
  font-size: 0.9375rem;
  color: var(--gris);
}

.v-pie-in {
  display: grid;
  gap: 24px;
}

.v-pie img {
  width: 96px;
  margin-bottom: 14px;
}

.v-pie p + p {
  margin-top: 6px;
}

.v-pie-enlaces {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.v-pie-enlaces a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tinta);
}

/* Celulares angostos (320-379 px): fuera lo accesorio para que la barra y
   la bandeja no se desborden. */
@media (max-width: 479px) {
  .v-marca-producto,
  .v-buzon-hora {
    display: none;
  }
}

/* --- Tablet y escritorio ------------------------------------------------------ */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
    --sec: 96px;
  }

  .v-hero-acciones {
    display: flex;
    flex-wrap: wrap;
  }

  .v-barra-in {
    gap: 12px;
  }

  .v-btn-chico {
    padding: 0 16px;
  }

  .v-marca img {
    width: 115px;
  }

  .v-form {
    padding: 32px 28px;
  }

  .v-form-filas {
    grid-template-columns: 1fr 1fr;
  }

  .v-funciones {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }

  .v-pasos {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .v-pasos li {
    grid-template-columns: 1fr;
  }

  .v-pasos li::before {
    grid-row: auto;
    margin-bottom: 10px;
  }

  .v-pasos h3 {
    align-self: start;
  }

  .v-pie-in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 960px) {
  :root {
    --sec: 120px;
  }

  .v-nav {
    display: flex;
    gap: 4px;
    margin-left: 28px;
  }

  .v-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--gris);
    font-weight: 550;
    text-decoration: none;
    border-radius: 6px;
  }

  .v-nav a:hover {
    color: var(--tinta);
    background: var(--fondo);
  }

  .v-barra-in {
    min-height: 72px;
  }

  .v-hero {
    padding: 72px 0 96px;
  }

  .v-hero-in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }

  .v-hero-correo {
    justify-self: end;
  }

  .v-hero-correo img {
    max-height: 596px;
  }

  .v-dos {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }

  .v-dos-form {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .v-funciones {
    grid-template-columns: repeat(3, 1fr);
  }

  .v-ficha {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
