/* =========================================================================
   iTuNómina - Sitio público
   Sin estilos inline: todo el estilo vive aquí (compatible con CSP estricta).
   ========================================================================= */

:root {
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-soft: #dbeafe;
  --slate-950: #0f172a;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --emerald-text: #047857;
  --amber: #fbbf24;

  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-primary: var(--brand-blue);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--brand-blue);
  --bs-link-hover-color: var(--brand-blue-dark);

  --radius: 14px;
  --radius-sm: 8px;
  --mono-nums: 'tnum' 1, 'zero' 0;
  --header-h: 68px;
}

html { scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  font-family: var(--bs-font-sans-serif);
  color: var(--slate-900);
  background: #fff;
  font-feature-settings: 'cv11' 1, 'ss03' 1;
  overflow-x: hidden;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 700; color: inherit; }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: var(--mono-nums); }

/* ---------- Foco y accesibilidad ---------- */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: #fff;
  color: var(--slate-950);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: 0.65rem 1.25rem; }
.btn-brand { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; }
.btn-brand:disabled { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; opacity: .75; }
.btn-line-light { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-line-light:hover, .btn-line-light:focus-visible { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn-login { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; padding: .45rem 1rem; }
.btn-login:hover, .btn-login:focus-visible { background: #fff; color: var(--slate-950); border-color: #fff; }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(15, 23, 42, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  min-height: var(--header-h);
}
.site-nav .navbar-brand { padding: 0; }
.brand-logo { display: block; width: auto; }
.site-nav .brand-logo { height: 32px; }
.footer-brand .brand-logo { height: 36px; }
.site-nav .nav-link { color: var(--slate-300); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: #fff; }
.site-nav .navbar-toggler { border-color: rgba(255, 255, 255, .35); }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-dark { background: var(--slate-950); color: #fff; }
.section-soft { background: var(--slate-50); }
.section-dark .text-muted-s { color: var(--slate-400); }
.text-muted-s { color: var(--slate-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.section-dark .eyebrow { color: var(--cyan); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; max-width: 22ch; }
.section-lead { font-size: 1.1rem; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--slate-950);
  color: #fff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  /* Retícula tenue tipo papel de registro */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .hl { color: var(--cyan); }
.hero-lead { font-size: 1.15rem; color: var(--slate-300); max-width: 52ch; }
.hero-badges { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--slate-300); font-size: .92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges .bi { color: var(--emerald); }

/* ---------- Mockups ---------- */
.mock-note { font-size: .78rem; color: var(--slate-400); margin-top: .75rem; }
.section:not(.section-dark):not(.hero) .mock-note { color: var(--slate-600); }

.monitor {
  background: var(--slate-900);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  overflow: hidden;
  font-size: .9rem;
}
.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #172033;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
  color: var(--slate-300);
  font-size: .8rem;
}
.live { display: inline-flex; align-items: center; gap: .4rem; color: var(--emerald); font-weight: 600; }
.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.punch-list { list-style: none; margin: 0; padding: 0; }
.punch-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  color: #fff;
}
.punch-row:last-child { border-bottom: 0; }
.punch-time { font-variant-numeric: tabular-nums; font-feature-settings: var(--mono-nums); font-weight: 600; color: var(--cyan); }
.punch-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.punch-who small { color: var(--slate-400); }
.punch-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-in { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.tag-out { background: rgba(37, 99, 235, .25); color: #bfdbfe; }
.tag-adj { background: rgba(251, 191, 36, .16); color: var(--amber); }
.monitor-foot {
  padding: .7rem 1rem;
  background: #172033;
  color: var(--slate-400);
  font-size: .78rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Teléfono */
.phone {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  background: var(--slate-950);
  border: 8px solid var(--slate-900);
  border-radius: 34px;
  box-shadow: 0 24px 50px -18px rgba(15, 23, 42, .5);
  color: #fff;
  overflow: hidden;
}
.phone-top { display: flex; justify-content: space-between; padding: .7rem 1.1rem .2rem; font-size: .75rem; color: var(--slate-300); }
.phone-body { padding: .8rem 1.1rem 1.4rem; }
.phone-mode { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.phone-clock { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; font-feature-settings: var(--mono-nums); }
.phone-date { color: var(--slate-400); font-size: .82rem; }
.geo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0;
  padding: .55rem .75rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, .14);
  color: #6ee7b7;
  font-size: .8rem;
  font-weight: 500;
}
.punch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem;
  border-radius: 14px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
}
.offline-note { margin-top: .8rem; font-size: .76rem; color: var(--slate-400); display: flex; gap: .4rem; align-items: center; }
.kiosk-name { font-weight: 700; font-size: 1.1rem; margin: .3rem 0 0; }
.kiosk-sub { color: var(--slate-400); font-size: .8rem; }
.balance { margin: 1rem 0; padding: .9rem; border-radius: 12px; background: var(--slate-900); }
.balance-num { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.balance-num small { font-size: .8rem; font-weight: 500; color: var(--slate-400); }
.bar { height: 6px; border-radius: 99px; background: var(--slate-700); margin-top: .6rem; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 62%; background: var(--emerald); border-radius: 99px; }
.hist { list-style: none; padding: 0; margin: 0; font-size: .8rem; }
.hist li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid rgba(148, 163, 184, .15); }
.hist li:last-child { border-bottom: 0; }
.hist .when { color: var(--slate-400); font-variant-numeric: tabular-nums; }

/* ---------- Cómo funciona ---------- */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding-left: 4.2rem; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--slate-600); }
.step-icon { color: var(--brand-blue); margin-right: .35rem; }
@media (min-width: 992px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step { padding-left: 0; padding-top: 4.2rem; border-top: 2px solid var(--slate-200); }
  .step::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-blue); }
  .step-num { top: 1.1rem; }
}

/* Línea de tiempo del día */
.day-wrap { margin-top: 4rem; padding: 2rem 1.5rem; background: var(--slate-950); border-radius: var(--radius); color: #fff; }
.day-title { font-size: 1rem; font-weight: 600; color: var(--slate-300); margin-bottom: 1.5rem; }
.day { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.4rem; }
.day::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--slate-700); }
.day li { position: relative; padding-left: 2rem; }
.day li::before { content: ''; position: absolute; left: 0; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--emerald); border: 3px solid var(--slate-950); box-shadow: 0 0 0 2px var(--emerald); }
.day li.is-out::before { background: var(--brand-blue); box-shadow: 0 0 0 2px var(--brand-blue); }
.day-time { display: block; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; font-feature-settings: var(--mono-nums); }
.day-label { color: var(--slate-300); font-size: .9rem; }
.day-src { color: var(--slate-400); font-size: .8rem; display: block; }
@media (min-width: 768px) {
  .day { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .day::before { left: 6px; right: 6px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .day li { padding-left: 0; padding-top: 2rem; }
  .day li::before { top: 0; }
}

/* ---------- Funciones ---------- */
.feature-row { padding: 2.5rem 0; border-top: 1px solid var(--slate-200); display: grid; gap: 1rem 3rem; grid-template-columns: 1fr; }
.feature-row:first-of-type { border-top: 0; }
.feature-k { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-blue); font-variant-numeric: tabular-nums; }
.feature-row h3 { font-size: 1.5rem; margin: .3rem 0 0; }
.feature-row p { color: var(--slate-600); margin: 0 0 .75rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .bi { color: var(--emerald-text); margin-top: .2rem; flex: none; }
.methods { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.methods li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 1px solid var(--slate-300); border-radius: 999px; font-size: .88rem; font-weight: 500; background: #fff; }
.methods .bi { color: var(--brand-blue); }
@media (min-width: 992px) {
  .feature-row { grid-template-columns: 5fr 7fr; }
}
.phones { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 768px) { .phones { grid-template-columns: 1fr 1fr; } }
.phone-caption { text-align: center; margin-top: 1rem; }
.phone-caption h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.phone-caption p { color: var(--slate-600); max-width: 36ch; margin-inline: auto; }

/* Seguridad */
.sec-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 768px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
.sec-item { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.25rem; border-top: 1px solid rgba(148, 163, 184, .25); }
.sec-item .bi { color: var(--cyan); font-size: 1.4rem; line-height: 1; }
.sec-item h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.sec-item p { margin: 0; color: var(--slate-400); font-size: .95rem; }

/* ---------- Hoja de ruta ---------- */
.roadmap { list-style: none; margin: 3rem 0 0; padding: 0; position: relative; max-width: 760px; }
.roadmap::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--slate-300); }
.road-item { position: relative; padding: 0 0 2rem 3rem; }
.road-item:last-child { padding-bottom: 0; }
.road-item::before { content: ''; position: absolute; left: 0; top: .25rem; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--slate-400); }
.road-item.is-now::before { background: var(--emerald); border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.road-state { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .4rem; background: var(--slate-200); color: var(--slate-700); }
.is-now .road-state { background: #d1fae5; color: #065f46; }
.road-item h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.road-item p { margin: 0; color: var(--slate-600); }

/* ---------- Contacto ---------- */
.contact-panel { background: var(--slate-950); color: #fff; border-radius: var(--radius); padding: 2rem; height: 100%; }
.contact-panel h2 { font-size: 1.8rem; }
.contact-panel p { color: var(--slate-300); }
.contact-panel a { color: #fff; }
.contact-form-box { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 2rem; background: #fff; }
.form-label { font-weight: 600; font-size: .92rem; }
.form-control, .form-select { border-radius: 10px; padding: .65rem .85rem; border-color: var(--slate-400); }
.form-control:focus, .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .25); }
.req { color: #b91c1c; }
.hp-field {
  /* Honeypot: fuera de pantalla, no usar display:none */
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-text { color: var(--slate-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: var(--slate-400); padding: 3rem 0 2rem; font-size: .92rem; }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .2); margin-top: 2rem; padding-top: 1.25rem; }

/* ---------- Páginas simples (legal) ---------- */
.page-simple { min-height: 60vh; padding: 5rem 0; }
.page-simple h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.draft-box { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--brand-blue); background: var(--slate-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 500; }
.legal-subtitle { margin: .5rem 0 0; font-size: 1.15rem; font-weight: 600; color: var(--brand-blue); }
.legal-updated { margin: .25rem 0 1.5rem; font-size: .9rem; color: var(--slate-600); }
.legal-toc { max-width: 75ch; margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--brand-blue); background: var(--slate-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-toc-title { margin: 0 0 .75rem; font-size: 1rem; font-weight: 700; }
.legal-toc ol { margin: 0; padding-left: 1.5rem; display: grid; gap: .3rem; }
.legal-toc a { overflow-wrap: anywhere; }
.legal-text { max-width: 75ch; line-height: 1.7; overflow-wrap: anywhere; }
.legal-text section { scroll-margin-top: 5.5rem; }
.legal-text h2 { margin: 2.25rem 0 .75rem; font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.3; }
.legal-text p { margin: 0 0 1rem; }
.legal-text ul, .legal-text ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.legal-text li { margin-bottom: .5rem; }
.legal-text li::marker { color: var(--brand-blue); }
.placeholder-legal { padding: .05em .3em; background: #fef08a; color: #713f12; border-radius: 3px; font-weight: 600; }

/* ---------- App Móvil Showcase Interactivo ---------- */
.section-app-showcase {
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
}

.app-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.app-tab-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.app-tab-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--slate-50);
}

.app-tab-pill.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.app-feature-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
}

.app-feature-pane {
  display: none;
}

.app-feature-pane.is-active {
  display: block;
  animation: screenFadeIn 0.25s ease;
}

.anti-rejection-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.app-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 575.98px) {
  .app-feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-mini-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-mini-card .bi {
  font-size: 1.3rem;
  margin-top: 0.1rem;
  flex: none;
}

.feature-mini-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--slate-900);
  margin-bottom: 0.2rem;
}

.feature-mini-card p {
  font-size: 0.78rem;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.4;
}

/* Smartphone Mockup */
.device-phone {
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  background: #0f172a;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  position: relative;
  user-select: none;
}

.device-dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  gap: 5px;
  pointer-events: none;
}

.sensor-camera {
  width: 8px;
  height: 8px;
  background: #111e38;
  border-radius: 50%;
  box-shadow: inset 0 0 2px #38bdf8;
}

.sensor-mic {
  width: 4px;
  height: 4px;
  background: #1e293b;
  border-radius: 50%;
}

.app-screen {
  background: var(--slate-50);
  border-radius: 38px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.app-screen.is-active {
  display: flex;
  animation: screenFadeIn 0.25s ease;
}

.app-screen-dark {
  background: #0f172a;
  color: #ffffff;
}

.app-screen-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-logo-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.app-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-blue);
  position: relative;
  z-index: 20;
}

.app-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
}

.app-header-strip {
  background: var(--brand-blue);
  padding: 8px 14px 12px;
  color: #ffffff;
}

.app-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.app-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex: none;
}

.app-greeting {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-subgreeting {
  font-size: 0.76rem;
  opacity: 0.92;
}

.app-header-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.app-chip {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.app-back-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.app-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}

.app-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.app-clock-display {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.app-clock-display small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-600);
}

.app-date-text {
  font-size: 0.74rem;
  color: var(--slate-600);
  margin-top: 3px;
}

.app-pill-success {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
}

.app-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: dotPulse 1.8s infinite;
}

.app-meta-text {
  font-size: 0.72rem;
  color: var(--slate-600);
}

.app-dayline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 4px 2px;
}

.app-dayline-track {
  position: absolute;
  top: 17px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--slate-200);
  z-index: 1;
}

.app-dayline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 48px;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--slate-600);
}

.app-dayline-step.is-done .step-circle {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.app-dayline-step.is-current .step-circle {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.step-label { font-size: 0.68rem; font-weight: 700; color: var(--slate-900); }
.step-time { font-size: 0.64rem; color: var(--slate-600); font-variant-numeric: tabular-nums; }

.app-geofence-alert {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #065f46;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.app-punch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-punch-tile {
  border-radius: 12px;
  padding: 9px 8px;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.app-punch-tile i { font-size: 1.25rem; line-height: 1; }
.app-punch-tile strong { font-size: 0.85rem; font-weight: 700; line-height: 1.1; }
.app-punch-tile small { font-size: 0.68rem; opacity: 0.9; }

.punch-in { background: var(--emerald); }
.punch-meal { background: var(--brand-blue); }
.punch-out { background: #334155; }

.app-punch-tile.is-suggested {
  box-shadow: 0 0 0 3px #fef08a, 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Kiosko specifics */
.app-tile-vacaciones {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
}

.app-tile-antiguedad {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
}

.tile-title { font-size: 0.7rem; font-weight: 700; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.05em; }
.tile-val { font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tile-val small { font-size: 0.75rem; font-weight: 600; }
.tile-progress { height: 4px; background: rgba(255, 255, 255, 0.25); border-radius: 99px; overflow: hidden; margin: 4px 0; }
.tile-bar { display: block; height: 100%; background: #ffffff; border-radius: 99px; }
.tile-sub { font-size: 0.66rem; opacity: 0.88; }
.tile-link { font-size: 0.68rem; font-weight: 700; margin-top: 4px; }
.app-badge-soft-success { background: #dcfce7; color: #15803d; padding: 2px 7px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }

.app-menu-list { display: flex; flex-direction: column; gap: 6px; }
.app-menu-row {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-menu-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: none;
}

.icon-blue { background: #eff6ff; color: var(--brand-blue); }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-cyan { background: #f0f9ff; color: #0284c7; }

.app-menu-info { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.app-menu-info strong { font-size: 0.78rem; color: #0f172a; }
.app-menu-info small { font-size: 0.66rem; color: var(--slate-600); }

/* Mis Checadas specifics */
.app-period-chips { display: flex; gap: 6px; margin-bottom: 4px; }
.period-chip { padding: 3px 8px; border-radius: 99px; background: var(--slate-200); font-size: 0.68rem; font-weight: 600; color: var(--slate-700); }
.period-chip.active { background: #0f172a; color: #ffffff; }
.history-group-title { font-size: 0.72rem; font-weight: 700; color: var(--slate-700); margin: 3px 0 5px; }

.history-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.history-item.is-adjustment { border-color: #fde68a; background: #fffbeb; }

.history-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: none;
}

.icon-in { background: #dcfce7; color: #16a34a; }
.icon-meal { background: #eff6ff; color: var(--brand-blue); }
.icon-out { background: #f1f5f9; color: #475569; }
.icon-adj { background: #fef3c7; color: #d97706; }

.history-info { flex: 1; line-height: 1.2; min-width: 0; }
.history-info strong { font-size: 0.76rem; color: #0f172a; }
.history-time { font-size: 0.74rem; font-weight: 700; color: var(--brand-blue); font-variant-numeric: tabular-nums; }
.history-info small { font-size: 0.65rem; color: var(--slate-600); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-audit-note { font-size: 0.64rem; color: #b45309; font-style: italic; margin-top: 1px; }

.badge-source { font-size: 0.6rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.source-mobile { background: #e0f2fe; color: #0369a1; }
.source-clock { background: #ede9fe; color: #6d28d9; }
.source-adj { background: #fef3c7; color: #b45309; }

/* Seguridad specifics */
.app-dark-body { padding: 12px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.app-dark-user-card { background: #1e293b; border-radius: 12px; padding: 10px; text-align: center; border: 1px solid rgba(148, 163, 184, 0.15); }
.app-badge-dark-branch { display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.08); padding: 2px 8px; border-radius: 6px; font-size: 0.68rem; color: var(--slate-300); }

.app-biometric-prompt { background: #1e293b; border: 1px solid rgba(59, 130, 246, 0.35); border-radius: 16px; padding: 14px; }
.biometric-pulse-wrap { display: flex; justify-content: center; margin: 8px 0; }
.biometric-icon-pulse {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  border: 2px solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--cyan);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
  animation: bioPulse 2s infinite;
}

.app-dark-trust { margin-top: 4px; }

/* Tab Bar inside Phone */
.app-tab-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  padding: 6px 0;
  font-size: 0.65rem;
  text-align: center;
  color: var(--slate-600);
  user-select: none;
}

.app-tab-item { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.app-tab-item.active { color: var(--brand-blue); font-weight: 700; }
.app-tab-item i { font-size: 1rem; line-height: 1; }

.app-home-indicator {
  width: 90px;
  height: 4px;
  background: var(--slate-300);
  border-radius: 99px;
  margin: 6px auto 3px;
}

.app-home-indicator.indicator-light {
  background: #475569;
}

/* Animations */
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes bioPulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
  .section { padding: 3.75rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .contact-form-box, .contact-panel { padding: 1.4rem; }
  .punch-row { grid-template-columns: 3.6rem 1fr auto; padding-inline: .75rem; gap: .5rem; }
  .monitor-bar { flex-wrap: wrap; }
}

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