/* ====================================================================== */
/* 🎨 ESTILOS GLOBALES — CANAL DE DENUNCIAS                               */
/* ====================================================================== */

/* RESET BÁSICO */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --brand-color: #2563eb;
    --brand-color-hover: #1d4ed8;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    background: #f3f4f6;
    color: #1f2937;
}

/* Dark mode */

/* ====================================================================== */
/* TIPOGRAFÍA                                                              */
/* ====================================================================== */

h1, h2, h3 { font-weight: 700; margin-bottom: 14px; text-align: left; }
h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

a { text-decoration: none; color: var(--brand-color); }
a:hover { text-decoration: underline; }

p { line-height: 1.5; margin-bottom: 12px; }

/* ====================================================================== */
/* TARJETAS                                                                */
/* ====================================================================== */

.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    animation: fadeIn .4s ease;
    text-align: center;
}

/* ====================================================================== */
/* ANIMACIONES                                                             */
/* ====================================================================== */

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

.animate-fade { animation: fadeIn .4s ease; }

/* ====================================================================== */
/* FORMULARIOS                                                             */
/* ====================================================================== */

label {
    display: block;
    margin: 18px 0 6px;
    font-weight: 600;
    font-size: 15px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    box-sizing: border-box;
}

textarea { height: 150px; }

input[type="file"] { padding: 6px; }
input[type="checkbox"] { width: auto; }

/* Campo deshabilitado */
.fecha-fija {
    background: #e5e7eb;
    border: 1px solid #cbd5e1;
    color: #111;
    cursor: not-allowed;
}

/* Empresa fija (no editable) */
.empresa-fija {
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-color);
    margin: 0;
}

/* Checkbox en línea */
.anon-linea {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ====================================================================== */
/* BOTONES                                                                 */
/* ====================================================================== */

button, .btn {
    padding: 12px 18px;
    background: var(--brand-color);
    color: white !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    text-decoration: none !important;
    margin-top: 16px;
    transition: background .2s ease;
}

button:hover, .btn:hover { background: var(--brand-color-hover); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-block { width: 100%; text-align: center; display: block; }

/* ====================================================================== */
/* BADGES DE ESTADO                                                        */
/* ====================================================================== */

.estado-badge, .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.recibida   { background: #fef9c3; border: 1px solid #fde047; color: #854d0e; }
.proceso    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }
.finalizada { background: #dcfce7; border: 1px solid #86efac; color: #166534; }

/* ====================================================================== */
/* CHAT / MENSAJES                                                         */
/* ====================================================================== */

.chat-box {
    margin-top: 22px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.chat-box h4 { margin-bottom: 16px; font-size: 18px; font-weight: 700; }

.msg {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.msg-body { background: white; padding: 12px; border-radius: 10px; }

.msg-date { margin-top: 6px; font-size: 11px; color: #6b7280; }

.bur-denunciante { border-left: 5px solid var(--brand-color); }
.bur-empresa     { border-left: 5px solid #059669; }

/* Mensaje de sistema */
.msg.system {
    border: none;
    background: transparent !important;
    padding: 0;
    margin: 26px 0;
    text-align: center;
}

.msg.system .linea { height: 2px; width: 100%; background: #4b5563; margin-bottom: 6px; }
.msg.system .texto { font-size: 11px; font-weight: 700; color: #374151; margin-bottom: 4px; }
.msg.system .fecha { font-size: 11px; color: #6b7280; }

.texto-sistema { font-weight: 700; }

/* ====================================================================== */
/* CÓDIGOS DE DENUNCIA                                                     */
/* ====================================================================== */

.code {
    font-family: monospace;
    background: #111;
    color: #0f0;
    padding: 5px 10px;
    border-radius: 8px;
    letter-spacing: 2px;
    font-size: 15px;
}

/* Versión grande en página de confirmación */
.code-box {
    font-size: 38px;
    letter-spacing: 3px;
    background: black;
    color: #0f0;
    padding: 14px 30px;
    display: inline-block;
    border-radius: 10px;
    margin: 20px 0;
    font-family: monospace;
}

/* ====================================================================== */
/* ICONOS DECORATIVOS                                                      */
/* ====================================================================== */

.icon-top { font-size: 26px; text-align: center; margin-bottom: 12px; }
.icon-lg  { font-size: 52px; margin-bottom: 16px; }
.icon-xl  { font-size: 64px; margin-bottom: 14px; }

/* ====================================================================== */
/* COMPONENTES DE PÁGINA                                                   */
/* ====================================================================== */

/* Login */
.logo  { font-size: 48px; margin-bottom: 8px; }
.title { font-size: 26px; font-weight: 800; margin-bottom: 25px; }

.links { margin-top: 24px; font-size: 11px; text-align: center; }
.links a { color: var(--brand-color); font-weight: 600; }

/* Panel de empresa */
.logout { text-align: right; margin-bottom: 22px; }
.logout a { color: var(--brand-color); text-decoration: none; font-weight: 600; }

/* Textos auxiliares */
.hint  { font-size: 11px; color: #6b7280; margin-top: 6px; line-height: 1.4; }
.alerta { font-size: 11px; color: #b91c1c; font-weight: 600; margin-top: 12px; }
.nota  { font-size: 15px; color: #475569; margin-top: 24px; }
.meta  { font-size: 11px; color: #6b7280; margin-top: 12px; }

.desc {
    max-width: 650px;
    margin: 0 auto 30px auto;
    text-align: center;
    line-height: 1.5;
    font-size: 15px;
    color: #4b5563;
}

/* ====================================================================== */
/* SEPARADORES                                                             */
/* ====================================================================== */

hr { border: none; border-top: 1px solid #e5e7eb; margin: 28px 0; }

/* ====================================================================== */
/* RESPONSIVE                                                              */
/* ====================================================================== */

@media (max-width: 600px) {
    body { padding: 0 12px; margin: 20px auto; }
    .card { padding: 16px; }
    h1 { font-size: 26px; }
    h2 { font-size: 24px; }
    .code-box { font-size: 26px; padding: 10px 18px; }
}

/* ====================================================================== */
/* EMPRESA FIJA (crear-denuncia) — nombre no editable                     */
/* ====================================================================== */

.empresa-fija {
    padding: 10px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    cursor: default;
    user-select: none;
}

/* ====================================================================== */
/* PERSONALIZACION VISUAL DEL FORMULARIO PUBLICO                          */
/* ====================================================================== */

.brand-logo-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.brand-logo {
    max-width: 260px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

.contacto-footer {
    margin-top: 24px;
}

.contacto-footer h3 {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: left;
}

.contacto-footer-desc {
    margin-bottom: 22px;
    text-align: left;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.contacto-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.contacto-item-direccion {
    grid-column: auto;
}

.contacto-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
}

.contacto-value {
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.contacto-value a {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 600;
}

.contacto-value a:hover {
    text-decoration: underline;
}

/* ====================================================================== */
/* ADMIN-USUARIOS.PHP — ESTILOS AISLADOS                                  */
/* ====================================================================== */

body.admin-users-page {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 28px 48px;
    background: #f3f4f6;
    color: #0f172a;
}

.admin-users-page .au-shell {
    width: 100%;
}

.admin-users-page .au-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.admin-users-page .au-topbar-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-users-page .au-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-users-page .au-nav-link:hover {
    text-decoration: none;
    background: #eff6ff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.admin-users-page .au-nav-link.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.admin-users-page .au-session-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.admin-users-page .au-session-label {
    color: #64748b;
}

.admin-users-page .au-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.admin-users-page .au-title {
    margin: 0 0 4px;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: left;
    color: #0f172a;
}

.admin-users-page .au-subtitle {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.admin-users-page .au-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
}

.admin-users-page .au-alert {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.admin-users-page .au-alert-ok {
    background: #ecfdf3;
    border-color: #a7f3d0;
    color: #166534;
}

.admin-users-page .au-alert-err {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.admin-users-page .au-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 3px 14px rgba(15,23,42,0.05);
}

.admin-users-page .au-form-card,
.admin-users-page .au-groups-card {
    padding: 22px 24px;
}

.admin-users-page .au-form-card {
    margin-bottom: 28px;
}

.admin-users-page .au-card-head {
    margin-bottom: 14px;
}

.admin-users-page .au-groups-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-users-page .au-groups-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-users-page .au-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.admin-users-page .au-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
    color: #0f172a;
    font-weight: 700;
}

.admin-users-page .au-card-text {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.admin-users-page .au-form-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1.3fr 0.9fr;
    gap: 10px;
    align-items: end;
}

.admin-users-page .au-form-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.admin-users-page .au-field {
    margin: 0;
}

.admin-users-page .au-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.admin-users-page .au-required {
    color: #dc2626;
}

.admin-users-page .au-field-help {
    font-weight: 400;
    color: #64748b;
    font-size: 11px;
}

.admin-users-page .au-field input,
.admin-users-page .au-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    color: #0f172a;
}

.admin-users-page .au-field input:focus,
.admin-users-page .au-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.admin-users-page .au-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
    margin-top: 0;
}

.admin-users-page .au-btn:hover {
    transform: translateY(-1px);
}

 .admin-users-page .au-btn-sm {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.admin-users-page .au-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
}

.admin-users-page .au-btn-primary:hover {
    background: #1d4ed8;
}

.admin-users-page .au-btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155 !important;
}

.admin-users-page .au-btn-secondary:hover {
    background: #f8fafc;
}

.admin-users-page .au-btn-password {
    background: #fff7d6;
    border-color: #f6d96b;
    color: #8a5a00 !important;
}

.admin-users-page .au-btn-password:hover {
    background: #ffefad;
}

.admin-users-page .au-btn-role {
    background: #e0ecff;
    border-color: #9ec0ff;
    color: #1d4ed8 !important;
}

.admin-users-page .au-btn-role:hover {
    background: #cfe0ff;
}

.admin-users-page .au-btn-delete {
    background: #ffe3e3;
    border-color: #f9b5b5;
    color: #b42318 !important;
}

.admin-users-page .au-btn-delete:hover {
    background: #ffd0d0;
}

.admin-users-page .au-accordion-list {
    display: grid;
    gap: 16px;
}

.admin-users-page .au-company-group {
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    background: #f8fafc;
    overflow: hidden;
}

.admin-users-page .au-company-group[open] {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #dfe7f1;
}

.admin-users-page .au-company-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    cursor: pointer;
    user-select: none;
}

.admin-users-page .au-company-summary::-webkit-details-marker {
    display: none;
}

.admin-users-page .au-company-summary-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.admin-users-page .au-company-chevron {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: transform .15s ease;
    flex: 0 0 auto;
}

.admin-users-page .au-company-group[open] .au-company-chevron {
    transform: rotate(45deg);
}

.admin-users-page .au-company-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.admin-users-page .au-company-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
}

.admin-users-page .au-company-summary-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.admin-users-page .au-summary-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid transparent;
}

.admin-users-page .au-summary-badge-admin {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.admin-users-page .au-summary-badge-gestor {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.admin-users-page .au-company-body {
    padding: 0 16px 16px;
}

.admin-users-page .au-user-list {
    display: grid;
    gap: 10px;
}

.admin-users-page .au-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto minmax(260px, auto);
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    background: #ffffff;
}

.admin-users-page .au-user-row.is-self {
    background: #eef4ff;
    border-color: #c9dafd;
}

.admin-users-page .au-user-main {
    min-width: 0;
}

.admin-users-page .au-user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.admin-users-page .au-user-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    word-break: break-word;
}

.admin-users-page .au-self-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
}

.admin-users-page .au-user-meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.admin-users-page .au-user-role-col {
    display: flex;
    justify-content: flex-start;
}

.admin-users-page .au-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid transparent;
}

.admin-users-page .au-role-badge.is-admin {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.admin-users-page .au-role-badge.is-gestor {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.admin-users-page .au-user-actions-col {
    display: flex;
    justify-content: flex-start;
}

.admin-users-page .au-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-users-page .au-inline-form {
    margin: 0;
}

.admin-users-page .au-no-actions {
    display: inline-block;
    color: #64748b;
    font-size: 11px;
}

.admin-users-page .au-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15,23,42,0.56);
    padding: 16px;
}

.admin-users-page .au-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-users-page .au-modal-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15,23,42,0.22);
    padding: 24px;
}

.admin-users-page .au-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-users-page .au-modal-title {
    margin: 0;
    font-size: 24px;
    text-align: left;
}

.admin-users-page .au-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.admin-users-page .au-modal-text {
    margin: 0 0 16px;
    color: #475569;
}

.admin-users-page .au-modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

@media (max-width: 1080px) {
    .admin-users-page .au-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-users-page .au-user-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .admin-users-page .au-user-actions-col {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body.admin-users-page {
        padding: 0 14px 28px;
    }

    .admin-users-page .au-hero,
    .admin-users-page .au-groups-head,
    .admin-users-page .au-company-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-users-page .au-title {
        font-size: 31px;
    }

    .admin-users-page .au-subtitle {
        font-size: 16px;
    }

    .admin-users-page .au-form-card,
    .admin-users-page .au-groups-card {
        padding: 16px;
    }

    .admin-users-page .au-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-users-page .au-company-summary {
        padding: 16px;
    }

    .admin-users-page .au-company-body {
        padding: 0 12px 12px;
    }

    .admin-users-page .au-user-row {
        padding: 14px;
    }

    .admin-users-page .au-action-row {
        justify-content: flex-start;
    }
}

/* ====================================================================== */
/* ADMIN EMPRESAS                                                         */
/* ====================================================================== */

body.admin-companies-page {
    max-width: 1280px;
    padding: 28px 28px 48px;
    margin: 0 auto;
    background: #f3f4f6;
    color: #0f172a;
}

.admin-companies-page .ae-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-companies-page .ae-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-companies-page .ae-topbar-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-companies-page .ae-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-companies-page .ae-nav-link:hover {
    text-decoration: none;
    background: #eff6ff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.admin-companies-page .ae-nav-link.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.admin-companies-page .ae-session-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.admin-companies-page .ae-session-label { color: #64748b; }

.admin-companies-page .ae-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.admin-companies-page .ae-title {
    margin: 0 0 4px;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: left;
    color: #0f172a;
}

.admin-companies-page .ae-subtitle {
    margin: 0;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    color: #64748b;
}

.admin-companies-page .ae-hero-side {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-companies-page .ae-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 11px;
}

.admin-companies-page .ae-hero-pill.is-muted {
    background: #e2e8f0;
    color: #475569;
}

.admin-companies-page .ae-alert {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
}

.admin-companies-page .ae-alert-ok {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.admin-companies-page .ae-alert-err {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.admin-companies-page .ae-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.admin-companies-page .ae-form-card,
.admin-companies-page .ae-list-card {
    padding: 22px 24px;
}

.admin-companies-page .ae-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

 .admin-companies-page .ae-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.admin-companies-page .ae-card-text {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.admin-companies-page .ae-editing-chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
}

.admin-companies-page .ae-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px 14px;
}

.admin-companies-page .ae-field { min-width: 0; }
 .admin-companies-page .ae-field-name { grid-column: span 12; }
.admin-companies-page .ae-field-email { grid-column: span 6; }
.admin-companies-page .ae-field-person { grid-column: span 6; }
.admin-companies-page .ae-field-phone { grid-column: span 4; }
.admin-companies-page .ae-field-prefix { grid-column: span 4; }
.admin-companies-page .ae-field-address { grid-column: span 12; }
.admin-companies-page .ae-field-color { grid-column: span 4; }
.admin-companies-page .ae-field-logo { grid-column: span 8; }
.admin-companies-page .ae-form-actions { grid-column: 1 / -1; }

.admin-companies-page .ae-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.admin-companies-page .ae-required { color: #ef4444; }

.admin-companies-page .ae-field-help {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
}

.admin-companies-page .ae-lock-note {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 600;
}

.admin-companies-page .ae-field input[type="text"],
.admin-companies-page .ae-field input[type="email"],
.admin-companies-page .ae-field input[type="file"],
.admin-companies-page .ae-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.admin-companies-page .ae-field textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-companies-page .ae-field input[type="text"]:focus,
.admin-companies-page .ae-field input[type="email"]:focus,
.admin-companies-page .ae-field textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-companies-page .ae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
    margin-top: 0;
}

.admin-companies-page .ae-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.admin-companies-page .ae-btn-sm {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
}

.admin-companies-page .ae-btn-primary {
    background: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.admin-companies-page .ae-btn-primary:hover { background: #1d4ed8; }

.admin-companies-page .ae-btn-secondary {
    background: #eaf2ff;
    border-color: #bfd4ff;
    color: #1d4ed8 !important;
}

.admin-companies-page .ae-btn-secondary:hover { background: #dbeafe; }

.admin-companies-page .ae-btn-neutral {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #334155 !important;
}

.admin-companies-page .ae-btn-neutral:hover { background: #dbe1e8; }

.admin-companies-page .ae-btn-warn {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e !important;
}

.admin-companies-page .ae-btn-warn:hover { background: #fde68a; }

.admin-companies-page .ae-btn-success {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534 !important;
}

.admin-companies-page .ae-btn-success:hover { background: #bbf7d0; }

.admin-companies-page .ae-inline-form { display: inline-flex; }

.admin-companies-page .ae-color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-companies-page .ae-color-swatch {
    position: relative;
    width: 76px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
    overflow: hidden;
    cursor: pointer;
}

.admin-companies-page .ae-color-swatch input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-companies-page .ae-color-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-companies-page .ae-color-code {
    min-width: 104px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
}

.admin-companies-page .ae-logo-current { margin-top: 12px; }

.admin-companies-page .ae-logo-preview-wrap {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 164px;
    min-height: 78px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
}

.admin-companies-page .ae-logo-preview {
    max-width: 220px;
    max-height: 58px;
    object-fit: contain;
    display: block;
}

.admin-companies-page .ae-checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
    color: #334155;
}

.admin-companies-page .ae-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.admin-companies-page .ae-list-head {
    margin-bottom: 14px;
}

.admin-companies-page .ae-list-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-companies-page .ae-summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.admin-companies-page .ae-group-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-companies-page .ae-company-section.is-muted { opacity: .93; }

.admin-companies-page .ae-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-companies-page .ae-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.admin-companies-page .ae-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

.admin-companies-page .ae-empty-state {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 15px;
}

.admin-companies-page .ae-company-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.admin-companies-page .ae-company-grid.ae-company-grid-inactive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-companies-page .ae-company-card {
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #ffffff;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.admin-companies-page .ae-company-card.is-inactive {
    background: #f8fafc;
    border-style: dashed;
}

.admin-companies-page .ae-company-main {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.admin-companies-page .ae-company-brand {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 320px;
}

.admin-companies-page .ae-logo-box {
    width: 76px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    flex-shrink: 0;
}

.admin-companies-page .ae-logo-box.is-empty {
    background: #f8fafc;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.admin-companies-page .ae-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.admin-companies-page .ae-company-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

 .admin-companies-page .ae-company-name {
    margin: 0;
    font-size: 21px;
    line-height: 1.20;
    font-weight: 700;
    color: #0f172a;
}

.admin-companies-page .ae-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 13px;
}

 .admin-companies-page .ae-company-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.admin-companies-page .ae-status-chip,
.admin-companies-page .ae-prefix-chip,
.admin-companies-page .ae-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}

.admin-companies-page .ae-status-chip.is-active {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.admin-companies-page .ae-status-chip.is-inactive {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.admin-companies-page .ae-prefix-chip {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    letter-spacing: .3px;
}

.admin-companies-page .ae-color-chip {
    background: #ffffff;
    border-color: #dbe3ef;
    color: #334155;
}

.admin-companies-page .ae-color-chip i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    display: inline-block;
}

.admin-companies-page .ae-color-chip.is-empty {
    background: #f8fafc;
    color: #94a3b8;
}

.admin-companies-page .ae-company-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-companies-page .ae-stat-box {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.admin-companies-page .ae-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .45px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
}

.admin-companies-page .ae-stat-value {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.admin-companies-page .ae-company-address {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    line-height: 1.50;
}

 .admin-companies-page .ae-company-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1180px) {
    .admin-companies-page .ae-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-companies-page .ae-field-name,
    .admin-companies-page .ae-field-email,
    .admin-companies-page .ae-field-phone,
    .admin-companies-page .ae-field-prefix,
    .admin-companies-page .ae-field-color,
    .admin-companies-page .ae-field-logo,
    .admin-companies-page .ae-field-address {
        grid-column: span 1;
    }

    .admin-companies-page .ae-company-grid,
    .admin-companies-page .ae-company-grid.ae-company-grid-inactive {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.admin-companies-page {
        padding: 20px 14px 36px;
    }

    .admin-companies-page .ae-title {
        font-size: 24px;
    }

    .admin-companies-page .ae-form-card,
    .admin-companies-page .ae-list-card {
        padding: 22px 18px;
    }

    .admin-companies-page .ae-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-companies-page .ae-field-name,
    .admin-companies-page .ae-field-email,
    .admin-companies-page .ae-field-phone,
    .admin-companies-page .ae-field-prefix,
    .admin-companies-page .ae-field-color,
    .admin-companies-page .ae-field-logo,
    .admin-companies-page .ae-field-address,
    .admin-companies-page .ae-form-actions {
        grid-column: auto;
    }

    .admin-companies-page .ae-company-main,
    .admin-companies-page .ae-company-brand {
        flex-direction: column;
    }

    .admin-companies-page .ae-company-tags {
        justify-content: flex-start;
    }

    .admin-companies-page .ae-company-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Ajuste fino final backend */
.admin-users-page .au-title,
.admin-companies-page .ae-title { font-family: inherit; }

/* ======================================================================
   PANEL.PHP — Listado de denuncias, dashboard, filtros y paginación
   ====================================================================== */
    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .panel-header h2 { margin: 0; }
    .usuario-info { font-size: 14px; color: #6b7280; }
    .usuario-info strong { color: #1f2937; }

    .panel-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .dashboard-wrap {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .dashboard-card {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 18px 18px;
        box-shadow: 0 2px 10px rgba(0,0,0,.04);
    }

    .dashboard-card h3 {
        margin: 0 0 14px 0;
        font-size: 16px;
        font-weight: 700;
        color: #111827;
    }

    .dashboard-kpis {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kpi {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 14px 14px;
    }

    .kpi-num {
        font-size: 26px;
        line-height: 1;
        font-weight: 700;
        color: #111827;
        margin-bottom: 6px;
    }

    .kpi-lbl {
        font-size: 12px;
        color: #6b7280;
    }

    .dash-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dash-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
    }

    .dash-row-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 4px;
        font-size: 13px;
    }

    .dash-label {
        color: #374151;
        font-weight: 600;
    }

    .dash-value {
        color: #111827;
        font-weight: 700;
        white-space: nowrap;
    }

    .dash-bar {
        width: 100%;
        height: 8px;
        background: #f3f4f6;
        border-radius: 999px;
        overflow: hidden;
        border: 1px solid #e5e7eb;
    }

    .dash-bar-fill {
        height: 100%;
        background: #2563eb;
        border-radius: 999px;
    }

    .dash-recientes {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dash-reciente {
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 12px;
        padding: 10px 12px;
        text-decoration: none;
        color: inherit;
        transition: background .15s, transform .15s;
    }

    .dash-reciente:hover {
        background: #f3f4f6;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .dash-reciente-ref {
        font-family: monospace;
        font-size: 13px;
        font-weight: 700;
        color: #111827;
    }

    .dash-reciente-meta {
        margin-top: 4px;
        font-size: 12px;
        color: #6b7280;
    }

    .resumen { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
    .resumen-item {
        flex: 1; min-width: 110px;
        background: white; border: 1px solid #e5e7eb; border-radius: 12px;
        padding: 14px 16px; text-align: center;
        text-decoration: none; transition: box-shadow .15s, transform .15s;
        display: block;
    }
    .resumen-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); transform: translateY(-2px); text-decoration: none; }
    .resumen-item.activo { border-width: 2px; }
    .resumen-item.activo.c-total      { border-color: #d1d5db; background: #f9fafb; }
    .resumen-item.activo.c-recibida   { border-color: #fde047; background: #fef9c3; }
    .resumen-item.activo.c-proceso    { border-color: #93c5fd; background: #dbeafe; }
    .resumen-item.activo.c-finalizada { border-color: #86efac; background: #dcfce7; }
    .resumen-item .num { font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
    .resumen-item .lbl { font-size: 12px; color: #6b7280; }
    .c-total .num       { color: #1f2937; }
    .c-recibida .num    { color: #854d0e; }
    .c-proceso .num     { color: #1e40af; }
    .c-finalizada .num  { color: #166534; }

    .barra-busqueda {
        display: flex;
        gap: 10px;
        margin-bottom: 18px;
        flex-wrap: wrap;
        align-items: center;
    }
    .barra-busqueda input[type="text"] {
        flex: 1; min-width: 200px; padding: 10px 14px;
        border-radius: 10px; border: 1px solid #d1d5db; font-size: 15px;
    }
    .barra-busqueda button { padding: 10px 18px; margin-top: 0; font-size: 14px; }
    .btn-limpiar {
        background: none; color: #6b7280; border: 1px solid #d1d5db;
        padding: 10px 14px; border-radius: 10px; font-size: 14px;
        cursor: pointer; text-decoration: none; display: inline-block; margin-top: 0;
    }
    .btn-limpiar:hover { background: #f3f4f6; color: #374151; }

    .info-resultados { font-size: 14px; color: #6b7280; margin-bottom: 14px; }
    .info-resultados strong { color: #1f2937; }

    .lista-denuncias { display: flex; flex-direction: column; gap: 14px; }
    .fila-denuncia {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        transition: box-shadow .15s, transform .15s;
    }
    .fila-denuncia:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); transform: translateY(-2px); }
    .fila-denuncia.recibida   { border-left: 5px solid #fde047; }
    .fila-denuncia.proceso    { border-left: 5px solid #93c5fd; }
    .fila-denuncia.finalizada { border-left: 5px solid #86efac; }

    .fila-main {
        display: flex;
        align-items: center;
        gap: 14px;
        flex: 1;
        min-width: 0;
        cursor: pointer;
    }

    .fila-codigo {
        font-family: monospace;
        font-size: 14px;
        background: #111;
        color: #0f0;
        padding: 4px 10px;
        border-radius: 6px;
        letter-spacing: 2px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .fila-info { flex: 1; min-width: 0; }

    .fila-desc {
        font-size: 14px;
        color: #374151;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fila-meta {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 4px;
    }

    .fila-acciones-lado {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .fila-estado-bloque {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn-fila-pdf {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #374151;
        text-decoration: none;
        font-size: 16px;
        transition: background .15s, border-color .15s, transform .15s;
    }
    .btn-fila-pdf:hover {
        background: #f9fafb;
        border-color: #9ca3af;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .sin-resultados {
        text-align: center; padding: 50px 20px; color: #6b7280;
        background: white; border-radius: 12px; border: 1px solid #e5e7eb;
    }

    .paginacion {
        display: flex; justify-content: center; align-items: center;
        gap: 8px; margin-top: 28px; flex-wrap: wrap;
    }
    .paginacion a, .paginacion span {
        padding: 8px 14px; border-radius: 8px; font-size: 14px;
        text-decoration: none; border: 1px solid #e5e7eb; color: #374151; background: white;
    }
    .paginacion a:hover { background: #f3f4f6; }
    .paginacion .pag-activa { background: #2563eb; color: white; border-color: #2563eb; font-weight: 700; }
    .paginacion .pag-off    { opacity: .4; pointer-events: none; }

    .tarjeta-enlace {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 12px;
        padding: 18px 22px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    .tarjeta-enlace .enlace-icon { font-size: 28px; flex-shrink: 0; }
    .tarjeta-enlace .enlace-info { flex: 1; min-width: 200px; }
    .tarjeta-enlace .enlace-label { font-size: 13px; font-weight: 600; color: #1e40af; margin-bottom: 4px; }
    .tarjeta-enlace .enlace-url {
        font-family: monospace; font-size: 13px; color: #1e3a8a;
        word-break: break-all; background: #dbeafe;
        padding: 6px 10px; border-radius: 6px; display: block; margin-top: 4px;
    }
    .btn-copiar {
        background: #2563eb; color: white; border: none;
        padding: 9px 16px; border-radius: 8px; font-size: 13px;
        font-weight: 600; cursor: pointer; white-space: nowrap;
        flex-shrink: 0; transition: background .15s;
    }
    .btn-copiar:hover { background: #1d4ed8; }
    .btn-copiar.copiado { background: #16a34a; }

    .barra-tools {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 14px;
    }

    .badge-nuevo {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #ef4444;
        flex-shrink: 0;
        align-self: center;
        display: block;
    }

    .pill-cat {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb;
        padding: 2px 8px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 500;
        white-space: nowrap;
        margin-right: 6px;
    }

    .num-sin-leer {
        background: #ef4444; color: white; border-radius: 20px;
        font-size: 11px; font-weight: 700; padding: 1px 6px;
        display: inline-block; margin-left: 4px; vertical-align: middle;
    }

    .plazo-ok,
    .plazo-aviso,
    .plazo-urgente {
        font-size: 12px;
        white-space: nowrap;
    }
    .plazo-ok { color: #374151; }
    .plazo-aviso { color: #92400e; font-weight: 600; }
    .plazo-urgente { color: #b91c1c; font-weight: 700; }

    .pill-acuse {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        padding: 2px 9px;
        border-radius: 20px;
        white-space: nowrap;
    }
    .pill-acuse::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        flex-shrink: 0;
    }
    .c-sinasignar .num { color: #9a3412; }
    .c-sinasignar.activo { border-color: #fed7aa; background: #fff7ed; }
    /* Badge de estado reducido para el listado del panel */
    .fila-estado-bloque .badge { font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; margin-bottom:0; gap:4px; }
    .pill-asignado        { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:600; border:1px solid; white-space:nowrap; }
    .pill-asignado-ok     { background:#f0fdf4; color:#166534; border-color:#bbf7d0; }
    .pill-asignado-vacio  { background:#fff7ed; color:#9a3412; border-color:#fed7aa; }
    .pill-acuse-verde { background: #eaf3de; color: #3b6d11; }
    .pill-acuse-ambar { background: #faeeda; color: #633806; }
    .pill-acuse-rojo    { background: #fcebeb; color: #a32d2d; }
    .pill-acuse-acusado { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

    .badge-rol {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        background: #eef2ff;
        border: 1px solid #c7d2fe;
        color: #3730a3;
        margin-left: 8px;
    }

    /* Ajuste de alineacion natural del panel */
    .panel-header {
        align-items: flex-start;
    }
    .panel-header > div:first-child {
        flex: 1;
        text-align: left;
    }
    .panel-header h2,
    .panel-header .usuario-info {
        text-align: left;
    }

    .fila-denuncia {
        align-items: flex-start;
    }
    .fila-main {
        align-items: flex-start;
    }
    .fila-info,
    .fila-desc,
    .fila-meta {
        text-align: left;
    }
    .fila-desc {
        display: block;
    }
    .fila-meta {
        display: block;
    }

    @media (max-width: 1100px) {
        .dashboard-wrap {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 860px) {
        .fila-denuncia {
            align-items: stretch;
        }
        .fila-main {
            align-items: flex-start;
        }
        .fila-acciones-lado {
            width: 100%;
            justify-content: flex-end;
        }
    }

    @media (max-width: 640px) {
        .dashboard-kpis {
            grid-template-columns: 1fr;
        }
        .fila-denuncia {
            flex-direction: column;
            align-items: stretch;
        }
        .fila-main {
            width: 100%;
        }
        .fila-acciones-lado {
            justify-content: space-between;
            width: 100%;
        }
        .fila-estado-bloque {
            flex-wrap: wrap;
        }
        .fila-desc {
            white-space: normal;
        }
    }

/* ----------------------------------------------------------------------
   PANEL.PHP — Clases auxiliares (reemplazos de style= inline)
   ---------------------------------------------------------------------- */

/* Botones de cabecera */
.btn-inline          { margin-top: 0; }
.btn-purple          { background: #7c3aed; }
.btn-purple:hover    { background: #6d28d9; }
.btn-danger          { background: #dc2626; }
.btn-danger:hover    { background: #b91c1c; }
.btn-mt              { margin-top: 16px; }

/* Link secundario (cambiar contraseña) */
.link-secondary {
    margin-top: 0;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    padding: 8px 4px;
}
.link-secondary:hover { color: #374151; }

/* Barra de botones admin */
.panel-admin-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* Dashboard barra de progreso */
.dash-bar-wrap         { width: 100%; }
.dash-bar-fill-green   { background: #16a34a; }
.dash-list-mb          { margin-bottom: 16px; }

/* Banner sin asignar */
.banner-sin-asignar {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.banner-icon { font-size: 18px; }
.banner-text { font-size: 14px; color: #9a3412; }
.banner-link { color: #9a3412; font-weight: 600; }
.banner-link:hover { text-decoration: underline; }

/* Sin resultados */
.sin-resultados-icon { font-size: 40px; margin-bottom: 12px; }

/* Pill anonimizada */
.pill-anonimizada {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

/* ======================================================================
   VER-DENUNCIA.PHP — Vista pública del denunciante
   ====================================================================== */

    body {
        max-width: 760px;
        margin: 36px auto 56px;
        padding: 0 14px;
    }

    .public-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .public-title {
        margin: 0;
        font-size: 28px;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .public-subtitle {
        margin: 6px 0 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.55;
    }

    .public-meta-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin: 6px 0 18px;
    }

    .public-meta-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px 14px;
    }

    .public-meta-label {
        font-size: 11px;
        color: #6b7280;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .4px;
        margin-bottom: 5px;
    }

    .public-meta-value {
        font-size: 15px;
        font-weight: 600;
        color: #111827;
        line-height: 1.4;
    }

    .public-section-title {
        font-size: 12px;
        color: #6b7280;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .4px;
        margin: 18px 0 8px;
    }

    .public-description {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 15px 16px;
        font-size: 15px;
        line-height: 1.6;
    }

    .adjuntos-lista {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 6px;
    }

    .adjunto-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: fit-content;
        max-width: 100%;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px 12px;
        color: #111827;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }

    .adjunto-link:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .estado-bloque {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 0 24px;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .estado-icono {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        flex-shrink: 0;
    }

    .estado-icono.recibida { background: #fef9c3; }
    .estado-icono.proceso { background: #dbeafe; }
    .estado-icono.finalizada { background: #dcfce7; }

    .estado-texto h3 {
        margin: 0 0 6px;
        font-size: 22px;
        line-height: 1.15;
        letter-spacing: -0.03em;
    }

    .estado-texto p {
        margin: 0;
        font-size: 15px;
        color: #6b7280;
        line-height: 1.55;
    }

    .timeline {
        position: relative;
        padding-left: 28px;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e5e7eb;
    }

    .timeline-item {
        position: relative;
        margin-bottom: 20px;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -22px;
        top: 14px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid white;
    }

    .timeline-item.de-empresa::before { background: #059669; }
    .timeline-item.de-denunciante::before { background: #2563eb; }
    .timeline-item.de-sistema::before { background: #9ca3af; }

    .timeline-burbuja {
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 15px;
        line-height: 1.6;
    }

    .timeline-item.de-empresa .timeline-burbuja {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
    }

    .timeline-item.de-denunciante .timeline-burbuja {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
    }

    .timeline-item.de-sistema .timeline-burbuja {
        background: transparent;
        border: none;
        padding: 4px 0;
        font-size: 13px;
        color: #9ca3af;
        font-style: italic;
        text-align: center;
    }

    .timeline-item.de-sistema::before { display: none; }

    .timeline-autor {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 6px;
    }

    .timeline-item.de-empresa .timeline-autor { color: #059669; }
    .timeline-item.de-denunciante .timeline-autor { color: #2563eb; }

    .timeline-fecha {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 6px;
        text-align: right;
    }

    .form-mensaje {
        margin-top: 8px;
    }

    .form-mensaje textarea {
        height: 110px;
    }

    @media (max-width: 640px) {
        .public-title { font-size: 24px; }
        .estado-texto h3 { font-size: 20px; }
        .timeline-burbuja { font-size: 14px; }
    }

/* ----------------------------------------------------------------------
   VER-DENUNCIA.PHP — Clases auxiliares (reemplazos de style= inline)
   ---------------------------------------------------------------------- */

/* Card centrada (pantalla de código) */
.card-centered { text-align: center; }

/* Badge con margen inferior */
.badge-mb { margin-bottom: 8px; }

/* Acuse registrado */
.acuse-ok { color: #27ae60; font-weight: 600; }

/* Aviso acuse pendiente */
.aviso-acuse-pendiente {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 12px;
    margin-top: 10px;
    border-radius: 4px;
}
.aviso-acuse-titulo { color: #ff6b00; }
.aviso-acuse-texto  { margin: 8px 0 0 0; font-size: 13px; color: #555; }

/* Utilidades de espaciado */
.p-mt  { margin-top: 16px; }
.meta-mb { margin-bottom: 16px; }

/* Botón agregar adjunto (púrpura) */
.adjunto-link-add  { background: #8b5cf6; color: white; }
.adjunto-link-add:hover { background: #7c3aed; border-color: #7c3aed; color: white; }
.adjunto-add-wrap  { margin-top: 12px; }

/* Sin adjuntos */
.sin-adjuntos-txt  { color: #6b7280; margin-bottom: 12px; }

/* Historial título */
.historial-titulo {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

/* Alerta código incorrecto */
.alerta-codigo {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Input código de seguimiento */
.input-codigo {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: monospace;
    font-size: 18px;
}

/* ======================================================================
   PANEL-ADMIN.PHP — Panel global superadmin
   ====================================================================== */

    .admin-nav {
        display: flex; gap: 10px; margin-bottom: 28px;
        flex-wrap: wrap; align-items: center; justify-content: space-between;
    }
    .admin-nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
    .btn-nav {
        padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
        text-decoration: none; border: 1px solid #e5e7eb; color: #374151;
        background: white; transition: background .15s;
    }
    .btn-nav:hover { background: #f3f4f6; text-decoration: none; }
    .btn-nav.activo { background: #2563eb; color: white; border-color: #2563eb; }

    .metricas-globales {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px; margin-bottom: 32px;
    }
    .metrica {
        background: white; border: 1px solid #e5e7eb; border-radius: 12px;
        padding: 16px 14px; text-align: center;
    }
    .metrica .num { font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 5px; }
    .metrica .lbl { font-size: 12px; color: #6b7280; }
    .metrica.alerta { border-color: #fca5a5; background: #fff1f2; }
    .metrica.alerta .num { color: #dc2626; }
    .metrica.aviso { border-color: #fde047; background: #fefce8; }
    .metrica.aviso .num { color: #ca8a04; }
    .metrica.info .num { color: #2563eb; }
    .metrica.ok .num { color: #16a34a; }
    .metrica.gris .num { color: #6b7280; }

    .empresas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 16px; margin-bottom: 36px;
    }
    .empresa-card {
        background: white; border: 1px solid #e5e7eb; border-radius: 14px;
        padding: 20px; transition: box-shadow .15s;
    }
    .empresa-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
    .empresa-card.inactiva { opacity: .55; }
    .empresa-card.tiene-alerta { border-left: 4px solid #ef4444; }
    .empresa-card.tiene-sin-leer { border-left: 4px solid #2563eb; }

    .empresa-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
    .empresa-logo {
        width: 40px; height: 40px; border-radius: 8px;
        object-fit: contain; background: #f3f4f6;
        border: 1px solid #e5e7eb; flex-shrink: 0; padding: 3px;
    }
    .empresa-logo-placeholder {
        width: 40px; height: 40px; border-radius: 8px;
        background: #f3f4f6; border: 1px solid #e5e7eb;
        display: flex; align-items: center; justify-content: center;
        font-size: 18px; flex-shrink: 0;
    }
    .empresa-nombre { font-size: 15px; font-weight: 700; color: #111; }
    .empresa-email  { font-size: 12px; color: #6b7280; margin-top: 2px; }

    .empresa-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
    .stat-pill {
        padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
        display: inline-flex; align-items: center; gap: 4px;
    }
    .stat-pill.recibida   { background: #fef9c3; color: #854d0e; }
    .stat-pill.proceso    { background: #dbeafe; color: #1e40af; }
    .stat-pill.finalizada { background: #dcfce7; color: #166534; }
    .stat-pill.sin-leer   { background: #fee2e2; color: #991b1b; }
    .stat-pill.alerta     { background: #fee2e2; color: #991b1b; }
    .stat-pill.vacio      { background: #f3f4f6; color: #6b7280; }

    .empresa-card-footer {
        display: flex; align-items: center; justify-content: space-between;
        gap: 8px; flex-wrap: wrap;
        padding-top: 12px; border-top: 1px solid #f3f4f6;
    }
    .empresa-card-footer-meta { font-size: 11px; color: #9ca3af; }
    .btn-ver-panel {
        padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
        background: #2563eb; color: white; text-decoration: none;
        transition: background .15s; display: inline-block;
    }
    .btn-ver-panel:hover { background: #1d4ed8; text-decoration: none; color: white; }
    .btn-ver-panel.inactiva-btn {
        background: #f3f4f6; color: #6b7280; cursor: default; pointer-events: none;
    }

    /* Tabla últimas denuncias */
    .tabla-ultimas { width: 100%; border-collapse: collapse; font-size: 14px; }
    .tabla-ultimas th {
        text-align: left; padding: 10px 14px; font-size: 12px; color: #6b7280;
        border-bottom: 2px solid #e5e7eb; font-weight: 600;
        text-transform: uppercase; letter-spacing: .4px;
    }
    .tabla-ultimas td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; }
    .tabla-ultimas tr:hover td { background: #f9fafb; }
    .badge-estado {
        padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
    }
    .badge-estado.recibida   { background: #fef9c3; color: #854d0e; }
    .badge-estado.proceso    { background: #dbeafe; color: #1e40af; }
    .badge-estado.finalizada { background: #dcfce7; color: #166534; }
    .pill-cat-sm {
        background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
        padding: 1px 7px; border-radius: 20px; font-size: 11px;
    }

    /* Accesos rápidos */
    .accesos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px; margin-bottom: 36px;
    }
    .acceso-card {
        background: white; border: 2px solid #e5e7eb; border-radius: 12px;
        padding: 20px; text-decoration: none; color: inherit;
        transition: box-shadow .15s, border-color .15s; display: block;
    }
    .acceso-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none; color: inherit; }
    .acceso-card .acceso-icon { font-size: 26px; margin-bottom: 10px; }
    .acceso-card .acceso-titulo { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
    .acceso-card .acceso-desc { font-size: 13px; color: #6b7280; }

/* ----------------------------------------------------------------------
   PANEL-ADMIN.PHP — Clases auxiliares (reemplazos de style= inline)
   ---------------------------------------------------------------------- */

.sa-session-info     { font-size: 14px; color: #6b7280; }
.sa-rol-badge        { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-left: 6px; }
.sa-section-title    { margin-bottom: 20px; font-size: 22px; }
.sa-subsection-title { margin-bottom: 16px; font-size: 17px; }
.sa-num-total        { color: #1f2937; }
.sa-empresa-info     { min-width: 0; flex: 1; }
.sa-badge-alerta     { margin-left: auto; font-size: 11px; background: #fee2e2; color: #991b1b; }
.sa-tabla-card       { padding: 0; overflow: hidden; margin-bottom: 40px; }
.sa-ref-code         { font-family: monospace; font-size: 13px; letter-spacing: 1px; }
.sa-dash             { color: #d1d5db; }
.sa-td-meta          { color: #6b7280; font-size: 13px; }
.sa-link-panel       { font-size: 12px; color: #2563eb; text-decoration: none; font-weight: 600; }
.sa-link-panel:hover { text-decoration: underline; }

/* Accesos rápidos — colores por tipo */
.acceso-card          { margin-bottom: 0; }
.acceso-card-blue     { border-color: #2563eb; }
.acceso-card-green    { border-color: #059669; }
.acceso-card-amber    { border-color: #f59e0b; }
.acceso-card-purple   { border-color: #8b5cf6; }

/* ======================================================================
   ADMIN-ALERTAS.PHP — Configuración de alertas
   ====================================================================== */

    .config-card {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 20px;
        background: #f9fafb;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        color: #374151;
        font-size: 13px;
    }
    
    .form-group input {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 14px;
    }
    
    .form-group input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    
    .hint {
        font-size: 12px;
        color: #6b7280;
        margin-top: 5px;
    }
    
    .checkbox-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: auto;
        margin: 0;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat-box {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 20px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 28px;
        font-weight: bold;
        color: #2563eb;
        margin: 10px 0;
    }
    
    .stat-label {
        font-size: 13px;
        color: #6b7280;
        text-transform: uppercase;
    }
    
    .btn-guardar {
        background: #2563eb;
        color: white;
        padding: 10px 30px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
    }
    
    .btn-guardar:hover {
        background: #1d4ed8;
    }
    
    .success-banner {
        background: #dcfce7;
        border: 1px solid #86efac;
        color: #166534;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    
    .error-banner {
        background: #fee2e2;
        border: 1px solid #fca5a5;
        color: #991b1b;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    
    .section {
        margin-bottom: 40px;
    }
    
    .section h2 {
        margin-top: 0;
        margin-bottom: 20px;
        font-size: 20px;
    }
    
    .instruction-box {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-left: 4px solid #2563eb;
        padding: 15px;
        border-radius: 6px;
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.6;
    }

/* ======================================================================
   AGREGAR-ADJUNTO.PHP — Subida de adjuntos (público)
   ====================================================================== */

    .upload-area {
        border: 2px dashed #e5e7eb;
        border-radius: 8px;
        padding: 30px;
        text-align: center;
        background: #f9fafb;
        cursor: pointer;
        transition: all 0.2s;
    }

    .upload-area:hover {
        border-color: #2563eb;
        background: #eff6ff;
    }

    .upload-area input[type="file"] {
        display: none;
    }

    .upload-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .success-msg {
        background: #dcfce7;
        border: 1px solid #86efac;
        color: #166534;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 20px;
    }

    .error-msg {
        background: #fee2e2;
        border: 1px solid #fca5a5;
        color: #991b1b;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 20px;
    }

    .file-info {
        background: #dbeafe;
        border: 1px solid #3b82f6;
        color: #1e40af;
        padding: 10px;
        border-radius: 6px;
        margin: 10px 0;
        font-size: 13px;
    }

    .btn-submit {
        background: #2563eb;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        margin-top: 10px;
    }

    .btn-submit:hover {
        background: #1d4ed8;
    }

    .btn-submit:disabled {
        background: #d1d5db;
        cursor: not-allowed;
    }

/* ======================================================================
   CREAR-DENUNCIA.PHP — Formulario público de denuncia
   ====================================================================== */

body.cd-page { max-width: 620px; margin: 40px auto; }

/* Textos descriptivos: izquierda, sin centrado */
body.cd-page .desc {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Sección "¿Ya has enviado una denuncia?" */
body.cd-page .form-centered h3   { text-align: left; margin-bottom: 6px; }
body.cd-page .form-centered .desc { margin-bottom: 14px; }

/* Campo de código de seguimiento */
body.cd-page .input-ref {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    color: #1f2937;
    outline: none;
    display: block;
    box-sizing: border-box;
}
body.cd-page .input-ref:focus {
    border-color: var(--brand-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Aviso de empresa inactiva */
.aviso-inactiva {
    background: #fef9c3; border: 1px solid #fde047;
    border-radius: 12px; padding: 24px; text-align: center;
    color: #854d0e;
}

.info-legal-resumen {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
}
.info-legal-resumen h3 { margin-top: 0; margin-bottom: 10px; }
.info-legal-resumen ul {
    margin: 0; padding-left: 18px;
    color: #4b5563; line-height: 1.6;
}

.opciones-extra { display: grid; gap: 10px; margin-top: 8px; }

.opcion-check {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 12px 14px;
}
.opcion-check input { margin-top: 3px; }

.enlace-info-canal { display: inline-block; margin-top: 14px; font-weight: 600; }

/* ======================================================================
   VER-DENUNCIA-PANEL.PHP — Ficha interna de expediente
   ====================================================================== */

.oculto{display:none}
.detalle-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn-volver{background:none;color:#2563eb;border:1px solid #2563eb;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;display:inline-block}
.btn-pdf{background:#111827;color:#fff;border:1px solid #111827;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;display:inline-block}
.identidad-box{background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;padding:14px 16px;margin:16px 0}
.identidad-fila{display:flex;gap:18px;flex-wrap:wrap}
.identidad-chip{padding:6px 10px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:13px;font-weight:600}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:20px}
.info-item{background:#f9fafb;border-radius:8px;padding:10px 14px;border:1px solid #e5e7eb}
.info-label{font-size:12px;color:#6b7280;margin-bottom:4px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}
.info-val{font-size:15px;color:#1f2937;font-weight:500}
.panel-acciones{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.panel-bloque{padding:16px;background:#f9fafb;border-radius:10px;border:1px solid #e5e7eb}
.panel-bloque h4{margin:0 0 8px 0;font-size:14px}
.panel-bloque p{font-size:12px;color:#666;margin:0 0 10px 0}
.panel-bloque form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.panel-bloque select,.panel-bloque input,.panel-bloque textarea{padding:8px 10px;font-size:13px;border-radius:6px;border:1px solid #d1d5db;width:100%;box-sizing:border-box}
.panel-bloque button{padding:8px 12px;font-size:12px;border:none;border-radius:6px;cursor:pointer;color:#fff}
.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}
.timeline{position:relative;padding-left:28px}
.timeline::before{content:'';position:absolute;left:10px;top:0;bottom:0;width:2px;background:#e5e7eb}
.timeline-item{position:relative;margin-bottom:20px}
.timeline-item::before{content:'';position:absolute;left:-22px;top:14px;width:10px;height:10px;border-radius:50%;border:2px solid #fff}
.timeline-item.de-empresa::before{background:#059669}
.timeline-item.de-denunciante::before{background:#2563eb}
.timeline-item.de-sistema::before{display:none}
.timeline-burbuja{border-radius:12px;padding:12px 16px;font-size:15px;line-height:1.55}
.timeline-item.de-empresa .timeline-burbuja{background:#f0fdf4;border:1px solid #bbf7d0}
.timeline-item.de-denunciante .timeline-burbuja{background:#eff6ff;border:1px solid #bfdbfe}
.timeline-item.de-sistema{margin:28px 0;padding-left:0}
.timeline-item.de-sistema .timeline-burbuja{background:transparent;border:none;padding:0;display:flex;align-items:center;gap:10px}
.sistema-linea{flex:1;height:1px;background:#e5e7eb}
.sistema-bloque{display:flex;flex-direction:column;align-items:center;gap:2px}
.sistema-texto{font-size:12px;font-weight:600;color:#9ca3af;white-space:nowrap}
.sistema-fecha{font-size:11px;color:#d1d5db;white-space:nowrap}
.timeline-autor{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.timeline-fecha{font-size:12px;color:#9ca3af;margin-top:6px;text-align:right}
.eventos-wrap,.notas-wrap{display:flex;flex-direction:column;gap:12px}
.evento-item{background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;padding:14px 16px}
.nota-item{background:#fff7ed;border:1px solid #fdba74;border-radius:12px;padding:14px 16px}
.evento-head,.nota-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.evento-tipo,.nota-autor{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}
.evento-tipo{color:#334155}
.nota-autor{color:#9a3412}
.evento-fecha,.nota-fecha{font-size:12px;color:#9ca3af}
.evento-detalle{line-height:1.6;color:#0f172a;white-space:pre-wrap}
.evento-actor{margin-top:8px;font-size:12px;color:#64748b}
.nota-texto{white-space:pre-wrap;line-height:1.6;color:#431407}
.adjunto-item{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e5e7eb}
.adjunto-item:last-child{border-bottom:none}
.adjunto-meta{font-size:12px;color:#6b7280}
.btn-inline{display:inline-block;padding:7px 12px;border-radius:6px;text-decoration:none;font-size:12px;font-weight:600}
.btn-descarga{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
.badge-rol{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3}
.aviso-identidad{background:#fff7ed;border-left:4px solid #f59e0b;border-radius:6px;padding:12px 14px;margin:16px 0;color:#92400e}
@media (max-width:980px){
    .panel-acciones{grid-template-columns:1fr}
    .grid-3{grid-template-columns:1fr}
}

/* ======================================================================
   LOGIN.PHP — Pantalla de acceso
   ====================================================================== */

    /* Regla originalmente pensada para login; no debe afectar al resto de paneles */
    body { max-width: 960px; margin: 40px auto; text-align: left; }

    /* Mensaje de error de credenciales */
    .msg-error {
        background: #fee2e2;
        border: 1px solid #fca5a5;
        color: #991b1b;
        padding: 12px 16px;
        border-radius: 10px;
        margin-bottom: 20px;
        font-size: 14px;
        text-align: left;
    }

    /* Mensaje de bloqueo por exceso de intentos */
    .msg-bloqueo {
        background: #fef9c3;
        border: 1px solid #fde047;
        color: #854d0e;
        padding: 12px 16px;
        border-radius: 10px;
        margin-bottom: 20px;
        font-size: 14px;
        text-align: left;
    }

    /* Contador de intentos restantes */
    .intentos-aviso {
        font-size: 13px;
        color: #b45309;
        margin-top: 8px;
        text-align: center;
    }

/* ======================================================================
   ADMIN-USUARIOS.PHP — Gestión de usuarios
   ====================================================================== */

.au-btn-edit {
    background: #fff4e8;
    border: 1px solid #fdba74;
    color: #c2410c !important;
    opacity: 1;
}
.au-btn-edit:hover {
    background: #ffedd5;
    border-color: #fb923c;
    color: #9a3412 !important;
}
.au-btn-edit:disabled,
.au-btn-edit[disabled] {
    background: #fff4e8;
    border-color: #fdba74;
    color: #c2410c !important;
    opacity: 1;
    cursor: not-allowed;
}

/* ======================================================================
   CAMBIAR-PASSWORD.PHP — Cambio de contraseña
   ====================================================================== */

    body { max-width: 480px; margin: 60px auto; }
    .msg-ok  { background:#dcfce7; border:1px solid #86efac; color:#166534; padding:12px 16px; border-radius:10px; margin-bottom:20px; }
    .msg-err { background:#fee2e2; border:1px solid #fca5a5; color:#991b1b; padding:12px 16px; border-radius:10px; margin-bottom:20px; }
    .nav-back { margin-bottom: 24px; }
    .btn-volver {
        color: #2563eb; border: 1px solid #2563eb; background: none;
        padding: 8px 16px; border-radius: 8px; font-size: 14px;
        font-weight: 600; text-decoration: none; display: inline-block;
    }
    .btn-volver:hover { background: #eff6ff; text-decoration: none; }
    /* Indicador de fortaleza de contraseña */
    .fortaleza-barra {
        height: 4px; border-radius: 2px; margin-top: 6px;
        transition: width .3s, background .3s;
        background: #e5e7eb; width: 0%;
    }
    .fortaleza-texto { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* ======================================================================
   INFORMACION-CANAL.PHP — Info pública del canal
   ====================================================================== */

body { max-width: 860px; margin: 42px auto 60px; padding: 0 16px; }
.info-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); }
.info-card h2 { margin-top: 0; }
.info-card ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.info-pill { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; }
.info-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; }

/* ======================================================================
   ENLACES-EMPRESAS.PHP — Gestión de enlaces
   ====================================================================== */

    body {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .header {
        margin-bottom: 30px;
    }
    
    .header h1 {
        margin: 0 0 8px 0;
        color: #1f2937;
        font-size: 28px;
    }
    
    .header p {
        margin: 0;
        color: #6b7280;
        font-size: 14px;
    }
    
    .btn-back {
        display: inline-block;
        margin-bottom: 20px;
        padding: 8px 16px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        text-decoration: none;
        color: #374151;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .btn-back:hover {
        background: #e5e7eb;
    }
    
    .empresas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .empresa-card {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: all 0.3s;
    }
    
    .empresa-card:hover {
        border-color: #2563eb;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    }
    
    .empresa-card.inactiva {
        opacity: 0.6;
        background: #f9fafb;
    }
    
    .empresa-header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 16px;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 12px;
    }
    
    .empresa-nombre {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        margin: 0;
    }
    
    .status-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .status-activa {
        background: #d1fae5;
        color: #065f46;
    }
    
    .status-inactiva {
        background: #fee2e2;
        color: #991b1b;
    }
    
    .empresa-info {
        font-size: 13px;
        color: #6b7280;
        margin: 12px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .empresa-info strong {
        color: #374151;
    }
    
    .enlace-section {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #f3f4f6;
    }
    
    .enlace-label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        color: #6b7280;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        display: block;
    }
    
    .enlace-urls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .enlace-item {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
        font-size: 12px;
    }
    
    .enlace-titulo {
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
        display: block;
    }
    
    .enlace-url {
        word-break: break-all;
        color: #0ea5e9;
        font-family: 'Monaco', 'Courier New', monospace;
        font-size: 11px;
        margin-bottom: 8px;
        padding: 8px;
        background: white;
        border-radius: 4px;
        border: 1px solid #dbeafe;
    }
    
    .btn-copy {
        display: inline-block;
        padding: 6px 12px;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .btn-copy:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }
    
    .btn-copy:active {
        transform: translateY(0);
    }
    
    .btn-copy.copiado {
        background: #10b981;
    }
    
    .notas {
        background: #eff6ff;
        border-left: 4px solid #3b82f6;
        border-radius: 6px;
        padding: 16px;
        margin: 20px 0;
        font-size: 13px;
        line-height: 1.6;
        color: #1e40af;
    }
    
    .notas strong {
        color: #1e3a8a;
    }
    
    @media (max-width: 768px) {
        .empresas-grid {
            grid-template-columns: 1fr;
        }
        
        .header h1 {
            font-size: 20px;
        }
    }

/* ======================================================================
   CLASES AUXILIARES — Varios ficheros (reemplazos de style= inline)
   ====================================================================== */

/* --- login.php --- */
.card-left { text-align: left; }

/* --- admin-usuarios.php --- */
.au-rol-hint              { margin-left: 8px; opacity: 0.8; }
.au-summary-badge-super   { background: #efe7ff; border-color: #c4b5fd; color: #6d28d9; }
.au-field-mb-sm           { margin-bottom: 12px; }
.au-field-mb              { margin-bottom: 16px; }

/* --- cambiar-password.php --- */
.cp-title    { text-align: left; margin-bottom: 24px; }
.meta-mb-lg  { margin-bottom: 20px; }

/* --- ver-denuncia-panel.php --- */
.vdp-session-info    { font-size: 14px; color: #6b7280; }
.vdp-ref-bar         { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.vdp-ref-badge       { display: inline-block; background: #111827; color: #22c55e; font-family: 'Courier New', monospace; font-size: 15px; font-weight: 700; letter-spacing: 1px; padding: 6px 12px; border-radius: 8px; }
.vdp-pill-anonimizada { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.panel-bloque-blue   { background: #f0f9ff; border-left: 4px solid #0066cc; }
.panel-bloque-green  { background: #f0fdf4; border-left: 4px solid #22c55e; }
.panel-bloque-title-blue  { color: #0066cc; }
.panel-bloque-title-green { color: #16a34a; }
.btn-action-blue   { background: #0066cc; color: white; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.btn-action-blue:hover   { background: #0052a3; }
.btn-action-green  { background: #22c55e; color: white; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.btn-action-green:hover  { background: #16a34a; }
.btn-action-teal   { background: #10b981; color: white; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.btn-action-teal:hover   { background: #059669; }
.btn-action-red    { background: #ef4444; color: white; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.btn-action-red:hover    { background: #dc2626; }
.btn-action-purple { background: #a855f7; color: white; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.btn-action-purple:hover { background: #9333ea; }
.vdp-asignado-info   { padding: 10px 12px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px; color: #065f46; font-size: 13px; }
.form-acuse          { flex-shrink: 0; }
.vdp-acuse-ok        { background: #eaf3de; border-left: 4px solid #639922; border-radius: 6px; padding: 14px 18px; margin-bottom: 20px; }
.vdp-acuse-ok-title  { font-size: 14px; font-weight: 600; color: #3b6d11; margin-bottom: 4px; }
.vdp-acuse-ok-text   { font-size: 13px; color: #3b6d11; opacity: 0.85; }
.vdp-identidad-bar   { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vdp-meta-anon       { margin: 8px 0 12px 0; }
.vdp-section-block   { margin-top: 18px; }
.vdp-section-label   { font-size: 13px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.vdp-text-box        { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; line-height: 1.6; }
.vdp-adj-list        { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 16px; }
.vdp-adj-name        { font-weight: 600; color: #111827; }
.vdp-h3              { margin-bottom: 20px; }
.vdp-actions-grid    { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.form-responder      { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.textarea-respuesta  { height: 80px; }
.textarea-nota       { height: 110px; margin-bottom: 12px; }
.textarea-cierre     { height: 90px; margin-bottom: 8px; }
.input-confirm       { margin-bottom: 8px; }
.vdp-info-box        { background: #f3f4f6; border: 1px solid #d1d5db; color: #4b5563; padding: 10px; border-radius: 6px; font-size: 12px; }
.vdp-info-box-purple { background: #ede9fe; border: 1px solid #c4b5fd; color: #5b21b6; padding: 10px; border-radius: 6px; font-size: 12px; text-align: center; }
.vdp-info-box-green  { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; padding: 10px; border-radius: 6px; font-size: 12px; text-align: center; margin-bottom: 8px; }

/* --- enlaces-empresas.php --- */
.bg-light            { background: #f9fafb; }
.txt-green           { color: #059669; }
.enlace-hint         { font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.enlace-item-green   { border: 2px solid #10b981; background: #f0fdf4; }
.enlace-titulo-green { color: #059669; }
.enlace-hint-green   { color: #047857; }
.enlace-url-green    { border-color: #86efac; }
.btn-copy-green      { background: #10b981; }
.btn-copy-green:hover { background: #059669; }
.enlace-item-purple  { border: 2px solid #8b5cf6; background: #faf5ff; }
.enlace-titulo-purple { color: #6d28d9; }
.enlace-hint-purple  { color: #5b21b6; }
.enlace-url-purple   { border-color: #ddd6fe; }
.btn-copy-purple     { background: #8b5cf6; }
.btn-copy-purple:hover { background: #7c3aed; }
.notas-aviso         { background: #fef3c7; border-left-color: #f59e0b; color: #92400e; }

/* --- admin-empresas.php --- */
.ae-aviso-box    { padding: 20px; background: #fef3c7; border-radius: 8px; color: #92400e; }
.ae-enlace-box   { background: #f0f7ff; border: 1px solid #0066cc; border-radius: 8px; padding: 12px; margin: 12px 0; display: flex; align-items: center; gap: 10px; }
.ae-enlace-icon  { font-size: 20px; flex-shrink: 0; }
.ae-enlace-info  { flex: 1; min-width: 0; }
.ae-enlace-label { margin: 0 0 6px 0; font-size: 12px; color: #0066cc; font-weight: 600; }

/* --- crear-denuncia-procesar.php --- */
.info-section-blue       { border-left-color: #3b82f6; background: #eff6ff; }
.info-section-title-blue { color: #1e40af; }
.info-section-text-blue  { color: #1e40af; }

/* --- config.php (email template) --- */
.logo-email { max-width: 180px; }

/* --- generar-pdf.php --- */
.pdf-header-right  { text-align: right; }
.field-cierre      { grid-column: 1 / -1; background: #f0fdf4; border-color: #bbf7d0; }
.field-label-cierre { color: #166534; }
.pdf-motivo-wrap   { margin-top: 14px; }
.pdf-motivo-label  { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }

/* --- landing.php --- */
.landing-footnote { font-size: .82rem; }

/* --- procesar-acuse.php --- */
.acuse-ok-mt { margin-top: 20px; }

/* --- admin-empresas.php --- */
.ae-btn-copiar {
    flex-shrink: 0;
    padding: 8px 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ae-btn-copiar:hover { background: #0052a3; }

/* ======================================================================
   AJUSTES DE ALINEACION — PANELES
   ====================================================================== */
.panel-header,
.panel-admin-bar,
.admin-nav,
.detalle-header {
    text-align: left;
}

.panel-header > div:first-child,
.panel-header h2,
.panel-header .usuario-info,
.sa-section-title,
.sa-subsection-title,
.vdp-h3,
.identidad-box,
.info-item,
.evento-item,
.nota-item {
    text-align: left;
}

.fila-main {
    align-items: center;
}

.fila-info,
.fila-desc,
.fila-meta,
.dash-reciente,
.dash-reciente-ref,
.dash-reciente-meta,
.acceso-card,
.acceso-card .acceso-icon,
.acceso-card .acceso-titulo,
.acceso-card .acceso-desc,
.empresa-card,
.empresa-card-footer,
.vdp-info-box,
.vdp-info-box-purple,
.vdp-info-box-green {
    text-align: left;
}

.acceso-card .acceso-icon {
    margin-bottom: 10px;
}

.sistema-bloque {
    align-items: flex-start;
}

@media (max-width: 768px) {
    .panel-header,
    .admin-nav,
    .detalle-header {
        align-items: flex-start;
    }

    .panel-header-actions,
    .header-actions {
        justify-content: flex-start;
    }
}

/* ============================= */
/* PANEL.PHP - EXPORTAR Y FECHAS */
/* ============================= */
.input-fecha {
    min-width: 180px;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    appearance: none;
    -webkit-appearance: none;
}

.input-fecha:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.input-fecha:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-exportar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
    transition: background .15s, transform .15s, box-shadow .15s;
}

.btn-exportar:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-exportar:disabled,
.btn-exportar[disabled] {
    opacity: 1;
    background: #eef2f7;
    color: #94a3b8 !important;
    border: 1px solid #dbe3ee;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 900px) {
    .form-exportar {
        justify-content: flex-start;
    }

    .input-fecha {
        min-width: 160px;
    }
}
/* ============================= */
/* PANEL.PHP - TARJETA EXPORTAR */
/* ============================= */

.export-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.form-exportar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.export-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 160px;
}

.export-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.export-card-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.export-fechas {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.export-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.export-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.export-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.export-actions {
    display: flex;
    justify-content: flex-end;
}

.barra-tools {
    display: flex;
    justify-content: stretch;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .barra-tools {
        justify-content: stretch;
    }

    .export-card {
        max-width: none;
    }

    .export-fechas {
        width: 100%;
    }

    .export-fields {
        grid-template-columns: 1fr;
    }

    .export-actions {
        justify-content: flex-start;
    }
}