/* Lista de espera · Manual de marca Hi Bob v1.0 (2026):
   azul noche #0B1F33 (texto, seriedad), crema #F7F3E9 (mantel/fondo),
   naranja #F7931E (acento; texto solo sobre azul, nunca naranja sobre crema).
   Montserrat: títulos Light 300, etiquetas SemiBold mayúsculas +30%, texto Regular. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/montserrat-latin.woff2') format('woff2');
}
.waitlist-page {
  color-scheme: light;
  --noche: #0B1F33; --naranja: #F7931E; --crema: #F7F3E9;
  --noche-70: rgb(11 31 51 / 70%); --linea: rgb(11 31 51 / 18%); --error: #a3321f;
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  /* Degradado crema del manual (Versiones de color · Gradiantes): centro claro, orillas beige. */
  background-color: var(--crema);
  background-image: radial-gradient(ellipse 85% 75% at 50% 40%, #FFFDF9 0%, var(--crema) 40%, #DCCFB9 100%);
  background-attachment: fixed;
  color: var(--noche);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400; -webkit-font-smoothing: antialiased;
}
.waitlist-page * { box-sizing: border-box; }
.waitlist-page :focus-visible { outline: 2px solid var(--noche); outline-offset: 3px; }
.waitlist-header { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 0; }
.waitlist-header img { display: block; height: 37px; width: auto; }
.waitlist-shell { flex: 1; width: min(460px, calc(100% - 32px)); margin: 0 auto; padding: clamp(40px, 9vh, 88px) 0 48px; }
.intro { text-align: center; }
.bell { display: block; margin: 0 auto 22px; color: var(--noche); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 16px; }
.waitlist-shell h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1.12; font-weight: 300; letter-spacing: -0.01em; margin: 0 0 16px; }
.waitlist-shell h1 strong { font-weight: 600; }
/* Raya naranja corta bajo cada título (idea tomada de la versión editorial). */
.waitlist-shell h1::after { content: ""; display: block; width: 44px; height: 3px; background: var(--naranja); margin: 20px auto 0; }
.waitlist-shell h1:focus { outline: none; }
.lead { color: var(--noche-70); font-size: 16px; line-height: 1.6; margin: 0 0 32px; text-wrap: balance; }
/* Más aire entre la explicación y el formulario. */
#paso-datos .lead { margin-bottom: 56px; }
.lead strong { color: var(--noche); font-weight: 600; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.field input, .phone-input { font: inherit; font-size: 17px; color: var(--noche); background: #fff; border: 1.5px solid var(--linea); border-radius: 12px; }
.field input { padding: 15px 16px; width: 100%; }
.field input::placeholder { color: rgb(11 31 51 / 40%); }
.field input:focus, .phone-input:focus-within { border-color: var(--noche); outline: none; box-shadow: 0 0 0 3px rgb(247 147 30 / 35%); }
.phone-input { display: flex; overflow: hidden; }
.phone-input select { font: inherit; font-size: 16px; color: var(--noche); border: 0; border-right: 1.5px solid var(--linea); background: var(--crema); padding: 0 10px 0 14px; }
.phone-input input { border: 0; border-radius: 0; min-width: 0; box-shadow: none !important; }
.phone-input select:focus { outline: none; }
/* Botón de acción: naranja con texto azul noche (como "Escríbele a Bob" en el manual). */
.cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 17px 24px; margin-top: 8px; background: var(--naranja); color: var(--noche); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.cta:hover { background: #ffa236; }
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: 0.6; cursor: progress; }
.disclaimer { color: var(--noche-70); font-size: 13px; line-height: 1.55; margin: 18px 0 0; }
.disclaimer a, .waitlist-footer a, .text-link { color: var(--noche); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-error { color: var(--error); font-size: 14px; font-weight: 500; line-height: 1.4; margin: -6px 0 14px; }
/* La mascota va sobre crema: su campana es crema y se funde con el fondo. */
.done { text-align: center; }
.done img { display: block; margin: 0 auto 28px; width: 200px; height: auto; }
.done .lead { margin-bottom: 24px; }
.text-link { font-size: 15px; }
.waitlist-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 24px 16px 32px; font-size: 13px; color: var(--noche-70); }
[hidden] { display: none !important; }
/* El logo del pie solo aparece en celular (ahí reemplaza al de arriba). */
.footer-logo { display: none; }
/* En el primer paso el aviso ya está bajo el botón: no se repite en el pie. */
.waitlist-page:has(#paso-datos:not([hidden])) .waitlist-footer > a[href="/privacy"],
.waitlist-page:has(#paso-datos:not([hidden])) .waitlist-footer > span[aria-hidden] { display: none; }
/* Celular: todo un poco más chico. Los campos se quedan en 16px para que iOS
   no haga zoom al tocarlos. */
@media (max-width: 480px) {
  .waitlist-header { display: none; }
  .waitlist-footer { flex-direction: column; align-items: center; }
  .waitlist-footer > span[aria-hidden] { display: none; }
  .footer-logo { display: block; margin: 0 auto 6px; text-decoration: none !important; }
  .footer-logo img { display: block; height: 22px; width: auto; margin: 0 auto; }
  /* El contenido va centrado en lo alto de la pantalla. */
  .waitlist-shell { display: flex; flex-direction: column; justify-content: center; width: calc(100% - 48px); padding: 16px 0; }
  .bell { width: 64px; height: 53px; margin-bottom: 14px; }
  .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .waitlist-shell h1 { font-size: 40px; line-height: 1.08; margin-bottom: 16px; }
  .lead { font-size: 16px; line-height: 1.55; margin-bottom: 40px; }
  /* Primer paso: campana, frase y título juntos; una línea corta antes del formulario. */
  #paso-datos h1 { margin-bottom: 18px; }
  .waitlist-shell h1::after { margin-top: 18px; }
  #paso-datos .lead { font-size: 15px; margin-bottom: 52px; }
  /* Formulario compacto; la letra de los campos sigue en 16px (iOS). */
  .field { gap: 4px; margin-bottom: 10px; }
  .label { font-size: 9px; }
  .field input, .phone-input { font-size: 16px; border-radius: 9px; }
  .field input { padding: 8px 12px; }
  .phone-input select { font-size: 13px; padding: 0 6px 0 10px; }
  .cta { padding: 10px 16px; font-size: 14px; margin-top: 4px; }
  .disclaimer { font-size: 10px; margin-top: 10px; text-align: center; }
  .done img { width: 120px; margin-bottom: 16px; }
  .text-link { font-size: 13px; }
  .waitlist-footer { font-size: 10px; gap: 6px; padding: 10px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }

/* Panel del operador (holabob.app/operator/waitlist), con los colores de Hi Bob del centro de atención
   (inbox.css: azul noche #0B1F33, crema, naranja #F7931E). */
.waitlist-admin { padding-bottom: 48px; }
.waitlist-admin h2 { margin: 0 0 16px; font-size: 16px; font-weight: 650; }
.wl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.wl-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.01em; }
.wl-head p { margin: 0; color: var(--muted); }
.wl-csv { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.wl-csv:hover { filter: brightness(1.08); }
.wl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.wl-stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wl-stat span { font-size: 13px; color: var(--muted); }
.wl-stat strong { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wl-stat small { font-size: 12px; color: var(--muted); }
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; margin-bottom: 12px; }
.waitlist-admin .wl-card { margin: 0; padding: 20px; border-radius: 14px; }
.wl-share, .wl-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wl-source { display: flex; flex-direction: column; line-height: 1.25; }
.wl-source small { font-size: 11px; color: var(--muted); }
.wl-pct { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
/* Encabezado: hora de la última actualización y botón. */
.wl-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.wl-updated { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wl-refresh { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; min-width: 132px; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #0B1F33; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 0 rgb(11 31 51 / 6%); transition: border-color .15s, background-color .25s, color .25s, box-shadow .2s, transform .18s cubic-bezier(.3,1.6,.5,1); }
.wl-refresh:hover { border-color: #0B1F33; transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgb(11 31 51 / 35%); }
.wl-refresh:active { transform: translateY(1px) scale(.95); box-shadow: 0 0 0 rgb(11 31 51 / 0%); transition-duration: .06s; }
.wl-refresh-icon { position: relative; display: grid; width: 16px; height: 16px; }
.wl-refresh-icon svg { grid-area: 1 / 1; }
/* Ola naranja que sale desde donde se dio clic. */
.wl-refresh::after { content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgb(247 147 30 / 35%); transform: scale(0); opacity: 0; }
.wl-refresh.is-pressed::after { animation: wl-ripple .6s ease-out; }
@keyframes wl-ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(24); opacity: 0; } }
/* Girando mientras busca; un giro con rebote al terminar. */
.wl-spin { transition: opacity .15s, transform .2s; }
.wl-refresh.is-loading .wl-spin { animation: wl-spin .7s cubic-bezier(.5,.1,.5,.9) infinite; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-check { opacity: 0; transform: scale(.4); transition: opacity .15s, transform .35s cubic-bezier(.3,1.8,.5,1); }
.wl-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* Listo: fondo azul noche, palomita que se dibuja y el texto dice qué pasó. */
.wl-refresh.is-done { background: #0B1F33; border-color: #0B1F33; color: #fff; animation: wl-pop .45s cubic-bezier(.3,1.8,.5,1); }
.wl-refresh.is-done.has-news { background: #F7931E; border-color: #F7931E; color: #0B1F33; }
.wl-refresh.is-done .wl-spin { opacity: 0; transform: rotate(180deg) scale(.4); }
.wl-refresh.is-done .wl-check { opacity: 1; transform: scale(1); }
.wl-refresh.is-done .wl-check path { transition: stroke-dashoffset .35s .08s ease-out; stroke-dashoffset: 0; }
@keyframes wl-pop { 0% { transform: scale(.94); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
/* Números que cambian: suben contando. */
.wl-stat strong.is-bumped { animation: wl-bump .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes wl-bump { 50% { transform: scale(1.12); } }
.wl-stat strong { display: inline-block; transform-origin: left center; }

/* De dónde llegan: anillo y leyenda. */
.wl-donut-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 24px; }
.wl-donut { width: 200px; height: auto; display: block; transform: rotate(0deg); }
.wl-slice { fill: none; stroke-width: 6; animation: wl-draw .9s cubic-bezier(.2,.7,.2,1) both; }
.wl-slice:nth-of-type(3) { animation-delay: .08s; } .wl-slice:nth-of-type(4) { animation-delay: .16s; } .wl-slice:nth-of-type(n+5) { animation-delay: .24s; }
@keyframes wl-draw { from { stroke-dasharray: 0 100; } }
.wl-donut-total { font-size: 9px; font-weight: 700; fill: #0B1F33; text-anchor: middle; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wl-donut-label { font-size: 3.2px; fill: #5C6B7A; text-anchor: middle; }
.wl-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #F1EBDD; }
.wl-legend li:last-child { border-bottom: 0; }
.wl-legend i { width: 12px; height: 12px; border-radius: 4px; }
.wl-c0 { background: #F7931E; } .wl-c1 { background: #0B1F33; } .wl-c2 { background: #5E7C99; } .wl-c3 { background: #F4C27F; } .wl-c4 { background: #A9B6C3; } .wl-c5 { background: #B8650F; }
.wl-legend strong { font-variant-numeric: tabular-nums; }

/* Países: columnas con eje y líneas guía, el primero en naranja. */
.wl-countries-card { margin-bottom: 12px !important; }
.wl-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; height: 260px; padding: 8px 0 0; }
.wl-axis { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 34px); font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.wl-axis span { line-height: 0; }
.wl-plot { position: relative; }
.wl-gridlines { position: absolute; inset: 0 0 34px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.wl-gridlines i { display: block; border-top: 1px dashed #E6DDCB; }
.wl-gridlines i:last-child { border-top: 1.5px solid #CFC3AC; }
.wl-cols { position: absolute; inset: 0 0 34px; list-style: none; margin: 0; padding: 0 8px; display: flex; justify-content: space-around; gap: 8px; }
.wl-cols li { position: relative; flex: 0 1 72px; min-width: 0; }
.wl-col { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); border-radius: 8px 8px 2px 2px; background: #0B1F33; transition: height .7s cubic-bezier(.2,.7,.2,1); }
.wl-col b { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); font-size: 13px; font-weight: 700; color: #0B1F33; font-variant-numeric: tabular-nums; }
.wl-col--top { background: #F7931E; }
.wl-cols em { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12.5px; font-weight: 600; color: #0B1F33; white-space: nowrap; }
.wl-chart--tilt .wl-cols em { top: calc(100% + 6px); transform: translateX(-100%) rotate(-35deg); transform-origin: 100% 0; }
.wl-chart--tilt { height: 300px; }
.wl-chart--tilt .wl-axis { height: calc(100% - 70px); }
.wl-chart--tilt .wl-gridlines, .wl-chart--tilt .wl-cols { bottom: 70px; }

@media (max-width: 700px) {
  .wl-chart--several { height: 300px; }
  .wl-chart--several .wl-cols em, .wl-chart--tilt .wl-cols em { top: calc(100% + 6px); font-size: 11.5px; transform: translateX(-100%) rotate(-55deg); transform-origin: 100% 0; }
  .wl-chart--tilt { height: 320px; }
  .wl-chart--tilt .wl-axis, .wl-chart--several .wl-axis { height: calc(100% - 90px); }
  .wl-chart--tilt .wl-gridlines, .wl-chart--tilt .wl-cols, .wl-chart--several .wl-gridlines, .wl-chart--several .wl-cols { bottom: 90px; }
}
/* Registro recién llegado. */
.waitlist-table tr.is-new td { animation: wl-new 2.4s ease-out; }
@keyframes wl-new { from { background: #FCE7CC; } }
@media (prefers-reduced-motion: reduce) { .wl-slice, .waitlist-table tr.is-new td { animation: none; } .wl-col { transition: none; } .wl-refresh.is-loading .wl-spin, .wl-refresh.is-done, .wl-refresh.is-pressed::after, .wl-stat strong.is-bumped { animation: none; } .wl-refresh, .wl-refresh:active, .wl-refresh:hover { transform: none; } }
.wl-share li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FCFAF5; }
.wl-share li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; }
.wl-share code { font-size: 12.5px; color: #0B1F33; overflow-wrap: anywhere; }
.wl-copy { flex: none; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--accent); font-weight: 600; font-size: 13px; }
.wl-copy:hover { border-color: var(--accent); }
.wl-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.wl-list h2 span { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #F3EDE0; font-size: 12px; color: var(--muted); }
.waitlist-table { overflow-x: auto; margin: 0 -20px -20px; }
.waitlist-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.waitlist-table th { position: sticky; top: 0; padding: 10px 20px; background: #FBF8F1; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.waitlist-table td { padding: 12px 20px; border-bottom: 1px solid #F1EBDD; white-space: nowrap; }
.waitlist-table tbody tr:hover { background: #FCFAF5; }
.waitlist-table tbody tr:last-child td { border-bottom: 0; }
.wl-name { font-weight: 600; }
.wl-phone { color: #0B1F33; text-decoration: none; font-variant-numeric: tabular-nums; }
.wl-phone:hover { color: var(--accent); text-decoration: underline; }
.wl-chip { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #FCE7CC; color: #0B1F33; font-size: 12px; font-weight: 600; }
.waitlist-admin h3 { margin: 20px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wl-country { font-size: 13px; }
.wl-date { color: var(--muted); font-size: 13px; }
.wl-empty { padding: 20px; color: var(--muted); text-align: center; white-space: normal !important; list-style: none; }
@media (max-width: 760px) {
  .wl-stats { grid-template-columns: 1fr 1fr; }
  .wl-stats .wl-stat:first-child { grid-column: 1 / -1; }
  .wl-grid { grid-template-columns: 1fr; }
  .wl-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .wl-donut { width: 180px; }
  .wl-legend { width: 100%; }
  .wl-actions { width: 100%; }
  .wl-updated { flex-basis: 100%; }
  .wl-chart { height: 220px; }
}

/* Campo trampa para bots: invisible para personas y lectores de pantalla. */
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* «¿No es tu número?» en la pantalla de listo: como no verificamos, se puede corregir ahí. */
.done .lead { margin-bottom: 12px; }
.fix-number { color: var(--noche-70); font-size: 14px; margin: 0 0 28px; }
.fix-number .text-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; }
@media (max-width: 480px) { .fix-number { font-size: 13px; margin-bottom: 20px; } }
