/* ========================= */
/* RESET */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* ========================= */
/* FONDO GLOBAL */
/* ========================= */
body {
    background: url('../img/fondo.png') no-repeat center center/cover;
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* CAPA OSCURA PARA CONTRASTE */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 0;
    pointer-events: none;
}

/* ========================= */
/* CONTENEDOR */
/* ========================= */
.contenedor {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    padding: 35px;
    border-radius: 18px;
    width: 480px;
    max-width: 95%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    border: 1px solid rgba(168,85,247,0.2);
}

/* ========================= */
/* TITULOS */
/* ========================= */
.titulo {
    text-align: center;
    margin-bottom: 10px;
    font-size: 26px;
    color: #a3e635;
}

.subtitulo {
    text-align: center;
    font-size: 14px;
    color: #cbd5f5;
    margin-bottom: 25px;
}

/* ========================= */
/* FORMULARIO */
/* ========================= */
.formulario .grupo {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-size: 14px;
    color: #cbd5f5;
}

/* ========================= */
/* INPUTS */
/* ========================= */
input, select, textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    outline: none;
    background: rgba(2,6,23,0.9);
    color: #fff;
    transition: all 0.25s ease;
}

input:focus, select:focus, textarea:focus {
    border: 1px solid #a855f7;
    box-shadow: 0 0 10px rgba(168,85,247,0.6);
    transform: scale(1.01);
}

/* ========================= */
/* CHECKBOX */
/* ========================= */
.checkbox {
    flex-direction: row;
    align-items: center;
}

.checkbox input {
    margin-right: 10px;
    accent-color: #a855f7;
}

/* ========================= */
/* BOTÓN */
/* ========================= */
.btn-enviar {
    background: linear-gradient(135deg, #a855f7, #a3e635);
    color: #000;
    border: none;
    padding: 13px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 20px rgba(168,85,247,0.6);
}
.btn-consulta {
    background: #007bff;
    color: white;
    padding: 6px 14px; /* 🔥 más pequeño */
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-consulta:hover {
    background: #0056b3;
}
/* ========================= */
/* DROP AREA */
/* ========================= */
.drop-area {
    border: 2px dashed rgba(168,85,247,0.5);
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(15,23,42,0.6);
}

.drop-area:hover {
    background: rgba(168,85,247,0.1);
    border-color: #a3e635;
}

.drop-area.activo {
    border-color: #a3e635;
    background: rgba(163,230,53,0.1);
}

/* ========================= */
/* LISTA ARCHIVOS */
/* ========================= */
.preview {
    margin-top: 12px;
}

.item-archivo {
    background: rgba(2,6,23,0.9);
    padding: 10px;
    border-radius: 8px;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* ========================= */
/* COMPROBANTE */
/* ========================= */
body.comprobante-body {
    background: url('../img/fondo.png') no-repeat center center/cover;
    padding: 20px;
}

/* ========================= */
/* DOCUMENTO BLANCO  */
/* ========================= */
.documento {
    width: 900px;
    max-width: 95%;
    margin: auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    color: #000;
    border: 1px solid #ddd;
    position: relative;
    z-index: 1;
}

/* LOGO */
.doc-logo {
    text-align: center;
    margin-bottom: 10px;
}

.doc-logo img {
    width: 160px;
    max-width: 100%;
}

/* CODIGO */
.doc-codigo {
    text-align: center;
    font-size: 20px;
    margin: 10px 0 20px;
    font-weight: bold;
    color: #000;
}

/* INPUT COPIABLE */
.doc-codigo input {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    text-align: center;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    cursor: pointer;
}

/* TEXTO */
.doc-texto {
    font-size: 14px;
    text-align: justify;
    margin-bottom: 20px;
    color: #000;
}

/* TABLA */
.doc-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    color: #000;
}

.doc-tabla th, .doc-tabla td {
    border: 1px solid #ccc;
    padding: 10px;
}

.doc-tabla th {
    background: #f1f5f9;
    font-weight: bold;
}

/* BOTON */
.doc-btn {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(135deg, #a855f7, #a3e635);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.doc-btn:hover {
    box-shadow: 0 0 15px rgba(168,85,247,0.6);
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */

/* --- Tablet (≤ 768px) --- */
@media (max-width: 768px) {

    /* Formulario / login / verificar */
    .contenedor {
        padding: 24px 20px;
        width: 100%;
        border-radius: 14px;
    }

    .titulo { font-size: 22px; }

    input, select, textarea {
        font-size: 16px; /* evita zoom en iOS */
    }

    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-consulta, .btn-acceso {
        text-align: center;
        padding: 10px;
    }

    /* Comprobante */
    .documento {
        padding: 20px;
        border-radius: 12px;
    }
    .doc-codigo { font-size: 18px; }
    .doc-texto  { font-size: 13px; }
    .doc-tabla  { font-size: 12px; }
    .doc-tabla th, .doc-tabla td { padding: 8px 6px; }

    /* Drop zone */
    .drop-area { padding: 18px; }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 480px) {

    body { align-items: flex-start; padding-top: 20px; }

    .contenedor {
        padding: 20px 16px;
        margin: 0 8px 24px;
        border-radius: 12px;
    }

    .titulo    { font-size: 19px; }
    .subtitulo { font-size: 12px; }

    .login-logo img { width: 90px; }

    .doc-logo img  { width: 110px; }
    .doc-codigo    { font-size: 15px; }

    /* Tabla comprobante: scroll horizontal */
    .documento { overflow-x: auto; }
    .doc-tabla { min-width: 500px; }

    /* Botones inferiores del formulario */
    .btn-row {
        flex-direction: column;
        gap: 8px;
    }
    .btn-consulta, .btn-acceso {
        width: 100%;
        text-align: center;
        padding: 11px;
        font-size: 14px;
    }
}

/* =========================
   TABLA DENUNCIAS (DARK UI)
========================= */

.tabla-denuncia {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(2,6,23,0.9);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168,85,247,0.2);
}

/* ENCABEZADO */
.tabla-denuncia thead {
    background: rgba(168,85,247,0.2);
}

.tabla-denuncia th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    color: #a3e635;
    font-weight: 600;
}

/* FILAS */
.tabla-denuncia td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: #e2e8f0;
}

/* HOVER */
.tabla-denuncia tr:hover {
    background: rgba(168,85,247,0.08);
}

/* =========================
   ESTADOS (INTEGRADOS)
========================= */

.estado {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

/* Pendiente */
.estado.pendiente {
    background: rgba(251,191,36,0.2);
    color: #facc15;
}

/* En proceso */
.estado.proceso {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
}

/* Resuelto */
.estado.resuelto {
    background: rgba(34,197,94,0.2);
    color: #4ade80;
}

/* fallback */
.estado {
    background: rgba(148,163,184,0.2);
    color: #cbd5f5;
}

/* =========================
   BOTÓN ACCESO
========================= */
.btn-acceso {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-acceso:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 0 12px rgba(124,58,237,0.5);
}

/* =========================
   BOTÓN VOLVER (LOGIN)
========================= */
.btn-volver {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-volver:hover { color: #a3e635; }

/* =========================
   LOGIN: logo
========================= */
.login-logo {
    text-align: center;
    margin-bottom: 16px;
}
.login-logo img {
    width: 110px;
    max-width: 100%;
}

/* =========================
   ALERTA ERROR
========================= */
.alerta-error {
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.4);
    color: #f87171;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* =========================
   PANEL ADMIN — LAYOUT
========================= */
body.admin-body {
    background: #080c12;
    display: block;
    min-height: 100vh;
    padding: 0;
    align-items: unset;
    justify-content: unset;
}
body.admin-body::before { display: none; }

.admin-wrapper { display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: #0f1318;
    border-right: 1px solid rgba(168,85,247,0.15);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* Brand */
.sidebar-logo {
    padding: 22px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb-brand-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #7c3aed, #a3e635);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sb-brand-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px 0;
    overflow-y: auto;
}
.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 1px;
    padding: 0 10px;
    margin-bottom: 8px;
    margin-top: 4px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    transition: 0.18s;
    margin-bottom: 2px;
}
.nav-item:hover {
    background: rgba(168,85,247,0.1);
    color: #cbd5e1;
}
.nav-item.active {
    background: rgba(168,85,247,0.18);
    color: #e2e8f0;
    font-weight: 600;
}
.nav-item.active .nav-icon { filter: none; }
.nav-icon { font-size: 15px; }

/* Footer / user */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.sb-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sb-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.sb-user-info { overflow: hidden; }
.sb-user-name {
    font-size: 13px; font-weight: 600; color: #cbd5e1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-user-email {
    font-size: 10px; color: #475569;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-logout {
    display: block; text-align: center;
    padding: 8px; border-radius: 7px;
    background: rgba(220,38,38,0.12);
    color: #f87171; text-decoration: none;
    font-size: 12px; font-weight: 500;
    transition: 0.18s;
    border: 1px solid rgba(220,38,38,0.15);
}
.btn-logout:hover {
    background: rgba(220,38,38,0.22);
    border-color: rgba(220,38,38,0.35);
}

/* ---- MAIN ---- */
.admin-main {
    flex: 1;
    padding: 32px 36px;
    overflow-x: auto;
    color: #e2e8f0;
    min-width: 0;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-title {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 3px;
}
.admin-subtitle { font-size: 13px; color: #475569; }

/* ---- PANEL CARD ---- */
.panel-card {
    background: #0f1318;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px 24px;
}
.panel-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* ---- FORM INLINE ---- */
.form-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.form-inline-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 220px;
}
.form-inline-group label {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* ---- STATS ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: #0f1318;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}
.stat-card:hover { border-color: rgba(168,85,247,0.25); }
.stat-icon { font-size: 20px; margin-bottom: 8px; }
.stat-num  { font-size: 30px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 11px; color: #475569; margin-top: 5px; letter-spacing: 0.3px; }

.stat-total     .stat-num { color: #e2e8f0; }
.stat-pendiente .stat-num { color: #facc15; }
.stat-proceso   .stat-num { color: #60a5fa; }
.stat-resuelto  .stat-num { color: #4ade80; }

/* ---- FILTROS ---- */
.filtros-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.filtro-input {
    flex: 1;
    min-width: 200px;
    padding: 9px 13px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
    background: #080c12;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    transition: 0.18s;
}
.filtro-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}
.filtro-select {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
    background: #080c12;
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: 0.18s;
}
.filtro-select:focus { border-color: #a855f7; }

.btn-filtrar {
    padding: 9px 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.18s;
    white-space: nowrap;
}
.btn-filtrar:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-limpiar {
    padding: 9px 14px;
    background: rgba(220,38,38,0.1);
    color: #f87171;
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.18s;
    white-space: nowrap;
}
.btn-limpiar:hover { background: rgba(220,38,38,0.2); }

/* ---- TABLA ADMIN ---- */
.admin-table-wrap {
    background: #0f1318;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    overflow-x: auto;
}
.admin-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-tabla thead { background: rgba(168,85,247,0.08); }
.admin-tabla th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11px;
    color: #a3e635;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}
.admin-tabla td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.035);
    color: #cbd5e1;
    vertical-align: middle;
}
.admin-tabla tr:last-child td { border-bottom: none; }
.admin-tabla tbody tr:hover td { background: rgba(168,85,247,0.04); }

.td-num { color: #334155; width: 36px; text-align: center; }
.td-codigo code {
    font-size: 11px;
    background: rgba(163,230,53,0.08);
    padding: 3px 8px;
    border-radius: 5px;
    color: #a3e635;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.td-desc {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
}
.td-fecha { white-space: nowrap; color: #475569; font-size: 12px; }

/* ---- BADGES ---- */
.badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}
.b-pend { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.b-proc { background: rgba(59,130,246,0.12);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2);  }
.b-res  { background: rgba(34,197,94,0.12);   color: #4ade80; border: 1px solid rgba(34,197,94,0.2);   }
.b-anon { background: rgba(251,191,36,0.1);   color: #fbbf24; border: 1px solid rgba(251,191,36,0.15); }
.b-iden { background: rgba(96,165,250,0.1);   color: #60a5fa; border: 1px solid rgba(96,165,250,0.15); }

/* ---- LINK EVIDENCIAS ---- */
.ev-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(168,85,247,0.12);
    color: #c084fc;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(168,85,247,0.2);
    transition: 0.18s;
    white-space: nowrap;
}
.ev-link:hover {
    background: rgba(168,85,247,0.22);
    color: #e9d5ff;
}

/* ---- SELECT + BTN EN TABLA ---- */
.select-estado {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #080c12;
    color: #e2e8f0;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}
.btn-guardar-estado {
    padding: 5px 11px;
    background: rgba(168,85,247,0.15);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.18s;
    white-space: nowrap;
}
.btn-guardar-estado:hover:not(:disabled) {
    background: rgba(168,85,247,0.3);
    color: #fff;
}
.btn-guardar-estado:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- ACT-BTN (tabla usuarios) ---- */
.act-btn {
    padding: 5px 11px;
    background: rgba(168,85,247,0.12);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.22);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.18s;
}
.act-btn:hover { background: rgba(168,85,247,0.25); color: #fff; }

/* ---- TABLA VACÍA ---- */
.tabla-vacia {
    padding: 56px 24px;
    text-align: center;
    color: #334155;
    font-size: 14px;
}

/* ---- INFO GRID (evidencias) ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 11px; color: #475569; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.info-value { font-size: 13px; color: #cbd5e1; word-break: break-all; }

/* ---- EVIDENCIAS GRID ---- */
.evidencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.ev-card {
    background: #0f1318;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.18s;
}
.ev-card:hover { border-color: rgba(168,85,247,0.3); }
.ev-icon { font-size: 28px; flex-shrink: 0; }
.ev-info { flex: 1; overflow: hidden; }
.ev-nombre {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
}
.ev-ext {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.ev-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(168,85,247,0.15);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.18s;
    white-space: nowrap;
}
.ev-btn:hover { background: rgba(168,85,247,0.28); color: #fff; }

/* ---- ALERTAS ---- */
.alerta-ok {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #4ade80;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ---- TOAST ---- */
.toast {
    position: fixed;
    bottom: 28px; right: 28px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    transition: opacity 0.35s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    pointer-events: none;
}
.toast.hidden { opacity: 0; }
.toast.ok    { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); opacity:1; }
.toast.error { background: rgba(220,38,38,0.15);  color: #f87171; border: 1px solid rgba(220,38,38,0.3); opacity:1; }

/* ---- RESPONSIVE ADMIN ---- */

/* Tablet (≤ 960px): ocultar sidebar, ajustar padding */
@media (max-width: 960px) {
    .admin-sidebar { display: none; }
    .admin-main    { padding: 20px 16px; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }

    /* Filtros apilados */
    .filtros-row   { flex-direction: column; align-items: stretch; }
    .filtro-input,
    .filtro-select { width: 100%; }

    /* Tabla: scroll horizontal */
    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-tabla      { min-width: 700px; }

    /* Evidencias */
    .evidencias-grid  { grid-template-columns: repeat(2, 1fr); }

    /* Info grid */
    .info-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    .stats-grid   { grid-template-columns: 1fr 1fr; gap: 10px; }
    .admin-main   { padding: 14px 12px; }
    .admin-title  { font-size: 18px; }
    .admin-header { margin-bottom: 18px; }

    /* Panel card */
    .panel-card   { padding: 14px 14px; }

    /* Form inline usuarios: apilado */
    .form-inline          { flex-direction: column; }
    .form-inline-group    { min-width: unset; width: 100%; }
    .form-inline .btn-filtrar { width: 100%; }

    /* Tabla aún más angosta */
    .admin-tabla { min-width: 560px; }

    /* Evidencias */
    .evidencias-grid { grid-template-columns: 1fr; }
    .ev-card         { flex-wrap: wrap; }
    .ev-btn          { width: 100%; text-align: center; margin-top: 8px; }

    /* Info grid */
    .info-grid { grid-template-columns: 1fr; }

    /* Toast más pequeño */
    .toast { bottom: 12px; right: 12px; left: 12px; text-align: center; font-size: 12px; }

    /* Cambiar estado en tabla: apilado */
    .select-estado    { width: 100%; margin-bottom: 6px; }
    .btn-guardar-estado { width: 100%; }
}

/* Mobile pequeño (≤ 400px) */
@media (max-width: 400px) {
    .stats-grid  { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-num    { font-size: 24px; }
    .stat-icon   { font-size: 16px; }
}

/* =========================
   RECAPTCHA — centrado
========================= */
.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* En pantallas muy pequeñas, escalar para que no desborde */
@media (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.88);
        transform-origin: center;
    }
}
