/* ============================================================
   STYLES.CSS — Atención de Solicitudes de Bacheo
   H. Ayuntamiento de Ecatepec de Morelos
   ============================================================ */

:root {
    --color-primario: #722F37;
    --color-secundario: #5a252c;
    --color-primario-light: #8f3a44;
    --color-bg: #f3ebed;
    --color-white: #ffffff;
    --color-text: #2b2b2e;
    --color-text-light: #6b6b70;
    --color-border: #e2e0e3;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    --color-gray: #6c757d;
    --color-gray-light: #f8f9fa;
    --shadow: 0 1px 2px rgba(20,10,12,0.04), 0 4px 14px rgba(20,10,12,0.08);
    --shadow-lg: 0 10px 34px rgba(20,10,12,0.22);
    --radius: 10px;
    --radius-lg: 16px;
    --navbar-height: 64px;
    --font: 'Segoe UI', Arial, system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--color-bg); color: var(--color-text); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--color-primario); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ---- Navbar ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(180deg, var(--color-primario) 0%, #672a31 100%);
    height: var(--navbar-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.4rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
.navbar-brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.navbar-logo { height: 46px; width: auto; border-radius: 6px; }
.navbar-title {
    flex: 1; min-width: 0; text-align: center;
    color: var(--color-white); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding: 0 1rem;
}
.navbar-menu { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; flex-shrink: 0; }
/* Navbar simple del formulario público (sin hamburguesa, sin menú que colapsar):
   siempre visible, no se le aplica el patrón de ocultar/mostrar de .navbar-menu. */
.navbar-menu-simple { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.nav-link { position: relative; color: rgba(255,255,255,0.88); padding: 0.5rem 0.85rem; border-radius: 8px; font-size: 0.87rem; font-weight: 500; transition: background 0.2s, color 0.2s; white-space: nowrap; text-decoration: none; }
.nav-link:hover { background: rgba(255,255,255,0.14); text-decoration: none; color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.16); color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 #fff; }
.nav-user { display: flex; align-items: center; gap: 0.55rem; margin-left: 0.6rem; border-left: 1px solid rgba(255,255,255,0.25); padding-left: 0.9rem; }
.nav-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: rgba(255,255,255,0.18); color: #fff; font-weight: 700; font-size: 0.82rem;
}
.nav-username { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 500; }
.nav-badge { font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.nav-badge--administrador { background: #fff; color: var(--color-primario); }
.nav-badge--supervisor { background: #d4ac0d; color: #333; }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.5rem; padding: 0.3rem; line-height: 1; }

/* ---- Page Content ---- */
.page-content { flex: 1; margin-top: var(--navbar-height); padding: 1.6rem 1.4rem; max-width: 1536px; width: 100%; margin-left: auto; margin-right: auto; margin-top: calc(var(--navbar-height) + 0px); }

/* ---- Footer ---- */
.site-footer { background: var(--color-secundario); color: rgba(255,255,255,0.75); text-align: center; padding: 0.8rem 1rem; font-size: 0.8rem; margin-top: auto; }

/* ---- Cards ---- */
.card { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.2rem; border: 1px solid rgba(20,10,12,0.04); }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--color-primario); margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--color-border); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }

/* ---- Stats Cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.stat-card {
    background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 1.3rem 1.4rem; border: 1px solid rgba(20,10,12,0.04); border-left: 4px solid var(--color-primario);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card--total { border-color: var(--color-primario); }
.stat-card--entregado { border-color: var(--color-success); }
.stat-card--no_encontrado { border-color: var(--color-warning); }
.stat-card--inhabilitado { border-color: var(--color-danger); }
.stat-card--hoy { border-color: var(--color-gray); }
.stat-card--reportado { border-color: var(--color-danger); }
.stat-card--reparado { border-color: var(--color-success); }
.stat-card--bache { border-color: #2563EB; }
.stat-card--tope { border-color: #F97316; }
.stat-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-light); font-weight: 700; }
.stat-value { font-size: 2.3rem; font-weight: 800; color: var(--color-text); line-height: 1; letter-spacing: -0.01em; }
.stat-card--reportado .stat-value { color: var(--color-danger); }
.stat-card--reparado .stat-value { color: #198754; }
.stat-card--bache .stat-value { color: #2563EB; }
.stat-card--tope .stat-value { color: #F97316; }
.stat-card--bache .stat-icon { background: rgba(37,99,235,0.1); }
.stat-card--tope .stat-icon { background: rgba(249,115,22,0.1); }
.stat-substat { font-size: 0.78rem; font-weight: 600; color: #198754; margin-top: -0.1rem; }
.stat-icon {
    font-size: 1.25rem; width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(114,47,55,0.08); border-radius: 50%; margin-bottom: 0.3rem;
}
.stat-card--reportado .stat-icon { background: rgba(220,53,69,0.1); }
.stat-card--reparado .stat-icon { background: rgba(25,135,84,0.1); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1.15rem; border-radius: 8px; border: none; font-size: 0.88rem; font-family: var(--font); font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s, box-shadow 0.2s; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn:active { transform: scale(0.97); }
.btn:hover { text-decoration: none; box-shadow: 0 3px 8px rgba(0,0,0,0.14); }
.btn-primary { background: var(--color-primario); color: #fff; }
.btn-primary:hover { background: var(--color-secundario); color: #fff; }
.btn-secondary { background: var(--color-gray); color: #fff; }
.btn-secondary:hover { background: #5a6268; color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-success:hover { background: #1e7e34; color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #b02a37; color: #fff; }
.btn-warning { background: var(--color-warning); color: #333; }
.btn-warning:hover { background: #d39e00; color: #333; }
.btn-info { background: var(--color-info); color: #fff; }
.btn-info:hover { background: #117a8b; color: #fff; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-outline { background: transparent; border: 2px solid var(--color-primario); color: var(--color-primario); }
.btn-outline:hover { background: var(--color-primario); color: #fff; }
.btn-outline-info { background: transparent; border: 2px solid var(--color-info); color: var(--color-info); }
.btn-outline-info:hover { background: var(--color-info); color: #fff; }

/* ---- Form sections ---- */
.form-section {
    background: linear-gradient(180deg, #faf6f6 0%, #f5eeef 100%);
    border: 1px solid #eee1e2;
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.6rem;
}
.form-section:last-of-type { margin-bottom: 0.3rem; }
.form-section-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem; font-weight: 800; color: var(--color-primario);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem;
}
.form-section-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; border-radius: 50%; flex-shrink: 0;
    background: var(--color-primario); color: #fff; font-size: 0.75rem; font-weight: 800;
    box-shadow: 0 2px 6px rgba(114,47,55,0.35);
}

/* ---- Forms ---- */
.form-group { margin-bottom: 0.7rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--color-text); }
.form-control { width: 100%; padding: 0.55rem 0.8rem; border: 1px solid rgba(0,0,0,0.05); border-radius: 8px; font-size: 0.9rem; font-family: var(--font); color: var(--color-text); background: #fff; box-shadow: 0 1px 2px rgba(20,10,12,0.05), 0 3px 8px rgba(20,10,12,0.09); transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus { outline: none; border-color: var(--color-primario); box-shadow: 0 0 0 3px rgba(114,47,55,0.13), 0 1px 2px rgba(20,10,12,0.05), 0 3px 8px rgba(20,10,12,0.09); }
.form-control[readonly] { background: #f0f0f0; color: #555; }
.form-control:disabled { background: #ececec; color: #999; cursor: not-allowed; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; }
.form-hint { font-size: 0.78rem; color: var(--color-text-light); margin-top: 0.25rem; }
.form-error { font-size: 0.78rem; color: var(--color-danger); margin-top: 0.25rem; }

/* Tarjetas de Tipo de Daño (formulario público) */
.tipo-cards { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.tipo-card {
    flex: 1; min-width: 140px;
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 1.1rem 1rem; border: 2px solid var(--color-border); border-radius: var(--radius);
    background: #fff; cursor: pointer; font-family: var(--font);
    transition: border-color 0.2s, background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.tipo-card:hover { border-color: var(--color-primario); }
.tipo-card:active { transform: scale(0.98); }
.tipo-card-icon { font-size: 1.8rem; line-height: 1; }
.tipo-card-label { font-size: 0.92rem; font-weight: 700; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.03em; }
.tipo-card.selected { border-color: var(--color-primario); background: linear-gradient(180deg, #f5dfe1 0%, #eecfd2 100%); box-shadow: 0 2px 8px rgba(114,47,55,0.15); }
.tipo-card.selected .tipo-card-label { color: var(--color-primario); }

/* GPS field */
.gps-group { display: flex; gap: 0.5rem; align-items: flex-end; }
.gps-group .form-control { flex: 1; }
#gpsStatus { font-size: 0.78rem; color: var(--color-text-light); margin-top: 0.25rem; min-height: 1.2em; }

/* ---- Filtros ---- */
.filtros-form { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; margin-bottom: 1.2rem; border: 1px solid rgba(20,10,12,0.04); }
.filtros-form-title { font-size: 0.78rem; font-weight: 800; color: var(--color-primario); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.filtros-form .form-row { gap: 0.6rem; }
.filtros-form .form-control { font-size: 0.82rem; padding: 0.42rem 0.6rem; }
.filtros-actions { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; margin-top: 0.6rem; }

/* ---- Table ---- */
.table-wrapper { overflow-x: auto; overflow-y: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(20,10,12,0.04); }
table.data-table { width: 100%; border-collapse: collapse; background: var(--color-white); font-size: 0.85rem; }
table.data-table thead tr { background: var(--color-primario); color: #fff; }
table.data-table thead th { padding: 0.8rem 0.9rem; text-align: left; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
table.data-table tbody tr { transition: background 0.15s; }
table.data-table tbody tr:nth-child(even) { background: #faf7f8; }
table.data-table tbody tr:hover { background: #f1e6e7; }
table.data-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
table.data-table .td-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
table.data-table .td-fecha { font-size: 0.78rem; line-height: 1.5; white-space: nowrap; color: var(--color-text-light); }
table.data-table .badge { font-size: 0.68rem; padding: 0.2rem 0.55rem; }
.no-data { text-align: center; padding: 2.5rem; color: var(--color-text-light); font-size: 0.95rem; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.65rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; line-height: 1.4; }
.badge-registrado { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.badge-pendiente { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.badge-inhabilitado { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.badge-bache { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-tope { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-activo { background: #d4edda; color: #155724; }
.badge-inactivo { background: #f8d7da; color: #721c24; }
.badge-administrador { background: #ede2e3; color: var(--color-primario); }
.badge-supervisor { background: #fff3cd; color: #856404; }
.badge-reportado { background: #f8d7da; color: #a71d2a; border: 1px solid #f1b0b7; }
.badge-reparado { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ---- Pagination ---- */
.pagination-wrapper { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; padding: 1rem 0.2rem; }
.pagination { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.page-btn { padding: 0.38rem 0.7rem; border-radius: var(--radius); border: 1px solid var(--color-border); background: #fff; cursor: pointer; font-size: 0.83rem; color: var(--color-text); text-decoration: none; transition: background 0.15s; }
.page-btn:hover { background: var(--color-primario); color: #fff; border-color: var(--color-primario); text-decoration: none; }
.page-btn.active { background: var(--color-primario); color: #fff; border-color: var(--color-primario); font-weight: 700; }
.page-btn.disabled { opacity: 0.45; pointer-events: none; }
.pagination-info { font-size: 0.82rem; color: var(--color-text-light); }

/* ---- Modal ---- */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.55); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 780px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; }
.modal-header { background: var(--color-primario); color: #fff; padding: 1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; }
.modal-title { font-size: 1.05rem; font-weight: 700; }
.modal-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0.2rem 0.4rem; border-radius: 4px; transition: background 0.2s; }
.modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-body { padding: 1.3rem; }
.modal-fotos { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.8rem; }
.modal-foto { width: 180px; height: 140px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--color-border); cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.modal-foto:hover { transform: scale(1.03); border-color: var(--color-primario); }
.modal-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.modal-detail-item { font-size: 0.87rem; }
.modal-detail-item strong { display: block; font-size: 0.75rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.1rem; }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.88); align-items: center; justify-content: center; cursor: pointer; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 94vw; max-height: 90vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---- Login ---- */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, #8a3a43 0%, var(--color-primario) 45%, var(--color-secundario) 100%); padding: 1rem; }
.login-box { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.6rem 2.2rem; width: 100%; max-width: 400px; }
.login-logo { display: block; margin: 0 auto 1.2rem; max-height: 80px; }
.login-title { text-align: center; font-size: 1.25rem; font-weight: 800; color: var(--color-primario); margin-bottom: 0.2rem; }
.login-subtitle { text-align: center; font-size: 0.82rem; color: var(--color-text-light); margin-bottom: 1.6rem; }
.login-footer { text-align: center; font-size: 0.78rem; color: var(--color-text-light); margin-top: 1.5rem; }

/* ---- Alerts ---- */
.alert { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.88rem; border: 1px solid transparent; }
.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border-color: #bee5eb; }

/* ---- Success Box ---- */
.success-box { display: none; background: #d4edda; border: 2px solid var(--color-success); border-radius: var(--radius); padding: 1.4rem 1.6rem; text-align: center; margin-bottom: 1.2rem; }
.success-box .folio-display { font-size: 1.8rem; font-weight: 800; color: var(--color-success); letter-spacing: 0.05em; margin: 0.5rem 0; }

/* ---- Comprobante imprimible ---- */
.comprobante-print { display: none; }
.comprobante-header { display: flex; align-items: center; gap: 1rem; border-bottom: 3px solid var(--color-primario); padding-bottom: 0.8rem; margin-bottom: 1.2rem; }
.comprobante-logo { height: 56px; width: auto; }
.comprobante-institucion { font-size: 1rem; font-weight: 700; color: var(--color-primario); }
.comprobante-titulo { font-size: 0.9rem; color: var(--color-text-light); margin-top: 0.1rem; }
.comprobante-folio { font-size: 1.4rem; font-weight: 800; color: var(--color-primario); letter-spacing: 0.04em; margin-bottom: 1.2rem; }
.comprobante-tabla { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
.comprobante-tabla td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.comprobante-tabla td:first-child { color: var(--color-text-light); font-weight: 600; width: 40%; }
.comprobante-nota { font-size: 0.82rem; color: var(--color-text-light); }

@media print {
    body * { visibility: hidden; }
    #comprobanteImprimir, #comprobanteImprimir * { visibility: visible; }
    #comprobanteImprimir { display: block; position: absolute; top: 0; left: 0; width: 100%; padding: 1.5rem; }
    .navbar, .page-header, #successBox, .card, .site-footer { display: none !important; }
}

/* ---- Mapa ---- */
#mapa, #mapaRegistro { width: 100%; border-radius: var(--radius); border: 2px solid var(--color-border); }
#mapa { height: 520px; }
#mapaRegistro { height: 320px; }
.mapa-leyenda { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0.7rem 0; font-size: 0.84rem; align-items: center; }
.leyenda-item { display: flex; align-items: center; gap: 0.4rem; }
.leyenda-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 2px solid rgba(0,0,0,0.2); }
.leyenda-icono {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%; font-size: 13px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3); border: 2px solid #fff; position: relative;
}
.leyenda-icono--reparado { filter: grayscale(0.85) opacity(0.55); }
.leyenda-check {
    position: absolute; bottom: -4px; right: -4px; width: 13px; height: 13px;
    border-radius: 50%; background: #22c55e; border: 1.5px solid #fff;
    display: flex; align-items: center; justify-content: center; font-size: 8px;
    filter: none;
}

/* Marcadores del mapa (divIcon) */
.mapa-marker-wrap { position: relative; width: 30px; height: 30px; }
.mapa-marker {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.4); border: 2px solid #fff;
}
.mapa-marker--reparado { filter: grayscale(0.85) opacity(0.55); }
.mapa-marker-check {
    position: absolute; bottom: -3px; right: -3px; width: 16px; height: 16px;
    border-radius: 50%; background: #22c55e; border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center; font-size: 9px;
}

/* ---- Dashboard ---- */
.dash-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.2rem; align-items: start; }

/* ---- Page Header ---- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; flex-wrap: wrap; gap: 0.6rem; }
.page-header h1 { font-size: 1.35rem; font-weight: 800; color: var(--color-primario); letter-spacing: -0.01em; }

/* ---- Preview de fotos ---- */
.foto-preview { display: none; width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--color-border); margin-top: 8px; }
.foto-preview.visible { display: block; }

/* ---- Boton de foto personalizado (input nativo oculto pero funcional) ---- */
.foto-upload { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.foto-input-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.foto-filename { font-size: 0.85rem; color: var(--color-text-light); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .navbar-menu { display: none; position: fixed; top: var(--navbar-height); left: 0; right: 0; background: var(--color-secundario); flex-direction: column; align-items: stretch; padding: 0.8rem; gap: 0.3rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    .navbar-menu.open { display: flex; }
    .nav-link { padding: 0.6rem 1rem; font-size: 0.95rem; }
    .nav-user { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 0.7rem; margin-left: 0; flex-direction: column; align-items: flex-start; }
    .page-content { padding: 1rem 0.7rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .modal-detail-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .navbar-title { display: none; }
    #mapa { height: 360px; }
    #mapaRegistro { height: 260px; }
    .gps-group { flex-direction: column; align-items: stretch; }
    .gps-group .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-box { padding: 1.6rem 1.2rem; }
    .pagination { justify-content: center; }
}
