/* ==========================================================================
   Centralito — landing

   Viste como el panel: los mismos colores, las mismas tarjetas, los mismos
   botones y hasta los mismos bocadillos de la pantalla de conversaciones.
   Quien pasa de aquí al panel no nota el cambio de ropa. Sin framework y
   sin nada externo: ni una petición fuera del propio dominio.
   ========================================================================== */

/* Las mismas letras que el panel, servidas desde aquí: ninguna petición fuera
   del propio dominio. */
@font-face {
  font-family: 'Fredoka';
  src: url('fuentes/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fuentes/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* Los mismos nombres y valores que frontend/src/styles.scss. Si la marca
     cambia allí, aquí se cambia este bloque y nada más. */
  --brand-900: #6b2a08;
  --brand-800: #a8430f;
  --brand-700: #f2661a;
  --brand-600: #ff7a2f;
  --brand-500: #ff9a5c;
  --brand-100: #ffe4cf;
  --brand-50: #fff1e5;
  --on-brand: #2a1d15;

  --ink-900: #2a1d15;
  --ink-700: #4e3d31;
  --ink-500: #7a6455;
  --ink-400: #9a8576;
  --ink-300: #d9cbbe;
  --ink-200: #ede3d8;
  --ink-100: #f7efe6;
  --ink-50: #fcf8f3;
  --white: #fffcf8;

  --ok-600: #0b7a66;
  --ok-100: #ddf4ef;
  --warn-600: #8a5a00;
  --warn-100: #fff1c7;
  --danger-600: #d70015;
  --danger-100: #ffebed;
  --info-600: #0071a4;
  --info-100: #e2f3fa;

  --bg: #fff3e6;
  --fill: rgba(122, 100, 85, 0.1);
  --fill-strong: rgba(122, 100, 85, 0.18);
  --separator: rgba(42, 29, 21, 0.08);
  --link: #a8430f;
  --ring: 0 0 0 4px rgba(255, 122, 47, 0.28);
  --blur: saturate(180%) blur(20px);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(42, 29, 21, 0.05), 0 0 0 1px rgba(42, 29, 21, 0.03);
  --shadow: 0 4px 16px rgba(42, 29, 21, 0.07);

  --font: 'Nunito', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Fredoka', var(--font);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Tipografía ---------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h2 { font-size: 1.65rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(255, 122, 47, 0.25); }

.subtitle { color: var(--ink-500); font-size: 1.05rem; max-width: 40rem; }
.note { font-size: 0.85rem; color: var(--ink-500); line-height: 1.55; max-width: 38rem; }

/* --- Retícula ------------------------------------------------------------ */

.page { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 5rem; }

.page-head { margin: 0 0 1.75rem; }
.page-head .subtitle { margin: 0.5rem 0 0; }

section.block { padding: 3.5rem 0 0; }

.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --- Cabecera ------------------------------------------------------------ */

/* Como la barra del panel: translúcida y fija, el contenido pasa por debajo
   difuminado al bajar. */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 243, 230, 0.82);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--separator);
}

header.top .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-900);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }

/* Centralito, como en el menú del panel. */
.brand .logo { width: 34px; height: 34px; flex-shrink: 0; }
.brand .logo svg { display: block; width: 100%; height: 100%; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand br { display: none; }
.brand .name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1; }
.brand .tag { font-size: 0.72rem; line-height: 1.2; color: var(--ink-500); }

header.top nav { display: flex; gap: 0.25rem; }
header.top nav a {
  color: var(--ink-700);
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
}
header.top nav a:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink-900); }

/* --- Portada ------------------------------------------------------------- */

.hero { padding: 4rem 0 0; }
/* El texto a la izquierda y Centralito saludando a la derecha. */
.hero-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; }
.hero .pill {
  display: inline-block; background: var(--white); border-radius: 999px;
  padding: 0.3rem 0.9rem; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); max-width: 16ch; margin-bottom: 1rem; }
.personaje { display: block; width: 100%; max-width: 300px; margin: 0 auto; overflow: visible; }
.personaje .ojos { transform-box: fill-box; transform-origin: center; animation: parpadeo 4.5s infinite; }
.personaje .mano { transform-origin: 111px 50px; animation: saluda 1.8s ease-in-out 3; }
/* Las rayitas solo se ven mientras saluda; con la mano quieta sobran. */
.personaje .rayas { opacity: 0; animation: rayas 1.8s ease-in-out 3; }
@keyframes parpadeo { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes rayas { 0%, 60%, 100% { opacity: 0; } 15%, 45% { opacity: 1; } }
@keyframes saluda {
  0%, 60%, 100% { transform: rotate(0); }
  15% { transform: rotate(16deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .personaje .ojos, .personaje .mano, .personaje .rayas { animation: none; }
}
.hero .subtitle { font-size: 1.15rem; margin-bottom: 1.75rem; }
.hero-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Las cifras, como las tarjetas del resumen del panel. */
.stat { padding: 1.15rem 1.25rem; }
.stat .label { font-size: 0.82rem; color: var(--ink-500); font-weight: 500; margin-bottom: 0.3rem; }
.stat .value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
.stat .value.blue { color: var(--brand-800); }
.stat .foot { font-size: 0.8rem; color: var(--ink-500); margin-top: 0.3rem; }

/* --- Tarjetas, botones, insignias: del panel ------------------------------ */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-head h3 { font-size: 1rem; }
.card-body { padding: 1.25rem; }
.card-body.tight { padding: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 980px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--brand-600); color: var(--on-brand); font-weight: 700; }
.btn-primary:not(:disabled):hover { background: var(--brand-700); }
.btn-secondary { background: var(--fill); color: var(--ink-900); }
.btn-secondary:not(:disabled):hover { background: var(--fill-strong); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-100); color: var(--ok-600); }
.badge-warn { background: var(--warn-100); color: var(--warn-600); }
.badge-info { background: var(--info-100); color: var(--info-600); }
.badge-neutral { background: var(--fill); color: var(--ink-500); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-ok { background: var(--ok-600); }
.dot-warn { background: var(--warn-600); }
.dot-neutral { background: var(--ink-300); }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-info { background: var(--brand-50); color: var(--brand-800); }

/* Control segmentado de iOS, como las pestañas del panel: la opción activa
   es una cápsula blanca dentro de un carril gris. */
.tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  padding: 2px;
  margin-bottom: 1.25rem;
  background: var(--fill);
  border-radius: 9px;
  overflow-x: auto;
}
.tabs button {
  padding: 0.35rem 0.95rem;
  border: none;
  border-radius: 7px;
  background: none;
  font: inherit; font-size: 0.84rem; font-weight: 500;
  color: var(--ink-700); cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.tabs button:hover:not(:disabled) { color: var(--ink-900); }
.tabs button[aria-pressed='true'] {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.04);
}
.tabs button:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Demostración -------------------------------------------------------- */

/* La llamada a la izquierda y la agenda a la derecha, como en el vídeo. */
.demo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Los pasos de la llamada, que se van encendiendo al avanzar. */
.steps-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.25rem 0 0;
}
.stp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-400);
}
.stp .sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-300); }
.stp.on { color: var(--ink-900); }
.stp.on .sdot { background: var(--brand-600); }

/* Barra de la llamada: la cabecera de tarjeta del panel, en mono como el
   registro de una centralita. */
.call-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-500);
}
.call-bar .who {
  width: 26px; height: 26px;
  font-size: 0.66rem;
  background: var(--brand-100);
  color: var(--brand-800);
}
.call-bar .state {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-900);
}
.call[data-state='ringing'] .led { background: var(--warn-600); animation: pulse 1.4s ease-in-out infinite; }
.call[data-state='active'] .led { background: var(--ok-600); animation: pulse 1.4s ease-in-out infinite; }

@keyframes pulse {
  50% { opacity: 0.25; }
}

.call-bar .sep { color: var(--ink-300); }
.call-bar .numbers { display: flex; align-items: center; gap: 0.5rem; }
.call-bar .timer { margin-left: auto; font-variant-numeric: tabular-nums; }

/* El contexto es el argumento del producto, así que se ve en su franja. */
.call-context {
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--separator);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 0.82rem;
}
.call-context b { font-weight: 600; }
.call-context.calidad { background: var(--warn-100); color: var(--warn-600); }

/* La franja de la calidad lleva su interruptor: apagado, la voz llega sin la
   línea de teléfono, y se puede cambiar en mitad de la llamada para comparar. */
.call-context.calidad {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.call-context.calidad.alta { background: var(--ok-100); color: var(--ok-600); }
.calidad-texto { flex: 1; }
.interruptor { position: relative; flex: none; width: 2.1rem; height: 1.25rem; }
.interruptor input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.interruptor span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ink-300);
  pointer-events: none;
  transition: background-color 0.15s;
}
.interruptor span::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.interruptor input:checked + span { background: var(--warn-600); }
.interruptor input:checked + span::after { transform: translateX(0.85rem); }
.interruptor input:focus-visible + span { box-shadow: var(--ring); }

/* La transcripción, igual que en la pantalla de conversaciones del panel:
   Lucía a la izquierda en gris, el llamante a la derecha en naranja. */
.transcript {
  padding: 1.25rem;
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.transcript .placeholder {
  margin: auto;
  text-align: center;
  max-width: 28rem;
  color: var(--ink-500);
}
.transcript .placeholder svg {
  display: block;
  width: 40px; height: 40px;
  margin: 0 auto 0.9rem;
  color: var(--ink-300);
}
.transcript .placeholder .setup {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 0.4rem;
}
.transcript .placeholder .go { font-size: 0.88rem; margin: 0; }

.turn { display: flex; gap: 0.7rem; max-width: 82%; animation: rise 0.28s ease-out; }
.turn.agent { align-self: flex-start; }
.turn.caller { align-self: flex-end; flex-direction: row-reverse; }

@keyframes rise {
  from { opacity: 0; transform: translateY(5px); }
}

.who {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 650;
}
.turn.agent .who { background: var(--brand-100); color: var(--brand-800); }
.turn.caller .who { background: var(--ink-200); color: var(--ink-700); }
.who svg { width: 16px; height: 16px; }

.bubble-col { min-width: 0; }
.bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.turn.agent .bubble { background: var(--ink-200); border-bottom-left-radius: 6px; }
.turn.caller .bubble { background: var(--brand-600); color: var(--on-brand); border-bottom-right-radius: 6px; }

/* El aviso del traspaso va centrado, como una píldora neutra. */
.turn.system { align-self: center; max-width: 100%; }
.turn.system .bubble {
  background: var(--fill);
  color: var(--ink-500);
  font-size: 0.8rem;
  border-radius: 999px;
}

/* Lo que hace el sistema por dentro: el hilo de tiempo de la traza técnica,
   en pequeño y en mono. */
.action {
  border-left: 3px solid var(--ink-200);
  padding: 0.2rem 0 0.2rem 0.65rem;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-400);
}

.typing { display: inline-flex; gap: 4px; padding: 0.35rem 0.15rem; }
.typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-400);
  animation: blink 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }

@keyframes blink {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

.call-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--separator);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.call-foot .hint { font-size: 0.8rem; color: var(--ink-500); margin-left: auto; }

/* El resultado: una tarjeta del panel con filas de detalle. */
.outcome { margin-top: 1.25rem; animation: rise 0.3s ease-out; }.info-row {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 1.25rem;
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.87rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--ink-500); flex-shrink: 0; }
.info-row .v { text-align: right; overflow-wrap: break-word; }
.info-row .v.strong { font-weight: 600; }
.outcome .note { padding: 0.75rem 1.25rem 1rem; margin: 0; }

/* --- Agenda de la demo --------------------------------------------------- */

.slots { display: flex; flex-direction: column; gap: 0.4rem; }
.slot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.slot.busy { background: var(--ink-100); color: var(--ink-400); }
.slot.free { background: var(--fill); color: var(--ink-900); }
.slot.free .tag { margin-left: auto; font-size: 0.72rem; color: var(--ink-500); }
/* Al consultar huecos, los libres se tiñen de naranja. */
.slot.hot { background: var(--brand-50); color: var(--brand-800); }
.slot.hot .tag { color: var(--brand-800); }
.slot.picked { background: var(--brand-600); color: var(--on-brand); }
.slot.picked .tag { color: var(--on-brand); }

/* La ficha de la reserva, que aparece al confirmar. */
.booking {
  margin-top: 0.6rem;
  background: var(--brand-50);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.83rem;
  animation: rise 0.3s ease-out;
}
.booking .time { font-family: var(--mono); font-weight: 600; color: var(--brand-800); }
.booking .name { font-weight: 600; }
.booking .detail { color: var(--brand-800); font-size: 0.78rem; }

/* La píldora de estado: qué está haciendo el sistema ahora mismo. */
.chip-line { min-height: 1.7rem; margin-top: 0.7rem; }
.chip-line .chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink-500);
  font-size: 0.76rem;
  animation: rise 0.25s ease-out;
}
.chip-line .chip.ok { background: var(--ok-100); color: var(--ok-600); }
.chip-line .chip.warn { background: var(--warn-100); color: var(--warn-600); }
.chip-line .chip.info { background: var(--info-100); color: var(--info-600); }

/* --- Demo en directo ----------------------------------------------------- */

/* La pestaña lleva un punto verde que late: es la única que no es grabada. */
.tabs button.en-directo { display: inline-flex; align-items: center; gap: 0.45rem; }
.punto-vivo {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok-600);
  animation: pulse 1.4s ease-in-out infinite;
}

/* La conversación en directo puede alargarse: se queda en su sitio y baja sola. */
#vivo-transcripcion { max-height: 26rem; overflow-y: auto; }
.transcript .action.suelta { align-self: flex-start; margin: 0 0 0 calc(30px + 0.7rem); }
.turn.system .bubble.error { background: var(--danger-100); color: var(--danger-600); }
.call-bar .timer.acaba { color: var(--warn-600); font-weight: 600; }

/* Los días, como chapas: el elegido en naranja y, si tiene tu cita, un punto. */
.dias {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.dia {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0 0.4rem;
  border: none;
  border-radius: 10px;
  background: var(--fill);
  color: var(--ink-700);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.dia:hover { background: var(--fill-strong); }
.dia .semana { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dia .numero { font-size: 1rem; font-weight: 600; line-height: 1.2; }
.dia[aria-pressed='true'] { background: var(--brand-600); color: var(--on-brand); }
.dia.con-cita::after {
  content: '';
  position: absolute;
  top: 5px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok-600);
}
.dia[aria-pressed='true'].con-cita::after { background: #fff; }

/* Los huecos de media hora, en rejilla: mañana arriba y tarde abajo. */
.tramo + .tramo { margin-top: 0.75rem; }
.tramo .nombre {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-400);
  margin-bottom: 0.35rem;
}
.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.9rem, 1fr));
  gap: 0.3rem;
}
.hueco {
  padding: 0.32rem 0;
  border-radius: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  transition: background-color 0.3s, color 0.3s;
}
/* Libre en blanco, como algo que se puede coger; ocupado, gris y tachado. */
.hueco.libre { background: var(--white); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-200); }
.hueco.ocupado { background: var(--ink-100); color: var(--ink-400); text-decoration: line-through; }
.hueco.pasado { background: transparent; color: var(--ink-300); }
/* Al consultar huecos, los libres de ese día se tiñen de naranja. */
.hueco.resaltado { background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 0 0 1px var(--brand-100); }
.hueco.tuya { background: var(--ok-600); color: #fff; font-weight: 600; }
.hueco.nueva { animation: aparece 0.6s ease-out; }

@keyframes aparece {
  from { transform: scale(0.7); opacity: 0; }
}

.leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0.8rem 0 0.2rem;
  font-size: 0.72rem;
  color: var(--ink-500);
}
.leyenda span { display: inline-flex; align-items: center; gap: 0.35rem; }
.leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.leyenda i.libre { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-300); }
.leyenda i.ocupado { background: var(--ink-200); }
.leyenda i.tuya { background: var(--ok-600); }

/* Al acabar: el formulario para dejar el correo. */
.vivo-fin .card-body p { margin: 0 0 0.9rem; color: var(--ink-700); font-size: 0.93rem; }
.contacto { display: grid; gap: 0.6rem; max-width: 34rem; }
.contacto input,
.contacto textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink-300);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-900);
  resize: vertical;
}
.contacto input:focus,
.contacto textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--ring); }
.contacto .acciones { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.contacto .hint { font-size: 0.82rem; color: var(--ink-500); }
.contacto .note { margin: 0; padding: 0; }
.vivo-fin .gracias { font-weight: 600; color: var(--ok-600); margin: 0; }
.vivo-fin .card-body > .note { padding: 0; margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--ink-500); }

.vivo-legal { margin-top: 1.25rem; }
.vivo-legal p { margin: 0; }
.vivo-legal p + p { margin-top: 0.4rem; font-size: 0.78rem; }

/* El distintivo flotante de reCAPTCHA se oculta: Google lo permite si se
   dice en la página que se usa (ver `vivo-recaptcha` en index.html). */
.grecaptcha-badge { visibility: hidden; }

/* --- Pasos y tarjetas de contenido --------------------------------------- */

.step-card { padding: 1.25rem; }
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--brand-800);
  background: var(--brand-50);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.7rem;
}
.step-card h3 { margin-bottom: 0.4rem; }
.step-card p { margin: 0; color: var(--ink-500); font-size: 0.93rem; }
.step-card code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--ink-100);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.feat { padding: 1.25rem; }
.feat .title { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.4rem; }
.feat .title b { font-weight: 600; font-size: 0.95rem; }
.feat p { margin: 0; color: var(--ink-500); font-size: 0.9rem; }

/* El enrutado por número, en mono dentro de una tarjeta. */
.routing {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 2;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
}
.routing .arrow { color: var(--ink-400); padding: 0 0.5rem; }
.routing .ann { color: var(--ink-400); }
.routing hr { border: none; border-top: 1px dashed var(--ink-300); margin: 0.7rem 0; }

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

footer {
  border-top: 1px solid var(--separator);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: 0.85rem;
  color: var(--ink-500);
}
footer .page { padding-bottom: 0; }
footer p { margin: 0; }
footer p + p { margin-top: 0.35rem; }

/* --- Adaptación a pantallas pequeñas ------------------------------------- */

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page { padding: 0 1rem 3rem; }
  header.top .wrap { padding: 0 1rem; }
  header.top nav a { padding: 0.35rem 0.5rem; font-size: 0.8rem; }
  .brand .tag { display: none; }
  .hero { padding-top: 2.5rem; }
  /* En el móvil, Centralito saluda encima del texto y más pequeño. */
  .hero-top { grid-template-columns: 1fr; gap: 0.5rem; }
  .personaje { max-width: 150px; order: -1; margin: 0; }

  /* La cabecera de la llamada se reordena: arriba el estado y el
     cronómetro, debajo los dos números. */
  .call-bar { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.6rem; }
  .call-bar .timer { grid-column: 2; grid-row: 1; margin-left: 0; }
  .call-bar .numbers { grid-column: 1 / -1; }
  .call-bar .sep { display: none; }

  .turn { max-width: 100%; }
  .info-row { flex-direction: column; gap: 0.1rem; }
  .dias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-row .v { text-align: left; }
}

/* Quien pida menos movimiento, que no lo tenga. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Foco visible y consistente para quien navega con teclado. */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
