﻿/* ============================================================
   SYSTEM — Design Tokens · Layout · Components
   Sistema completo autosuficiente. Sin !important. Sin Tailwind.
   ============================================================ */

/* ─── Design Tokens (Variables CSS) ─────────────────────────────── */

:root {
  /* Colores institucionales SENAN / DNI */
  --primary: #087563;
  --primary-strong: #065c4e;
  --consult: #2c74b3;
  --consult-strong: #1a3e6f;
  --accent: #e8941a;
  --admin-amber-dark: #7a3e00;

  /* Badge colors */
  --badge-success-bg: #1f8f55;
  --badge-warning-bg: #c97a13;
  --badge-info-bg: #2c74b3;

  /* Semánticos */
  --success: #1f8f55;
  --warning: #c97a13;
  --danger: #c0392b;
  --info: #2c74b3;

  /* Fondos */
  --bg: #f1f4f8;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --form-panel: #ffffff;

  /* Textos */
  --text: #0f1a2e;
  --text-soft: #2c3e50;
  --text-label: #102034;
  --muted: #7d8eaa;

  /* Líneas y bordes */
  --line: rgba(126, 145, 170, 0.16);
  --line-light: rgba(126, 145, 170, 0.14);
  --line-soft: rgba(126, 145, 170, 0.10);
  --line-card: rgba(126, 145, 170, 0.12);
  --line-card-soft: rgba(126, 145, 170, 0.08);
  --line-card-strong: rgba(126, 145, 170, 0.18);
  --line-border: rgba(126, 145, 170, 0.28);
  --line-strong: rgba(126, 145, 170, 0.34);
  --table-border: rgba(126, 145, 170, 0.14);
  --focus-ring: rgba(8, 117, 99, 0.12);

  /* Espaciados */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-round: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(16, 35, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 35, 63, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 35, 63, 0.12);
}

/* ─── Reset / Base ──────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; height: auto; }

/* ─── Animaciones ────────────────────────────────────────────────── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Page Wrapper (contenedor formulario) ────────────────────────── */

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

/* ─── Page Shell ─────────────────────────────────────────────────── */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ─── Session Bar ────────────────────────────────────────────────── */

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--consult-strong);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 35, 63, 0.12);
  position: relative;
  z-index: 30;
}

.session-label { opacity: 0.85; }

.session-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 200ms ease, transform 200ms ease;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--consult-strong) 0%, #0b2a4a 80%, #0a1f38 100%);
  color: #ffffff;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; }

.hero-branding {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  width: 100%;
  max-width: 110px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
}

.hero-titles { text-align: center; }

.hero-line {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.7;
  text-transform: uppercase;
}

.hero-line-top { font-size: 0.7rem; margin-bottom: 2px; }
.hero-line-main { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.12em; opacity: 0.9; margin-bottom: 2px; }
.hero-line-motto { font-size: 0.68rem; font-style: italic; opacity: 0.55; margin-bottom: 6px; }

.hero-titles h1 {
  margin: 4px 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.hero-titles h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Module Selector ────────────────────────────────────────────── */

.module-shell {
  padding: 20px 24px 0;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.module-card {
  background: var(--surface-strong);
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}

.module-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-shell.is-admin .module-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.module-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  transform: translateY(-1px);
}

.module-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--surface-strong);
  flex-shrink: 0;
}

.module-btn-registro .module-btn-icon { background: var(--primary); }
.module-btn-consulta .module-btn-icon { background: var(--consult); }
.module-btn-admin .module-btn-icon { background: var(--accent); }

/* ─── Access Panels ──────────────────────────────────────────────── */

.access-shell {
  padding: 20px 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.access-card {
  background: var(--surface-strong);
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
  animation: slideUp 240ms ease;
}

/* ─── Section Headings ───────────────────────────────────────────── */

.section-heading { margin-bottom: 24px; }

.section-heading h2 {
  margin: 4px 0 2px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.access-heading { margin-bottom: 20px; }

/* ─── Consulta Search ────────────────────────────────────────────── */

.consulta-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.consulta-search-row .form-group { margin-bottom: 0; }

.consulta-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.consulta-hint { display: flex; align-items: end; }

.consulta-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 4px;
}

.consulta-table-wrap {
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.consulta-table { width: 100%; border-collapse: collapse; }

.consulta-table th {
  background: #edf3f8;
  color: var(--consult-strong);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(126, 145, 170, 0.24);
  padding: 10px 10px;
  text-align: left;
}

.consulta-table td {
  background: var(--surface-strong);
  color: var(--text);
  border-bottom: 1px solid var(--table-border);
  padding: 10px 10px;
  font-size: 0.86rem;
  vertical-align: middle;
}

.consulta-table tr:hover td { background-color: #edf5f3; }

/* ─── Worker Card ────────────────────────────────────────────────── */

.worker-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-top: 12px;
}

/* ─── Admin Panel (ancho extendido para tabla de usuarios) ─────────── */

.admin-panel {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.admin-panel .admin-table th,
.admin-panel .admin-table td {
  white-space: nowrap;
}

/* ─── Admin Dashboard ─────────────────────────────────────────────── */

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.admin-module-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.admin-module-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  transform: translateY(-1px);
}

.admin-module-card-primary { border-left: 4px solid var(--primary); }
.admin-module-card-prototype { border-left: 4px solid var(--warning); }
.admin-module-card-prototype .admin-module-icon { background: rgba(245, 181, 63, 0.16); color: var(--warning); }
.admin-module-card-prototype .admin-module-kicker { color: var(--warning); }
.prototype-alert-center-card { border-left: 5px solid #b42318; position: relative; }
.prototype-alert-center-card .admin-module-icon { background: #fee4e2; color: #b42318; }
.prototype-alert-center-card .admin-module-kicker { color: #b42318; }
.prototype-alert-count { position: absolute; right: 14px; top: 14px; min-width: 28px; height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: #b42318; color: #fff; font-weight: 800; }
.admin-module-card-soon { border-left: 4px solid var(--line-strong); opacity: 0.75; }

.admin-module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--consult-strong);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-module-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 2px;
}

.admin-module-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.admin-module-content small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── Admin Subheader ────────────────────────────────────────────── */

.admin-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-subheader h3 {
  margin: 4px 0 2px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--consult-strong);
}

.admin-subheader p { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.admin-back-btn { white-space: nowrap; }

/* ─── Admin Grid ─────────────────────────────────────────────────── */

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-form, .admin-password-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.admin-form h3, .admin-password-panel h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--consult-strong);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
  margin-top: 0;
}

/* ─── Admin Table ────────────────────────────────────────────────── */

.admin-table-wrap {
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
  background: #edf3f8;
  color: var(--consult-strong);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(126, 145, 170, 0.24);
  padding: 10px 10px;
  text-align: left;
}

.admin-table td {
  background: var(--surface-strong);
  color: var(--text);
  border-bottom: 1px solid var(--table-border);
  padding: 10px 10px;
  font-size: 0.86rem;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tr:hover td { background-color: #edf5f3; }

.admin-table .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.admin-table .badge.badge-success {
  background: #eefcf5;
  color: var(--success);
  border-color: rgba(31, 143, 85, 0.24);
}

.admin-table .badge.badge-danger {
  background: #fff5f5;
  color: var(--danger);
  border-color: rgba(184, 50, 42, 0.24);
}

.admin-password-alert {
  background: #fffaf0;
  border: 1px solid rgba(201, 122, 19, 0.24);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.admin-password-alert strong {
  display: block;
  color: var(--warning);
  margin-bottom: 6px;
}

.admin-coming-soon {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.admin-coming-soon span {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-soft);
}

/* ─── Cards Base ──────────────────────────────────────────────────── */

.card {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--consult));
  opacity: 0.85;
  border-radius: 0 2px 2px 0;
}

.card-highlight {
  background: linear-gradient(135deg, rgba(15, 107, 95, 0.97) 0%, rgba(27, 71, 98, 0.97) 100%);
  color: #f8fafc;
  border-color: rgba(15, 107, 95, 0.4);
}

.card-highlight::before {
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.4));
  opacity: 0.25;
}

.card-highlight .form-group label { color: rgba(255, 255, 255, 0.85); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.card-header-actions { display: flex; align-items: center; gap: 8px; }

/* ─── Section Blocks ──────────────────────────────────────────────── */

.section-block { margin-bottom: 32px; }

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.mini-description {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin: 4px 0 0;
}

/* ─── Buttons Base ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(8, 117, 99, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(8, 117, 99, 0.28);
}

.btn-secondary {
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-small {
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── Form Controls (Base) ────────────────────────────────────────── */

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-label);
}

.form-group .required { color: var(--danger); }

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text-label);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.form-control::placeholder { color: var(--muted); font-weight: 500; }

/* ─── Checkbox / Radio Items ──────────────────────────────────────── */

.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }

.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.checkbox-item:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.checkbox-item.is-selected {
  background: #edf5f3;
  border-color: var(--primary);
  color: var(--primary-strong);
}

.checkbox-item input[type="radio"],
.checkbox-item input[type="checkbox"] { display: none; }

/* ─── Switch Control ──────────────────────────────────────────────── */

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid rgba(126, 145, 170, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}

.switch { display: none; }

.switch-slider {
  display: inline-block;
  width: 36px;
  height: 20px;
  background: rgba(126, 145, 170, 0.3);
  border-radius: 999px;
  position: relative;
  transition: background 200ms ease;
  cursor: pointer;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 200ms ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.switch:checked + .switch-slider {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
}

.switch:checked + .switch-slider::after { transform: translateX(16px); }

/* ─── Step Badges ─────────────────────────────────────────────────── */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid rgba(126, 145, 170, 0.22);
}

.step-badge.complete {
  background: #eefcf5;
  color: var(--success);
  border: 1px solid rgba(31, 143, 85, 0.24);
}

.step-badge.salida {
  background: #fffaf0;
  color: var(--warning);
  border: 1px solid rgba(201, 122, 19, 0.24);
}

.step-badge.entrada {
  background: #f0f7ff;
  color: var(--consult);
  border: 1px solid rgba(44, 116, 179, 0.24);
}

/* ─── Data Display (Worker Info) ──────────────────────────────────── */

.datos-trabajador {
  background: var(--bg);
  border: 1px solid rgba(126, 145, 170, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.dato {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--table-border);
}

.dato:last-child { border-bottom: 0; }

.dato-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.dato-valor { text-align: right; font-weight: 700; color: var(--text); }

.telefono-actual {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-strong);
  border: 1px solid rgba(8, 117, 99, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
}

/* ─── Collapse / Utilities ────────────────────────────────────────── */

.seccion-colapsada { display: none !important; }

.chip-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.top-spacing { margin-top: 16px; }
.hidden-block { display: none !important; }
.text-left { text-align: left; }
.participante-header { margin-bottom: 8px; }
.participante-grid { gap: 12px; }

/* ─── Placa Autocomplete ──────────────────────────────────────────── */

.placa-autocomplete { letter-spacing: 0.15em; font-weight: 800; }

/* ─── Photo Input (legacy) ────────────────────────────────────────── */

.foto-input { display: none; }

/* ─── Progress Overlay ────────────────────────────────────────────── */

.progress-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 46, 0.55);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.progress-overlay.active { display: flex; }

.progress-card {
  background: var(--surface-strong);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  width: 90%;
  animation: slideUp 240ms ease;
}

.progress-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid var(--bg);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress-status {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.progress-detail {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

/* ─── Modal ────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 46, 0.55);
  z-index: 900;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface-strong);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 240ms ease;
  text-align: center;
}

.modal h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.modal p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fffaf0;
  color: var(--warning);
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

/* ─── Toast ────────────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  animation: slideUp 240ms ease;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--consult); }

/* ─── Responsive (Layout General) ──────────────────────────────────── */

@media (max-width: 768px) {
  .hero-branding { grid-template-columns: 90px 1fr 90px; gap: 12px; }
  .hero-logo { max-width: 80px; }
  .hero-titles h1 { font-size: 0.85rem; }
  .hero-titles h2 { font-size: 1.1rem; }
  .hero { padding: 20px 16px; }
  .module-actions { grid-template-columns: 1fr; }
  .module-shell.is-admin .module-actions { grid-template-columns: 1fr; }
  .access-card { padding: 16px 18px; border-radius: var(--radius-lg); }
  .consulta-search-row { grid-template-columns: 1fr; }
  .consulta-filter-row { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-dashboard { grid-template-columns: 1fr; }
  .admin-subheader { flex-direction: column; align-items: flex-start; }
  .consulta-table th, .consulta-table td { font-size: 0.75rem; padding: 6px 6px; }
  .modal { padding: 24px 20px; }
  .card { padding: 16px 18px; }
}

@media (max-width: 480px) {
  /* ── Portada: logo no satura, centrado, padding reducido ── */
  .hero-branding { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .hero-logo { max-width: 60px; margin: 0 auto; }
  .hero { padding: 14px 10px; }
  .hero-titles h1 { font-size: 0.78rem; }
  .hero-titles h2 { font-size: 0.95rem; }
  .hero-line-top { font-size: 0.62rem; }
  .hero-line-main { font-size: 0.72rem; letter-spacing: 0.08em; }

  /* ── Session compacta ── */
  .session-bar { flex-direction: column; gap: 4px; padding: 8px 10px; font-size: 0.75rem; }
  .session-actions { width: 100%; justify-content: center; flex-wrap: wrap; gap: 6px; }

  /* ── Sin scroll horizontal ── */
  .page-shell { overflow-x: hidden; }
  .page-wrapper { padding: 0 8px; }

  /* ── Module buttons: apilados verticalmente, touch target amplio ── */
  .module-btn {
    padding: 16px 14px;
    font-size: 1rem;
    min-height: 56px;
    width: 100%;
  }
  .module-btn-icon { width: 36px; height: 36px; font-size: 1rem; }

  /* ── Access panels: menos padding lateral ── */
  .access-shell { padding: 10px 10px; }
  .access-card { padding: 10px 12px; }

  /* ── Consulta: tabla scrolleable, inputs full-width ── */
  .consulta-table-wrap { overflow-x: auto; }
  .consulta-table th,
  .consulta-table td {
    font-size: 0.68rem;
    padding: 5px 4px;
    white-space: nowrap;
  }
  .consulta-search-row .btn,
  .consulta-search-row .btn-primary { width: 100%; }

  /* ── Inputs: font-size 16px evita zoom automático en iOS ── */
  .input-pro,
  .select-pro,
  .form-control { font-size: 16px !important; }

  /* ── Botones de acción: ancho completo, altura táctil ── */
  .btn-submit,
  .btn-cancel,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-height: 56px;
  }
  .form-actions { gap: 10px; }

  /* ── Volver al dashboard: compacto pero pulsable ── */
  .admin-back-btn { min-height: 48px; width: 100%; justify-content: center; }

  /* ── Admin: módulos y tabla adaptados ── */
  .admin-module-card { padding: 12px; gap: 10px; }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table th,
  .admin-table td {
    font-size: 0.7rem;
    padding: 5px 4px;
    white-space: nowrap;
  }

  /* ── Cards con padding reducido ── */
  .card { padding: 12px 12px; }
  .modal { padding: 18px 14px; }
  .modal-actions { flex-direction: column; gap: 8px; }
  .modal-actions .btn { width: 100%; min-height: 48px; }

  /* ── Worker card ── */
  .worker-card { padding: 10px; }
  .data-card { gap: 6px; }
  .data-card[data-row] { padding: 4px 0; }

  /* ── Toast más angosto ── */
  .toast-container { right: 8px; left: 8px; width: auto; }
}

/* ============================================================
   — ELITE COMPONENTS — Form Panel, inputs, selects, buttons, badges
   ============================================================ */

/* ─── Panel principal ──────────────────────────────────────────── */

.form-panel {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--form-panel);
  border: 1px solid var(--line-card-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 48px rgba(16, 35, 63, 0.12);
  padding: var(--space-3xl);
  animation: slideUp 260ms ease;
}

/* ─── Cards de sección ─────────────────────────────────────────── */

.form-card {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--surface-strong);
  border: 1px solid var(--line-card-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 26px rgba(16, 35, 63, 0.06);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--consult));
  opacity: 0.7;
  border-radius: 0 2px 2px 0;
}

.form-highlight {
  background: linear-gradient(135deg, rgba(15, 107, 95, 0.97) 0%, rgba(27, 71, 98, 0.97) 100%);
  color: #f8fafc;
  border-color: rgba(15, 107, 95, 0.4);
}

.form-highlight::before {
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.4));
  opacity: 0.25;
}

.form-highlight .field-label,
.form-highlight .field-group label { color: rgba(255, 255, 255, 0.85); }

.form-highlight .input-pro,
.form-highlight .select-pro {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

.form-highlight .badge-pro {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Field groups ─────────────────────────────────────────────── */

.field-group { margin-bottom: var(--space-md); }

.field-group label,
.field-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-label);
}

.field-group .required { color: var(--danger); }

.field-group .hint {
  margin-top: var(--space-xs);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.field-grid-full { grid-column: 1 / -1; }

/* ─── Input profesional ────────────────────────────────────────── */

.input-pro {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text-label);
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(16, 35, 63, 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.input-pro:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring), inset 0 1px 3px rgba(11, 31, 56, 0.04);
  transform: translateY(-1px);
}

.input-pro:hover { border-color: var(--primary); }

.input-pro::placeholder {
  color: var(--muted);
  font-weight: 500;
  opacity: 0.65;
}

.input-pro:disabled {
  color: var(--muted);
  background: #e9eff5;
  border-color: var(--line-light);
  cursor: not-allowed;
}

.input-pro.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.input-pro.autocomplete-complete {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(31, 143, 85, 0.12);
}

textarea.input-pro { min-height: 96px; resize: vertical; }

/* ─── Select profesional ───────────────────────────────────────── */

.select-wrap { position: relative; }

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  border-top: 0;
  border-left: 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: transform 200ms ease;
}

.select-pro {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  padding-right: 36px;
  border: 1.5px solid var(--line-border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text-label);
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(16, 35, 63, 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-pro:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  transform: translateY(-1px);
}

.select-pro:hover { border-color: var(--primary); }

.select-pro:disabled {
  color: var(--muted);
  background: #e9eff5;
  cursor: not-allowed;
}

/* ─── Botón primario (submit) ──────────────────────────────────── */

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: var(--surface-strong);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 117, 99, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(8, 117, 99, 0.36);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(8, 117, 99, 0.2);
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Botón cancelar / secundario ──────────────────────────────── */

.btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1.5px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-cancel:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 35, 63, 0.06);
}

/* ─── Botón pill (chips, monitores, accion rapida) ───────────────── */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(8, 117, 99, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(8, 117, 99, 0.28);
}

/* ─── Botón agregar ────────────────────────────────────────────── */

.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--admin-amber-dark) 100%);
  color: var(--surface-strong);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(169, 95, 0, 0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(169, 95, 0, 0.32);
  background: linear-gradient(135deg, #f0a326 0%, #c77600 48%, #8b5200 100%);
}

.btn-add:active { transform: translateY(0); }

/* ─── Botón agregar sobre fondo claro ──────────────────────────── */

.btn-add-light {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--primary-strong);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-add-light:hover {
  background: var(--bg);
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 4px var(--focus-ring);
  transform: translateY(-1px);
}

/* ─── Botón eliminar ───────────────────────────────────────────── */

.btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, 0.08);
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.btn-remove:hover {
  background: rgba(192, 57, 43, 0.15);
  transform: translateY(-1px);
}

/* ─── Botón foto ───────────────────────────────────────────────── */

.btn-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--consult) 0%, var(--consult-strong) 100%);
  color: var(--surface-strong);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 99, 183, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn-photo:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 99, 183, 0.28);
}

/* ─── Status badges ────────────────────────────────────────────── */

.badge-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: var(--radius-round);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(16, 35, 63, 0.12);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(16, 35, 63, 0.06);
}

.badge-done {
  background: var(--badge-success-bg);
  color: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-exit {
  background: var(--badge-warning-bg);
  color: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-entry {
  background: var(--badge-info-bg);
  color: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Data card (worker info - Elite) ──────────────────────────── */

.data-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-sm);
}

.data-card.autocomplete-ok {
  border-color: rgba(31, 143, 85, 0.34);
  background: rgba(31, 143, 85, 0.06);
  box-shadow: 0 0 0 4px rgba(31, 143, 85, 0.08);
}

.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--table-border);
}

.data-row:last-child { border-bottom: 0; }

.data-key {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.data-val { text-align: right; font-weight: 700; color: var(--text); }

.badge-phone {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-round);
  background: var(--surface-strong);
  color: var(--primary-strong);
  border: 1px solid rgba(15, 127, 99, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
}

/* ─── Form actions bar ─────────────────────────────────────────── */

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 14px;
  z-index: 20;
}

.form-actions .btn-submit { flex: 1; }

.form-actions .btn-cancel { flex: 0 0 auto; min-width: 140px; }

/* ─── Dynamic item cards ───────────────────────────────────────── */

.item-card {
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-card);
  background: rgba(255, 255, 255, 0.86);
  animation: slideUp 240ms ease;
  transition: opacity 200ms ease, transform 200ms ease;
}

.item-card.participant-item {
  background: linear-gradient(135deg, rgba(31, 99, 183, 0.06), rgba(0, 133, 111, 0.06)), rgba(255, 255, 255, 0.92);
}

.item-card.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.item-header strong { font-size: 1rem; font-weight: 800; color: var(--text); }

/* ─── Photo section ────────────────────────────────────────────── */

.photo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.photo-hint { color: var(--text-soft); font-size: 0.82rem; font-weight: 700; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(20, 33, 61, 0.06);
  border: 1px solid var(--line);
}

.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 33, 61, 0.7);
  color: var(--surface-strong);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 200ms ease;
}

.photo-remove:hover { background: rgba(192, 57, 43, 0.85); }

/* ─── Divider ──────────────────────────────────────────────────── */

.divider-top {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

/* ─── Responsive (Formulario) ────────────────────────────────────── */

@media (max-width: 768px) {
  .form-panel { padding: var(--space-lg); border-radius: var(--radius-lg); }
  .form-card { padding: var(--space-md); border-radius: var(--radius-md); }
  .field-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
  .input-pro, .select-pro { min-height: 52px; font-size: 1rem; }
  .form-actions { flex-direction: column; position: static; }
  .form-actions .btn-submit, .form-actions .btn-cancel { width: 100%; flex: none; }
}

