/* ============================================================
   sistema.css — Sistema visual de la web pública
   ControlHorario.digital

   Lenguaje editorial: tipografía display muy ancha, microcopy en
   monoespaciada, cuadrícula visible, líneas de 1px, marcas de registro
   y una textura de ruido apenas perceptible.

   La paleta NO se copia de ninguna referencia: sale de la guía de marca
   del propio proyecto (assets/img/Códigos de color y Tipografía.rtf):
     fondo #BCDECD · auxiliar #E3DC6D · tipografía y botones #455A64

   Este fichero sustituye por completo a Tailwind por CDN en la home:
   la sección UTILIDADES reimplementa, de forma estática, exactamente las
   clases que la página usa. Así desaparece una dependencia externa en la
   ruta crítica y con ella su riesgo de cadena de suministro.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Superficies */
  --paper:        #edeee9;   /* crudo cálido: domina las secciones informativas */
  --paper-alt:    #f6f6f3;
  --paper-deep:   #e3e5de;

  /* Tinta */
  --ink:          #101518;   /* titulares */
  --ink-soft:     #455a64;   /* marca: texto de interfaz y botones */
  --ink-muted:    rgb(16 21 24 / 68%);
  --line:         rgb(16 21 24 / 22%);
  --line-strong:  rgb(16 21 24 / 62%);

  /* Marca */
  --mint:         #bcdecd;   /* fondo de marca: sección de respiro */
  --accent:       #e3dc6d;   /* auxiliar de marca: bloque intenso y marcas */
  --action:       #047857;   /* verde de conversión ya existente: no se toca */
  --action-dark:  #036249;
  --focus:        #0e7c86;   /* señal breve de foco, nunca segundo tema */

  /* Tipografía */
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --text-display:  clamp(2.1rem, 5.6vw, 4.3rem);   /* bajado a peticion: el brief pedia mas, pero ocupaba media pantalla */
  --text-section:  clamp(2.1rem, 5.4vw, 4rem);
  --text-lead:     clamp(1.05rem, 1.5vw, 1.3rem);
  --text-body:     clamp(1rem, 1.1vw, 1.0625rem);
  --text-micro:    clamp(0.6875rem, 0.85vw, 0.78rem);

  /* Retícula */
  --max:          1440px;
  --gutter:       clamp(16px, 2.2vw, 32px);

  /* Movimiento */
  --ease:         cubic-bezier(.22, 1, .36, 1);
  --dur:          .55s;

  /* Alias heredados: el marcado antiguo aun usa --ch-brand y --ch-accent en
     estilos en linea. Se mapean a los tokens nuevos para no dejar colores
     sueltos fuera del sistema. */
  --ch-brand:  var(--ink-soft);
  --ch-accent: var(--mint);
  --brand:     var(--ink-soft);
  --accent-legacy: var(--mint);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Textura: un SVG diminuto que se repite. No se regenera por frame ni
   pesa como un bitmap; se apaga en móvil y con contraste alto. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

/* ---------- 3. Tipografía editorial ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: var(--text-display);
  line-height: .92;
  letter-spacing: -.045em;
  padding-top: .06em;   /* deja aire a las tildes de las mayusculas */
  text-transform: uppercase;
  color: var(--ink);
}

.titulo-seccion {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: var(--text-section);
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

/* Microcopy técnico: mayúsculas, monoespaciada, muy pequeño. */
.micro {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Antetítulo con numeración editorial: [01] SECCIÓN */
.antetitulo {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.antetitulo::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.entradilla {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* ---------- 4. Marcas de registro y líneas ---------- */
/* Decorativas: siempre aria-hidden y nunca bajo contenido interactivo. */
.marco { position: relative; }
.marco::before, .marco::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--line-strong);
  pointer-events: none;
}
.marco::before { top: 14px; left: 14px; }
.marco::after  { top: 14px; right: 14px; }

.regla { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Secciones: separadas por una línea real de 1px, no por sombras. */
.seccion {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
  position: relative;
}
.seccion--respiro { background: var(--mint); }
.seccion--intensa { background: var(--accent); }
.seccion--papel   { background: var(--paper-alt); }

/* ---------- 5. Revelados por scroll ---------- */
/* Sin librerías: IntersectionObserver añade .visible. Un solo tipo de
   transición para todo el sitio, para que el movimiento se sienta uno. */
.revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.revelar.visible { opacity: 1; transform: none; }
.revelar:nth-child(2) { transition-delay: .07s; }
.revelar:nth-child(3) { transition-delay: .14s; }
.revelar:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 6. Componentes ---------- */
.btn-brand, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 2px;              /* filo editorial, no cápsulas */
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-brand {
  background: var(--action);
  color: #fff;
  border: 1px solid var(--action);
}
.btn-brand:hover { background: var(--action-dark); border-color: var(--action-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-brand:active, .btn-ghost:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .75rem; }

/* Tarjetas: marco de 1px y esquina viva. Sin sombras blandas. */
.ficha {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.25rem, 2.2vw, 2rem);
}
.ficha--viva { background: transparent; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Cabecera ----------
   Transparente al inicio; al bajar aparece el papel y la linea. La marca es
   tipografica: no depende de ningun fichero de imagen. */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.cabecera.esta-fija {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.cabecera__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3.5rem);
  min-height: 64px;
}

.marca { text-decoration: none; display: block; line-height: 1.05; }
.marca__nombre {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(.95rem, 1.35vw, 1.15rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.marca__punto { color: var(--action); }
.marca__claim { display: block; margin-top: .18rem; }

.nav-escritorio {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.6vw, 1.8rem);
}
.nav-escritorio a {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .18s var(--ease);
}
.nav-escritorio a:hover { color: var(--action); }
/* El CTA no es un enlace de menu mas: conserva sus propios colores. */
.nav-escritorio a.btn-brand { color: #fff; }
.nav-escritorio a.btn-ghost { color: var(--ink); }
.nav-escritorio a.btn-brand:hover { color: #fff; }
.nav-escritorio .nav-active { color: var(--ink); }

/* Cuadrado de acento junto al CTA. */
.cuadro-acento { width: 9px; height: 9px; background: var(--accent); display: inline-block; }

/* ---------- Menú móvil: overlay a pantalla completa ---------- */
.menu-movil { display: none; position: relative; }
.menu-movil__boton {
  list-style: none;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;          /* area tactil, aunque el glifo sea menor */
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.menu-movil__boton::-webkit-details-marker { display: none; }
.menu-movil__glifo {
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--ink), var(--ink)) top/100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom/100% 3px no-repeat;
}
.menu-movil[open] .menu-movil__glifo {
  background: linear-gradient(var(--ink), var(--ink)) center/100% 3px no-repeat;
  transform: rotate(45deg);
}

/* Con el menu abierto, el boton tiene que quedar POR ENCIMA del overlay:
   si no, el propio panel lo tapa y solo se puede cerrar con Escape. */
.menu-movil[open] { position: static; }
.menu-movil[open] > .menu-movil__boton { position: fixed; top: 10px; right: var(--gutter); z-index: 80; }

.menu-movil__overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  padding: 5.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  /* Revelado por bloques, como pide el brief: la mascara descubre el panel
     en franjas en vez de un fundido plano. */
  animation: revelar-bloques .32s steps(6, end) both;
}
@keyframes revelar-bloques {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.menu-movil__overlay nav { display: flex; flex-direction: column; gap: .35rem; }
.menu-movil__overlay nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .18rem;
}
.menu-movil__overlay nav a:hover { color: var(--action); }
.menu-movil__pie { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: 2rem; }

/* Bloquea el scroll del fondo mientras el overlay esta abierto. */
body.menu-abierto { overflow: hidden; }

/* Por debajo de 900px se cambia a movil, como indica el brief. */
@media (max-width: 900px) {
  .nav-escritorio { display: none; }
  .menu-movil { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-movil__overlay { animation: none; }
}

/* Tabla comparativa y bloques técnicos ya existentes */
.cmp-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cmp-table th, .cmp-table td {
  border: 1px solid var(--line);
  padding: .7rem .8rem;
  text-align: left;
  vertical-align: top;
}
.cmp-table th { font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .07em; background: var(--paper-deep); }
.col-us { background: color-mix(in srgb, var(--mint) 45%, transparent); }
.cmp-yes { color: var(--action); font-weight: 700; }
.cmp-no  { color: #b91c1c; }
.cmp-mid { color: var(--ink-soft); }

.hash-box { border: 1px solid var(--line); border-radius: 2px; background: var(--paper-alt); padding: 1rem; }
.hash-grid { display: grid; gap: .5rem; }
.hash-row  { font-family: var(--font-mono); font-size: .72rem; word-break: break-all; }
.hash-good { color: var(--action); }
.hash-bad  { color: #b91c1c; }

.kbd {
  font-family: var(--font-mono);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: .12rem .4rem;
  font-size: .78rem;
  background: var(--paper-alt);
}

.trust-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.trust-chip {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .35rem .6rem;
  color: var(--ink-soft);
}

.use-card { border: 1px solid var(--line); border-radius: 2px; padding: 1.25rem; background: var(--paper-alt); }
.plan-help { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--ink-muted); }
.footer-h  { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; }

/* ============================================================
   UTILIDADES
   Reimplementación estática de las clases que la página ya usaba, para
   poder retirar Tailwind por CDN sin tocar el marcado interior.
   ============================================================ */
.block { display: block; } .inline-block { display: inline-block; }
.flex { display: flex; } .inline-flex { display: inline-flex; }
.grid { display: grid; } .hidden { display: none; }
.flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.relative { position: relative; } .absolute { position: absolute; }
.sticky { position: sticky; } .overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.top-0 { top: 0; } .top-4 { top: 1rem; } .right-4 { right: 1rem; } .z-50 { z-index: 50; }
.w-full { width: 100%; } .w-2 { width: .5rem; } .w-6 { width: 1.5rem; }
.w-8 { width: 2rem; } .w-10 { width: 2.5rem; }
.h-2 { height: .5rem; } .h-6 { height: 1.5rem; } .h-8 { height: 2rem; }
.h-10 { height: 2.5rem; } .h-14 { height: 3.5rem; }
.min-h-12 { min-height: 3rem; } .min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; }
.space-y-1 > * + * { margin-top: .25rem; } .space-y-2 > * + * { margin-top: .5rem; }

.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-12 { margin-bottom: 3rem; } .my-1 { margin-block: .25rem; }
.p-3 { padding: .75rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-2 { padding-inline: .5rem; } .px-3 { padding-inline: .75rem; } .px-4 { padding-inline: 1rem; }
.py-1 { padding-block: .25rem; } .py-3 { padding-block: .75rem; }
.py-10 { padding-block: 2.5rem; } .py-12 { padding-block: 3rem; }
.py-14 { padding-block: 3.5rem; } .py-16 { padding-block: 4rem; } .pt-6 { padding-top: 1.5rem; }

.text-xs { font-size: .75rem; } .text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; } .font-black { font-weight: 900; }
.leading-4 { line-height: 1rem; } .leading-relaxed { line-height: 1.65; }
.tracking-tight { letter-spacing: -.02em; } .tracking-widest { letter-spacing: .12em; }
.text-center { text-align: center; } .not-italic { font-style: normal; }
.underline { text-decoration: underline; } .hover\:underline:hover { text-decoration: underline; }
.decoration-2 { text-decoration-thickness: 2px; }
.decoration-emerald-600 { text-decoration-color: var(--action); }
.select-none { user-select: none; } .opacity-70 { opacity: .7; }

.text-white { color: #fff; }
.text-slate-500 { color: rgb(16 21 24 / 58%); }
.text-slate-600 { color: var(--ink-muted); }
.text-slate-700 { color: rgb(16 21 24 / 78%); }
.text-slate-800 { color: rgb(16 21 24 / 88%); }
.text-slate-900 { color: var(--ink); }
.text-emerald-700, .text-emerald-800 { color: var(--action); }
.text-rose-700, .text-rose-800 { color: #b91c1c; }

.bg-white { background: var(--paper-alt); }
.bg-white\/80 { background: color-mix(in srgb, var(--paper) 88%, transparent); }
.bg-gray-50 { background: var(--paper-deep); }
.bg-emerald-600 { background: var(--action); }
.bg-amber-500 { background: var(--accent); }
.bg-amber-700 { background: #8a7f1f; }
.bg-rose-600 { background: #b91c1c; }
.hover\:bg-emerald-700:hover { background: var(--action-dark); }
.hover\:bg-amber-600:hover { background: #cfc65c; }
.hover\:bg-amber-800:hover { background: #6f661a; }
.hover\:bg-rose-700:hover { background: #991b1b; }
.hover\:bg-gray-100:hover { background: var(--paper-deep); }

.border { border: 1px solid var(--line); }
.border-t { border-top: 1px solid var(--line); }
.border-b { border-bottom: 1px solid var(--line); }
.border-slate-100, .border-slate-200, .border-slate-300 { border-color: var(--line); }
.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl { border-radius: 2px; }
.rounded-full { border-radius: 999px; }
.shadow, .shadow-sm, .shadow-lg { box-shadow: none; }   /* el relieve lo dan las líneas */
.backdrop-blur { backdrop-filter: blur(10px); }
.disabled\:opacity-60:disabled { opacity: .6; }

@media (min-width: 768px) {
  .md\:flex { display: flex; } .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-end { justify-content: flex-end; }
  .md\:col-span-1 { grid-column: span 1; } .md\:col-span-2 { grid-column: span 2; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .md\:text-3xl { font-size: 1.875rem; } .md\:text-5xl { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lg\:sticky { position: sticky; } .lg\:top-6 { top: 1.5rem; }
}

/* Móvil: la textura se retira y la retícula baja a una columna. */
@media (max-width: 640px) {
  body::before { display: none; }
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .marco::before, .marco::after { display: none; }
}

/* Subtítulo del hero: recoge lo que ya no cabe en un titular display. */
.subtitulo-hero {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink-soft);
  max-width: 26ch;
}

/* Menú móvil con <details>: funciona sin JavaScript. */
.menu-movil { position: relative; }
.menu-movil > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  background: var(--paper-alt);
}
.menu-movil > summary::-webkit-details-marker { display: none; }
.menu-movil[open] > summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-movil__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(78vw, 320px);
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.menu-movil__panel a {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.menu-movil__panel a:hover { background: var(--paper-deep); color: var(--ink); }
.menu-movil__cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .75rem; }
.menu-movil__cta a { border-bottom: 0; }

/* El amarillo oscuro heredado quedaba turbio sobre crudo. */
.bg-amber-700 { background: var(--ink-soft); }
.hover\:bg-amber-800:hover { background: #37474f; }

/* Utilidades que solo usaba el blog; con estas se retira tambien alli
   Tailwind por CDN y ya ninguna pagina publica depende de el. */
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.py-2 { padding-block: .5rem; } .py-4 { padding-block: 1rem; }
.mt-10 { margin-top: 2.5rem; }
@media (min-width: 768px) { .md\:text-4xl { font-size: 2.25rem; } }

/* ---------- Kiosko de demostracion ---------- */
.kiosko-demo { padding: clamp(1.25rem, 2vw, 1.75rem); }

.kd-pin {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  padding: .8rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: .5em;
  text-indent: .5em;   /* compensa el tracking para que quede centrado */
}

.kd-teclado {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: 1.25rem;
}
.kd-teclado button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.kd-teclado button:hover  { background: var(--paper-deep); }
.kd-teclado button:active { background: var(--ink); color: var(--paper); }

.kd-eventos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.25rem; }
.kd-ev {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.kd-ev--in    { background: var(--action); }
.kd-ev--pausa { background: var(--accent); color: var(--ink); }
.kd-ev--fin   { background: var(--ink-soft); }
.kd-ev--out   { background: #b91c1c; }
.kd-ev:hover  { filter: brightness(.93); }

.kd-msg { min-height: 3rem; margin-top: 1rem; text-align: center; font-size: .9rem; }
.kd-msg.es-ok    { color: var(--action); }
.kd-msg.es-error { color: #b91c1c; }

@media (max-width: 420px) {
  .kd-eventos { grid-template-columns: repeat(2, 1fr); }
}
