/* Kiosco Vertex: los mismos colores, tipografía y formas de App Vertex (tema v2 «Vertex claro», tablero-vertex\www\css\industry.css),
   en grande para una tableta fija de 10 a 11 pulgadas, en horizontal o vertical. Kleb, 25-oct-2026: «sigue el formato y colores que usamos en la APP Vertex». */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #6b6b6b;
  --text-3: #716a63;
  --border: #eee9e4;
  --hairline: #f5f1ed;
  --track: #f0eded;
  --suave: #f1ece7;
  --accent: #b02020;
  --accent-tint: #fbeaea;
  --accent-hover: #8c1717;
  --ok: #3d7248;
  --ok-tint: #e4f2e7;
  --ok-dot: #3d9a5f;
  --ambar: #7a5a12;
  --ambar-tint: #fdf0d5;
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .05);
  --sh-md: 0 2px 10px rgba(0, 0, 0, .06);
  --sh-lg: 0 2px 12px rgba(0, 0, 0, .07);
  --font: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, textarea { -webkit-user-select: text; user-select: text; font: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: center; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 0; height: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus-visible { outline: none; }   /* el título que recibe el foco al cambiar de pantalla (lectores de pantalla); no es un control */
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

#app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.pantalla { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); padding: clamp(16px, 3vh, 32px) var(--gutter); animation: entra .18s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.desliza { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.desliza > * { flex-shrink: 0; }

/* — encabezado — */
.encab { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.logo { height: clamp(38px, 6vh, 56px); width: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 99px; padding: 8px 16px; box-shadow: var(--sh-lg); font-size: 15px; font-weight: 700; }
.chip .punto { width: 10px; height: 10px; border-radius: 50%; background: var(--ok-dot); flex: none; }
.chip.sin-red { background: var(--ambar-tint); color: var(--ambar); }
.chip.sin-red .punto { background: #c48a12; }
.volver { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--border); font-size: 17px; font-weight: 700; }
.etiqueta { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.etiqueta-ok { color: var(--ok); font-size: 16px; }

/* — inicio — */
.inicio-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 44px); align-items: center; }
.reloj-caja { display: flex; flex-direction: column; gap: 6px; }
.fecha { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; color: var(--text-2); }
.fecha::first-letter { text-transform: uppercase; }
.reloj { font-size: clamp(88px, 13vw, 168px); font-weight: 800; letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.reloj small { font-size: .32em; font-weight: 700; letter-spacing: 0; color: var(--text-3); margin-left: .12em; }
.nota-hora { font-size: 15px; color: var(--text-3); }
.sede-grande { margin-top: 10px; font-size: clamp(18px, 2vw, 24px); font-weight: 800; }
.botones { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 24px); }
.btn-grande {
  display: flex; align-items: center; gap: 22px; width: 100%; min-height: clamp(130px, 22vh, 190px); padding: 0 clamp(22px, 3vw, 40px);
  border-radius: 32px; color: #fff; text-align: left; transition: transform .08s ease;
}
.btn-grande:active { transform: scale(.985); }
.btn-grande svg { width: clamp(48px, 6vw, 72px); height: clamp(48px, 6vw, 72px); flex: none; }
.btn-grande b { display: block; font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; letter-spacing: .01em; line-height: 1.05; }
.btn-grande span span { display: block; font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; opacity: .85; }
.btn-entrada { background: var(--accent); box-shadow: 0 10px 26px rgba(176, 32, 32, .32); }
.btn-entrada:active { background: var(--accent-hover); }
.btn-salida { background: var(--text); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.aviso-corto { margin: 0; max-width: 820px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.btn-texto { min-height: 48px; padding: 0 14px; font-size: 15px; font-weight: 700; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-rh { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--border); font-size: 14px; font-weight: 800; color: var(--text-2); flex: none; }
.btn-rh svg { width: 18px; height: 18px; }

/* — teclado — */
.teclado-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: clamp(18px, 4vw, 56px); align-items: center; }
.paso-caja { display: flex; flex-direction: column; gap: 14px; }
.titulo { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sub { margin: 0; font-size: clamp(17px, 1.8vw, 21px); color: var(--text-2); }
.pasos { display: flex; gap: 8px; }
.pasos i { height: 6px; width: 44px; border-radius: 99px; background: var(--track); }
.pasos i.on { background: var(--accent); }
.pantallita {
  min-height: 96px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 22px;
  background: var(--card); border: 1.5px solid var(--border); border-radius: 24px; box-shadow: var(--sh-md);
  font-size: 52px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.pantallita.vacia { color: var(--text-3); font-size: 22px; font-weight: 700; letter-spacing: 0; }
.pantallita .bolita { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #cfc7bf; }
.pantallita .bolita.on { background: var(--text); border-color: var(--text); }
.msg { margin: 0; padding: 14px 16px; border-radius: 16px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.msg-error { background: var(--accent-tint); color: #8a1a1a; }
.msg-ok { background: var(--ok-tint); color: var(--ok); }
.msg-ambar { background: var(--ambar-tint); color: var(--ambar); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vh, 16px); }
.tecla {
  min-height: clamp(70px, 12vh, 104px); border-radius: 24px; background: var(--card); border: 1.5px solid var(--border); box-shadow: var(--sh-sm);
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.tecla:active { background: var(--suave); }
.tecla svg { width: 34px; height: 34px; }
.tecla-ok { background: var(--accent); border-color: var(--accent); color: #fff; font-size: clamp(19px, 2vw, 23px); font-weight: 800; box-shadow: 0 6px 16px rgba(176, 32, 32, .28); }
.tecla-ok:active { background: var(--accent-hover); }
.tecla-ok[aria-disabled="true"] { opacity: .4; }
.link-chico { align-self: flex-start; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* — resultado — */
.centro { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2vh, 18px); text-align: center; }
.circulo { width: clamp(96px, 15vh, 140px); height: clamp(96px, 15vh, 140px); border-radius: 50%; display: grid; place-items: center; }
.circulo svg { width: 56%; height: 56%; }
.circulo.ok { background: var(--ok-tint); color: var(--ok); }
.circulo.ambar { background: var(--ambar-tint); color: var(--ambar); }
.circulo.error { background: var(--accent-tint); color: var(--accent); }
.nombre { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hora-grande { font-size: clamp(72px, 11vw, 132px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.detalle { margin: 0; max-width: 760px; font-size: clamp(17px, 1.9vw, 22px); color: var(--text-2); line-height: 1.45; }
.detalle b { color: var(--text); }
.cuenta { font-size: 15px; color: var(--text-3); }
.fila-btn { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn { min-height: 64px; padding: 0 30px; border-radius: 99px; font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-rojo { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(176, 32, 32, .28); }
.btn-rojo:active { background: var(--accent-hover); }
.btn-negro { background: var(--text); color: #fff; }
.btn-blanco { background: var(--card); border: 1.5px solid var(--border); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .45; }

/* — tarjetas (olvido, RH, aviso) — */
.tarjeta { background: var(--card); border-radius: 22px; box-shadow: var(--sh-lg); padding: clamp(16px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.tarjeta h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.tarjeta h3 { margin: 6px 0 0; font-size: 17px; font-weight: 800; }
.tarjeta p { margin: 0; }
.columnas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; }
.paso-hora { display: flex; align-items: center; gap: 12px; }
.paso-hora .valor { flex: 1; text-align: center; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; font-variant-numeric: tabular-nums; }
.paso-hora .valor.chico { font-size: clamp(20px, 2.2vw, 26px); }
.paso-btn { width: 72px; height: 64px; border-radius: 20px; background: var(--suave); font-size: 30px; font-weight: 800; flex: none; }
.paso-btn:active { background: #e6ded6; }
.paso-btn[aria-disabled="true"] { opacity: .35; }
.opciones { display: flex; flex-wrap: wrap; gap: 10px; }
.opcion { min-height: 56px; padding: 0 20px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--border); font-size: 17px; font-weight: 700; text-align: left; }
.opcion[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.campo { width: 100%; min-height: 60px; background: #faf7f4; border: 1.5px solid var(--border); border-radius: 16px; padding: 0 18px; font-size: 19px; color: var(--text); outline: none; }
.campo:focus { border-color: var(--accent); }
.dato { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.dato span:first-child { color: var(--text-2); }
.dato b { text-align: right; }
.lista { display: flex; flex-direction: column; gap: 10px; }
.renglon { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: #faf7f4; font-size: 16px; }
.renglon small { display: block; color: var(--text-2); font-size: 14px; }
.tag { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tag-ok { background: var(--ok-tint); color: var(--ok); }
.tag-gris { background: var(--track); color: #4a4a4a; }
.legal h2 { font-size: 26px; }
.legal h3 { font-size: 18px; margin: 16px 0 4px; }
.legal p, .legal li { font-size: 16px; line-height: 1.55; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--accent); font-weight: 700; }
.empresa { padding: 14px 16px; border-radius: 14px; background: #faf7f4; border: 1px solid var(--border); font-size: 15px; color: var(--text-2); display: grid; gap: 2px; }
.empresa b { color: var(--text); }

/* — vertical (tableta en el soporte de pie o de pared, en retrato) — */
@media (orientation: portrait), (max-width: 820px) {
  .inicio-cuerpo, .teclado-cuerpo, .columnas { grid-template-columns: 1fr; align-content: center; }
  .reloj-caja { align-items: center; text-align: center; }
  .teclado-cuerpo { align-content: start; }
  .pie { flex-direction: column; align-items: stretch; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .btn-grande { min-height: 100px; }
  .tecla { min-height: 58px; }
}
