/* =========================================================
   Activa Auditores — Panel Administrativo
   Hoja de estilos con diseño de panel lateral
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- Colores principales (mismos que el sitio web) --- */
    --naranja: #E8610A;
    --naranja-hover: #C9520A;
    --naranja-light: #FF8A3D;
    --negro: #0A0A0A;
    --gris-oscuro: #1A1A1A;
    --gris-medio: #2C2C2C;
    --gris-texto: #888;
    --blanco: #FFFFFF;
    --fondo-claro: #F5F5F7;
    --fondo-seccion: #FAFAFA;
    
    /* --- Colores adicionales para el panel --- */
    --success: #27ae60;
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    
    --danger: #e74c3c;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    --danger-border: #f5c6cb;
    
    --warning: #f39c12;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --warning-border: #ffeaa7;
    
    --info: #3498db;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    --info-border: #bee5eb;
    
    /* --- Tipografía --- */
    --font-family: 'Inter', sans-serif;
    
    /* --- Sidebar --- */
    --sidebar-width: 260px;
    --sidebar-bg: #1a2332;
    --sidebar-hover: #2c3e50;
    --sidebar-active: #E8610A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--fondo-claro);
    color: var(--negro);
    overflow-x: hidden;
}

/* =========================================================
   SIDEBAR LATERAL
   ========================================================= */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--naranja);
    border-radius: 4px;
}

/* Logo en sidebar */
.sidebar-logo {
    padding: 24px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logo img {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-logo .logo-text {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    letter-spacing: 1px;
}

/* Usuario en sidebar */
.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 40px;
    height: 40px;
    background: var(--naranja);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

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

.sidebar-user .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navegación sidebar */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px 20px;
}

.sidebar-nav .nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    padding: 12px 12px 8px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(232, 97, 10, 0.15);
    color: var(--naranja);
}

.sidebar-nav a.active i {
    color: var(--naranja);
}

.sidebar-nav a .badge-nav {
    margin-left: auto;
    background: var(--naranja);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Botón logout en sidebar */
.sidebar-footer {
    padding: 16px 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-footer .btn-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-family);
}

.sidebar-footer .btn-logout i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer .btn-logout:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content .page-header {
    background: var(--blanco);
    padding: 20px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.main-content .page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--negro);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-content .page-header h1 i {
    color: var(--naranja);
}

.main-content .page-content {
    padding: 24px 32px 32px;
    flex: 1;
}

/* =========================================================
   LOGIN PAGE (independiente, sin sidebar)
   ========================================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--negro);
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 97, 10, 0.18) 0%, transparent 65%),
                radial-gradient(ellipse 40% 30% at 80% 80%, rgba(232, 97, 10, 0.08) 0%, transparent 60%);
}

.login-container {
    background: var(--blanco);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: loginSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo-login {
    max-width: 140px;
    height: auto;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 4px;
}

.login-header .subtitle {
    font-size: 13px;
    color: var(--gris-texto);
    font-weight: 300;
}

/* =========================================================
   FORMULARIOS
   ========================================================= */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.form-group label .required {
    color: var(--naranja);
    margin-left: 2px;
}

.form-group .input-icon-wrapper {
    position: relative;
}

.form-group .input-icon-wrapper .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gris-texto);
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--negro);
    background: #fff;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--naranja);
}

.form-group .input-icon-wrapper input {
    padding-left: 48px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--naranja);
    color: #fff;
}

.btn-primary:hover {
    background: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 97, 10, 0.35);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.35);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--negro);
    border: 1.5px solid var(--negro);
}

.btn-outline:hover {
    background: var(--negro);
    color: var(--blanco);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
}

.btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
}

/* =========================================================
   ALERTAS / MENSAJES FLASH
   ========================================================= */
.flash,
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: flashIn .4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.flash-success,
.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.flash-error,
.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.flash-info,
.alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

.flash-warning,
.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.flash .flash-icon,
.alert .alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
    background: var(--blanco);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #eee;
    transition: all .3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

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

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--negro);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .card-icon {
    font-size: 20px;
}

/* =========================================================
   TABLAS
   ========================================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background: var(--fondo-claro);
}

table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gris-texto);
    border-bottom: 2px solid #eee;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

table tbody tr {
    transition: background .2s;
}

table tbody tr:hover {
    background: var(--fondo-claro);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   BADGES / ESTADOS
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

.badge-rol {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-rol-admin {
    background: #1a2332;
    color: #fff;
}

.badge-rol-usuario {
    background: #e5e5e5;
    color: #555;
}

/* =========================================================
   FILTROS - USUARIOS
   ========================================================= */
.filtros-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--fondo-claro);
    border-radius: 10px;
    align-items: center;
}

.filtros-bar .filtro-grupo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* --- CLASE ÚNICA PARA EL BUSCADOR --- */
.filtros-bar .filtro-busqueda {
    flex: 1;
    flex-shrink: 1;
    min-width: 200px;
}

.filtros-bar .filtro-busqueda input[type="text"] {
    flex: 1;
    min-width: 0;
    width: 100%;
}
/* ------------------------------------------------ */

.filtros-bar label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.filtros-bar input[type="text"],
.filtros-bar select {
    padding: 7px 12px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--negro);
    background: #fff;
    outline: none;
    transition: border-color .2s;
    min-width: 130px;
}

.filtros-bar input[type="text"]:focus,
.filtros-bar select:focus {
    border-color: var(--naranja);
}

.filtros-bar .btn-filtro {
    padding: 7px 18px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    background: var(--naranja);
    color: #fff;
    flex-shrink: 0;
}

.filtros-bar .btn-filtro:hover {
    background: var(--naranja-hover);
    transform: translateY(-1px);
}

.filtros-bar .btn-limpiar {
    padding: 7px 18px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    background: transparent;
    color: #555;
    flex-shrink: 0;
}

.filtros-bar .btn-limpiar:hover {
    background: #e5e5e5;
}

/* =========================================================
   ACCIONES EN TABLA
   ========================================================= */
.acciones-usuario {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.acciones-usuario .btn-accion {
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-family);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.acciones-usuario .btn-editar {
    background: #e8f0fe;
    color: #1a73e8;
}

.acciones-usuario .btn-editar:hover {
    background: #d2e3fc;
}

.acciones-usuario .btn-activar {
    background: #d4edda;
    color: #155724;
}

.acciones-usuario .btn-activar:hover {
    background: #b8dfc6;
}

.acciones-usuario .btn-desactivar {
    background: #f8d7da;
    color: #721c24;
}

.acciones-usuario .btn-desactivar:hover {
    background: #f5c6cb;
}

.acciones-usuario .btn-password {
    background: #fff3cd;
    color: #856404;
}

.acciones-usuario .btn-password:hover {
    background: #ffeaa7;
}

.acciones-usuario .btn-accion:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.acciones-usuario .btn-ver {
    background: #e3f2fd;
    color: #0d47a1;
}

.acciones-usuario .btn-ver:hover {
    background: #bbdefb;
}

/* =========================================================
   BOTÓN EXPORTAR
   ========================================================= */
.btn-exportar {
    padding: 7px 18px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    background: #28a745;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-exportar:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */
.paginacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.paginacion .info-pagina {
    font-size: 13px;
    color: var(--gris-texto);
}

.paginacion .paginacion-botones {
    display: flex;
    gap: 4px;
}

.paginacion .paginacion-botones a,
.paginacion .paginacion-botones span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    transition: all .2s;
}

.paginacion .paginacion-botones a:hover {
    background: var(--fondo-claro);
    border-color: var(--naranja);
}

.paginacion .paginacion-botones .active {
    background: var(--naranja);
    color: #fff;
    border-color: var(--naranja);
}

.paginacion .paginacion-botones .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.paginacion .paginacion-botones .disabled:hover {
    background: transparent;
    border-color: #e5e5e5;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gris-texto);
}

.empty-state .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gris-texto);
}

.text-naranja {
    color: var(--naranja);
}

.mt-1 {
    margin-top: 8px;
}
.mt-2 {
    margin-top: 16px;
}
.mt-3 {
    margin-top: 24px;
}
.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}
.mb-2 {
    margin-bottom: 16px;
}
.mb-3 {
    margin-bottom: 24px;
}
.mb-4 {
    margin-bottom: 32px;
}

.divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.flex {
    display: flex;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gap-1 {
    gap: 8px;
}
.gap-2 {
    gap: 16px;
}
.gap-3 {
    gap: 24px;
}

/* =========================================================
   BOTÓN HAMBURGUESA (visible solo en móvil)
   ========================================================= */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--negro);
    cursor: pointer;
    padding: 4px 8px;
}

/* =========================================================
   MODALES PERSONALIZADOS
   ========================================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease;
}

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-box {
    background: var(--blanco);
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-header .modal-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
}

.modal-body {
    padding: 16px 28px 24px;
}

.modal-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 16px 28px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.modal-footer .btn {
    padding: 10px 28px;
    font-size: 14px;
}

/* Colores para diferentes tipos de modales */
.modal-warning .modal-header .modal-icon {
    color: var(--warning);
}
.modal-warning .modal-header h3 {
    color: var(--warning-text);
}

.modal-danger .modal-header .modal-icon {
    color: var(--danger);
}
.modal-danger .modal-header h3 {
    color: var(--danger-text);
}

.modal-success .modal-header .modal-icon {
    color: var(--success);
}
.modal-success .modal-header h3 {
    color: var(--success-text);
}

.modal-info .modal-header .modal-icon {
    color: var(--info);
}
.modal-info .modal-header h3 {
    color: var(--info-text);
}

/* Botón warning (amarillo) */
.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-warning:hover {
    background: #d68910;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.35);
}

/* Responsive modales */
@media (max-width: 480px) {
    .modal-box {
        width: 95%;
        margin: 16px;
    }
    .modal-header {
        padding: 20px 20px 0;
    }
    .modal-body {
        padding: 12px 20px 20px;
    }
    .modal-footer {
        padding: 12px 20px 20px;
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   CLASES ADICIONALES PARA USUARIOS
   ========================================================= */

/* Card actions */
.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Usuario actual en tabla */
.usuario-actual {
    background: #e8f0fe;
}

.badge-usuario-actual {
    font-size: 11px;
    background: #1a2332;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
    display: inline-block;
}

/* Columnas de tabla */
.col-id {
    width: 50px;
}

.col-acciones {
    width: 180px;
}

/* Texto pequeño */
.small {
    font-size: 11px;
}

/* =========================================================
   MODAL DE DETALLES DEL USUARIO
   ========================================================= */
.modal-detalles {
    max-width: 600px;
}

.modal-detalles .detalle-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-detalles .detalle-item:last-child {
    border-bottom: none;
}

.modal-detalles .detalle-label {
    font-weight: 600;
    color: #555;
    width: 140px;
    flex-shrink: 0;
}

.modal-detalles .detalle-valor {
    color: #1a1a1a;
    word-break: break-all;
}

.modal-detalles .detalle-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.modal-detalles .detalle-badge-activo {
    background: #d4edda;
    color: #155724;
}

.modal-detalles .detalle-badge-inactivo {
    background: #f8d7da;
    color: #721c24;
}

.modal-detalles .detalle-badge-admin {
    background: #1a2332;
    color: #fff;
}

.modal-detalles .detalle-badge-usuario {
    background: #e5e5e5;
    color: #555;
}

.modal-detalles .detalle-loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

.detalle-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
}

/* =========================================================
   HEADER USER INFO (visible en desktop y móvil)
   ========================================================= */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--naranja);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* =========================================================
   MENÚ HAMBURGUESA COMPACTO (solo visible en móvil)
   ========================================================= */

/* Botón hamburguesa */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--negro);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: var(--fondo-claro);
}

/* Overlay del menú móvil */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Contenedor del menú móvil - pequeño y en la esquina superior izquierda */
.mobile-menu-container {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 250px;
    max-width: 85vw;
    background: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 16px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 2001;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu-container.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Header del menú móvil */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--naranja);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.mobile-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--negro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gris-texto);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: var(--fondo-claro);
}

/* Navegación del menú móvil */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--gris-texto);
}

.mobile-nav a:hover {
    background: var(--fondo-claro);
    color: var(--negro);
}

.mobile-nav a.active {
    background: rgba(232, 97, 10, 0.08);
    color: var(--naranja);
}

.mobile-nav a.active i {
    color: var(--naranja);
}

.mobile-divider {
    border-top: 1px solid #f0f0f0;
    margin: 8px 0;
}

.mobile-logout {
    color: var(--danger) !important;
}

.mobile-logout i {
    color: var(--danger) !important;
}

.mobile-logout:hover {
    background: rgba(231, 76, 60, 0.08) !important;
}

/* =========================================================
   RESPONSIVE - Menú hamburguesa visible en móvil
   ========================================================= */
@media (max-width: 768px) {
    /* Ocultar sidebar en móvil */
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    /* Mostrar botón hamburguesa */
    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .main-content .page-header {
        padding: 12px 16px;
    }
    
    .main-content .page-header h1 {
        font-size: 16px;
    }
    
    .main-content .page-content {
        padding: 12px 16px 20px;
    }
    
    .card {
        padding: 14px 16px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-actions {
        width: 100%;
    }
    
    .card-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    /* Filtros en móvil */
    .filtros-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .filtros-bar .filtro-grupo {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtros-bar input[type="text"],
    .filtros-bar select {
        min-width: 100%;
        width: 100%;
    }
    
    .filtros-bar .btn-filtro,
    .filtros-bar .btn-limpiar {
        width: 100%;
        justify-content: center;
    }
    
    .filtros-bar .filtro-busqueda {
        min-width: 100%;
    }
    
    /* Tabla en móvil */
    .table-wrapper table {
        font-size: 12px;
    }
    
    .table-wrapper table th,
    .table-wrapper table td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .acciones-usuario .btn-accion {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    /* Paginación en móvil */
    .paginacion {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .paginacion .paginacion-botones {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .paginacion .paginacion-botones a,
    .paginacion .paginacion-botones span {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    /* Header usuario en móvil */
    .header-user-name {
        display: none;
    }
    
    .header-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }
}

/* =========================================================
   PERFIL - ENLACES DEL USUARIO
   ========================================================= */

/* Sidebar - Enlace del usuario */
.sidebar-user-link {
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.sidebar-user-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-link .sidebar-user {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: none;
}

/* Mobile - Enlace del usuario en menú hamburguesa */
.mobile-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--negro);
    flex: 1;
}

.mobile-user-link:hover .mobile-user-name {
    color: var(--naranja);
}

/* Header - Enlace del usuario (avatar + nombre) */
.header-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #555;
    transition: color 0.2s;
}

.header-user-link:hover {
    color: var(--naranja);
}

.header-user-link:hover .header-user-avatar {
    transform: scale(1.05);
}

.header-user-link .header-user-avatar {
    transition: transform 0.2s;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================================================
   PERFIL DE USUARIO
   ========================================================= */

.perfil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.perfil-section {
    background: var(--fondo-claro);
    border-radius: 12px;
    padding: 24px;
}

.perfil-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--naranja);
}

.perfil-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.perfil-item:last-child {
    border-bottom: none;
}

.perfil-label {
    font-weight: 600;
    color: #555;
    width: 140px;
    flex-shrink: 0;
}

.perfil-valor {
    color: var(--negro);
    word-break: break-all;
}

.perfil-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Modal editar perfil */
.modal-editar {
    max-width: 480px;
}

.modal-editar .form-group {
    margin-bottom: 16px;
}

.modal-editar .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* Modal contraseña */
.modal-password {
    max-width: 520px;
}

.modal-password .form-group {
    margin-bottom: 16px;
}

.modal-password .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.password-requirements {
    background: var(--fondo-claro);
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 8px;
}

.password-requirements p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.password-requirements ul li {
    padding: 2px 0;
    transition: color 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .perfil-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .perfil-item {
        flex-direction: column;
        gap: 2px;
    }
    
    .perfil-label {
        width: 100%;
        font-size: 12px;
        color: var(--gris-texto);
    }
    
    .modal-editar,
    .modal-password {
        max-width: 95%;
    }
    
    .perfil-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .perfil-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   SIDEBAR - LOGO ENLACE
   ========================================================= */

.sidebar-logo-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
}

.sidebar-logo-link:hover {
    opacity: 0.8;
}

.sidebar-logo-link .sidebar-logo {
    padding: 24px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* =========================================================
   MENSAJES - GESTIÓN (unificado con estilo de usuarios)
   ========================================================= */

/* === BADGES DE ESTADO SIN EMOJIS === */
.badge-estado {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-estado-no_leido {
    background: #f8d7da;
    color: #721c24;
}

.badge-estado-en_proceso {
    background: #fef3c7;
    color: #92400e;
}

.badge-estado-atendido {
    background: #d1fae5;
    color: #065f46;
}

/* === ACCIONES DE MENSAJE (mismo estilo que usuarios) === */
.acciones-mensaje {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.acciones-mensaje .btn-accion {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-family);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.acciones-mensaje .btn-ver {
    background: #e3f2fd;
    color: #0d47a1;
}

.acciones-mensaje .btn-ver:hover {
    background: #bbdefb;
}

.acciones-mensaje .btn-eliminar {
    background: #f8d7da;
    color: #721c24;
}

.acciones-mensaje .btn-eliminar:hover {
    background: #f5c6cb;
}

/* === MODAL DE MENSAJE === */
.modal-mensaje {
    max-width: 700px;
    max-height: 90vh;
}

.modal-mensaje .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.modal-mensaje .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-mensaje .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-mensaje .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-mensaje .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* === DATOS DEL MENSAJE === */
.mensaje-datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    background: var(--fondo-claro);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.mensaje-datos .dato {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mensaje-datos .dato-full {
    grid-column: 1 / -1;
}

.mensaje-datos .dato-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    min-width: 70px;
}

.mensaje-datos .dato-valor {
    color: var(--negro);
    font-size: 14px;
    word-break: break-all;
}

/* === TEXTO DEL MENSAJE === */
.mensaje-texto {
    background: var(--fondo-claro);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.6;
}

.mensaje-texto::-webkit-scrollbar {
    width: 6px;
}

.mensaje-texto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.mensaje-texto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.mensaje-texto-label {
    font-size: 13px;
    color: #555;
    display: block;
    margin-bottom: 6px;
}

/* === NOTAS === */
.mensaje-notas {
    margin-bottom: 16px;
}

.mensaje-notas .notas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.mensaje-notas .notas-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--negro);
    margin: 0;
}

.mensaje-notas .notas-lista {
    max-height: 120px;
    overflow-y: auto;
    background: var(--fondo-claro);
    border-radius: 8px;
    padding: 12px 16px;
}

.mensaje-notas .notas-lista::-webkit-scrollbar {
    width: 6px;
}

.mensaje-notas .notas-lista::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.mensaje-notas .notas-lista::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.mensaje-notas .nota-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    line-height: 1.5;
}

.mensaje-notas .nota-item:last-child {
    border-bottom: none;
}

.mensaje-notas .nota-item .nota-autor {
    font-weight: 600;
    color: var(--naranja);
}

.mensaje-notas .nota-item .nota-fecha {
    font-size: 11px;
    color: var(--gris-texto);
    margin-left: 8px;
}

.mensaje-notas .nota-item .nota-texto {
    display: block;
    margin-top: 2px;
    color: #444;
}

.notas-vacio {
    text-align: center;
    color: var(--gris-texto);
    padding: 12px;
    font-size: 13px;
}

/* === BOTONES DE ESTADO EN MODAL (SIN EMOJIS) === */
.botones-estado {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.botones-estado .btn-estado {
    padding: 6px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    color: #555;
    font-family: var(--font-family);
}

.botones-estado .btn-estado:hover {
    transform: translateY(-1px);
    border-color: var(--naranja);
}

.botones-estado .btn-estado.active-no_leido {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1e40af;
}

.botones-estado .btn-estado.active-en_proceso {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.botones-estado .btn-estado.active-atendido {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}

/* === INPUT DE NOTA === */
.input-nota-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.input-nota-wrapper input[type="text"] {
    flex: 1;
    padding: 8px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--negro);
    background: #fff;
    outline: none;
    transition: border-color .2s;
}

.input-nota-wrapper input[type="text"]:focus {
    border-color: var(--naranja);
}

.input-nota-wrapper .btn-add-nota {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--naranja);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-family);
    font-size: 13px;
    white-space: nowrap;
}

.input-nota-wrapper .btn-add-nota:hover {
    background: var(--naranja-hover);
    transform: translateY(-1px);
}

/* === BADGE NUEVO === */
.badge-nuevo {
    font-size: 9px;
    padding: 1px 8px;
    margin-left: 4px;
}

/* === EMAIL LINK === */
.email-link {
    color: var(--naranja);
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* === FECHA MENSAJE === */
.fecha-mensaje {
    font-size: 12px;
    color: var(--gris-texto);
}

/* === MODAL CLOSE === */
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gris-texto);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: auto;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--fondo-claro);
}

/* === DETALLE LOADING === */
.detalle-loading {
    text-align: center;
    padding: 40px;
    color: var(--gris-texto);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .mensaje-datos {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .mensaje-datos .dato {
        flex-direction: column;
        gap: 0;
    }
    
    .mensaje-datos .dato-full {
        grid-column: 1;
    }
    
    .mensaje-datos .dato-label {
        min-width: auto;
        font-size: 12px;
    }
    
    .modal-mensaje {
        max-width: 95%;
    }
    
    .modal-mensaje .modal-body {
        max-height: 50vh;
    }
    
    .botones-estado {
        flex-direction: column;
    }
    
    .botones-estado .btn-estado {
        width: 100%;
        justify-content: center;
    }
    
    .input-nota-wrapper {
        flex-direction: column;
    }
    
    .input-nota-wrapper .btn-add-nota {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   ARTÍCULOS - ESTILOS ADICIONALES
   ============================================================ */

/* Badges de estado */
.badge-estado {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-estado-publicado {
    background: #d1fae5;
    color: #065f46;
}

.badge-estado-oculto {
    background: #f8d7da;
    color: #721c24;
}

/* Acciones de artículos */
.acciones-articulo {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.acciones-articulo .btn-accion {
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-family);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.acciones-articulo .btn-ver {
    background: #e3f2fd;
    color: #0d47a1;
}

.acciones-articulo .btn-ver:hover {
    background: #bbdefb;
}

.acciones-articulo .btn-editar {
    background: #e8f0fe;
    color: #1a73e8;
}

.acciones-articulo .btn-editar:hover {
    background: #d2e3fc;
}

.acciones-articulo .btn-publicar {
    background: #d4edda;
    color: #155724;
}

.acciones-articulo .btn-publicar:hover {
    background: #b8dfc6;
}

.acciones-articulo .btn-ocultar {
    background: #fff3cd;
    color: #856404;
}

.acciones-articulo .btn-ocultar:hover {
    background: #ffeaa7;
}

.acciones-articulo .btn-eliminar {
    background: #f8d7da;
    color: #721c24;
}

.acciones-articulo .btn-eliminar:hover {
    background: #f5c6cb;
}

/* Badge de adjuntos */
.badge-adjuntos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f3f4;
    color: #5f6368;
}

.badge-adjuntos i {
    font-size: 13px;
}

/* Columnas */
.col-adjuntos {
    width: 100px;
    text-align: center;
}

.fecha-articulo {
    font-size: 12px;
    color: var(--gris-texto);
}


/* Badge de categoría */
.badge-categoria {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #e8eaf6;
    color: #3949ab;
}