/* ==========================================================================
   INTRANET CORPORATIVA - SISTEMA DE DISEÑO (COMPACTO & THEMEABLE)
   ========================================================================== */

/* 1. CONFIGURACIÓN DEL TEMA (VARIABLES) */
:root {
    /* --- PALETA DE COLORES --- */
    /*--primary: #0d47a1;*/
    --primary: #a4b9d9;
    --primary-hover: #0a367a;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Fondos y Textos */
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;

    /* --- TIPOGRAFÍA (3 NIVELES) --- */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-ui: 'Open Sans', sans-serif;

    /* --- DIMENSIONES Y ESPACIADO (AJUSTADO) --- */
    --radius-card: 10px;          /* Bordes un poco más sutiles */
    --radius-btn: 6px;
    --card-padding: 1.25rem;      /* Padding interno reducido (antes 1.5rem) */
    
    /* --- SOMBRAS --- */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 16px rgba(0,0,0,0.1);

/* --- VARIABLES PARA PERSONALIZACIÓN (Módulo Futuro) --- */
    
    /* Color de Acento / Festivo (Para cumpleaños o destacados) */
    --color-accent: #d63384;       /* Frambuesa por defecto */
    --color-accent-subtle: #fce4ec; /* Fondo muy suave del acento */
    --color-accent-hover: #fff0f6;  /* Fondo hover */
    
    /* Color de Tarjeta Hero (Degradados) */
    --hero-overlay-start: rgba(0,0,0,0.8);
    --hero-overlay-end: transparent;

}

/* 2. RESET Y BASES */
body {
    background-color: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.5; /* Line-height un poco más compacto */
    font-size: 0.95rem; /* Fuente base ligeramente más pequeña para ganar espacio */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--primary-hover); }

/* 3. LAYOUT (NAVBAR & FOOTER) */
.navbar-custom {
    background-color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-ui);
    padding-top: 0.5rem; padding-bottom: 0.5rem; /* Navbar más delgado */
}
.navbar-custom .navbar-brand, .navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 0.95rem;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: #ffffff !important;
    transform: translateY(-1px);
}
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    margin-top: 5px;
    font-size: 0.9rem;
}
/* --- FOOTER UNIFICADO --- */


/* Opcional: Agrega aquí los estilos del Badge del temporizador 
   para limpiar tu base.html y tener todo el CSS junto */
.footer-timer-badge {
    font-size: 0.85rem;
    background-color: #343a40;
    padding: 5px 12px;
    border-radius: 20px;
    display: none; /* Se activa con JS */
    transition: all 0.3s ease;
}

.footer-timer-badge.danger {
    background-color: #dc3545; /* Rojo alerta */
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.nav-avatar-img {
    width: 100%; height: 100%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}
.nav-avatar-placeholder {
    width: 100%; height: 100%; font-size: 0.8rem; font-weight: bold;
    background-color: rgba(255,255,255,0.2); color: white;
}

/* 4. TARJETAS GENÉRICAS (SISTEMA FLEXIBLE) */
.card-custom, .news-card, .process-card, .course-card, .hero-card, .widget-card, .profile-card, .emp-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /*height: 100%;*/ 
}

.card-custom:hover, .news-card:hover, .process-card:hover, .course-card:hover, .hero-card:hover, .emp-card:hover {
    transform: translateY(-3px); /* Movimiento más sutil */
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* Cuerpos de tarjeta */
.card-body-flex, .news-body, .course-body, .process-card-desc, .emp-body {
    padding: var(--card-padding);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 5. MÓDULO: DASHBOARD / HOME (AJUSTADO) */
.dashboard-header { margin-bottom: 1.5rem; }
.dashboard-greeting { font-weight: 300; font-size: 1.6rem; color: #444; margin: 0; }
.dashboard-user-name { font-weight: 700; color: #222; }

/* Hero Card (Noticia Principal) - ALTURA REDUCIDA */
.hero-card {
    height: 280px; /* Reducido de 400px a 280px */
    border: none;
    position: relative;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}
.hero-bg {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
    transition: transform 0.5s ease;
}
.hero-card:hover .hero-bg { transform: scale(1.03); }
.hero-fallback-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.hero-content {
    position: relative; z-index: 2; 
    padding: 1.5rem; /* Padding reducido */
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white; pointer-events: none;
}
.hero-link-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.hero-badge {
    background: var(--primary); color: white; padding: 3px 8px;
    border-radius: 4px; font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    display: inline-block; margin-bottom: 0.4rem;
}
.hero-title { font-size: 1.6rem; margin: 0.3rem 0; line-height: 1.1; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }

/* Noticias Secundarias Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Tarjetas un poco más angostas */
    gap: 1.25rem;
}
.news-img-wrapper {
    height: 140px; /* Reducido de 180px a 140px */
    width: 100%; overflow: hidden; background-color: #eee;
}
.news-img { width: 100%; height: 100%; object-fit: cover; }
.news-img-placeholder {
    width: 100%; height: 140px; background: #eee;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #ccc;
}
.news-title { font-size: 1rem; margin: 0.5rem 0; line-height: 1.3; font-weight: 700; }
.news-title a { color: var(--text-main); }
.news-title a:hover { color: var(--primary); }

/* Widgets */
.widget-card { padding: var(--card-padding); margin-bottom: 1.25rem; border-left: 4px solid transparent;height: auto !important; min-height: auto !important; }
.widget-title { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.widget-stat { font-size: 2rem; font-weight: 800; display: block; line-height: 1; margin-bottom: 0.25rem; font-family: var(--font-title); }
.widget-link { margin-top: auto; font-family: var(--font-ui); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; font-size: 0.9rem; }

.widget-notifications { border-left-color: #6f42c1; }
.text-notification { color: #6f42c1 !important; }
.widget-support { border-left-color: #17a2b8; }
.text-support { color: #17a2b8 !important; }


.col-lg-3 .widget-card {
    padding: 0.8rem 1rem !important; /* Más ajustado que el estándar de 1.25rem */
    margin-bottom: 1rem !important;
}

.widget-title i {
    font-size: 1.1rem;
}

/* 6. MÓDULO: PERFIL (Consolidado) */
.profile-card { margin-bottom: 2rem; border: none; }
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 2.5rem 1.5rem; text-align: center; color: white;
}
.profile-avatar-container {
    width: 110px; height: 110px; margin: 0 auto 1rem;
    border-radius: 50%; border: 4px solid rgba(255,255,255,0.3);
    background: white; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-placeholder { font-size: 2.5rem; font-weight: bold; color: var(--primary); }
.profile-id-badge {
    background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 20px;
    font-size: 0.75rem; display: inline-block; margin-top: 0.5rem; backdrop-filter: blur(4px);
}
.profile-section-title {
    color: #444; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem; font-family: var(--font-title); font-size: 1rem;
}
.profile-label {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700; font-family: var(--font-ui); margin-bottom: 2px;
}
.profile-value { font-size: 0.95rem; font-weight: 500; margin-bottom: 1rem; }
.profile-security-box { background: var(--light); padding: 1.25rem; border-radius: 8px; margin-top: 1.5rem; border: 1px solid var(--border-color); }

/* 7. MÓDULO: WORKFLOWS & TAREAS */
.process-card { padding: var(--card-padding); }
.process-card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.process-card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-card-desc { font-size: 0.9rem; margin-bottom: 1rem; }
.btn-start-process {
    width: 100%; margin-top: auto;
    background: var(--primary); color: white; border: none; padding: 8px;
    border-radius: var(--radius-btn); font-weight: 600; font-family: var(--font-ui);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem;
}
.btn-start-process:hover { background: var(--primary-hover); opacity: 1; color: white; }

.task-card {
    border-left: 4px solid var(--primary); border-radius: 8px; margin-bottom: 1rem;
}
.btn-process-action {
    background: var(--primary); color: white; padding: 6px 16px;
    border-radius: 50px; font-weight: 600; text-decoration: none; font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}
.btn-process-action:hover { background: var(--primary-hover); color: white; }

/* 8. MÓDULO: LMS (CURSOS) */
.course-img-wrapper { height: 140px; background: #eee; position: relative; }
.course-badge {
    position: absolute; top: 8px; right: 8px; padding: 3px 8px;
    border-radius: 20px; font-size: 0.65rem; font-weight: bold; text-transform: uppercase; color: white;
}
.badge-pending { background: var(--warning); color: #333; }
.badge-approved { background: var(--success); }

/* 9. MÓDULO: DIRECTORIO */
.directorio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.emp-card { text-align: center; }
.emp-header { background: var(--primary); height: 70px; }
.emp-avatar-container {
    width: 80px; height: 80px; margin: -40px auto 10px;
    border-radius: 50%; background: white; padding: 3px;
}
.emp-avatar-img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.btn-jerarquia {
    margin-top: auto; border: 1px solid var(--border-color); background: white;
    color: var(--text-muted); border-radius: 20px; padding: 3px 10px; font-size: 0.75rem;
}
.btn-jerarquia:hover { border-color: var(--primary); color: var(--primary); }

/* 10. UTILIDADES GLOBALES */
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }

/* ==========================================================================
   ESTILOS LANDING PAGE (REDISEÑO)
   ========================================================================== */

/* Hero Section: Fondo degradado corporativo */
.landing-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1rem 1rem 3rem 1rem; /* Padding inferior extra para el solapamiento */
    margin-bottom: 3rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); /* Corte diagonal moderno */
    text-align: center;
}

.landing-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.landing-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
}

/* Botón de Login mejorado */
.btn-landing-login {
    background-color: var(--warning); /* Amarillo para contraste sobre azul */
    color: #333;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-landing-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    background-color: #ffca2c; /* Un amarillo un poco más claro */
    color: #000;
}

/* Cajas de Características (Iconos) */
.feature-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.8rem;
    color: var(--primary);
}

/* Bordes de color para diferenciar servicios */
.feature-card.border-primary { border-bottom-color: var(--primary); }
.feature-card.border-success { border-bottom-color: var(--success); }
.feature-card.border-warning { border-bottom-color: var(--warning); }

/* Inputs Django */
input[type="text"], input[type="password"], input[type="email"], input[type="file"], select, textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #ced4da; border-radius: var(--radius-btn);
    display: block; box-sizing: border-box; font-family: var(--font-body); font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

/* Botones genéricos (Pill, Custom) */
.btn-custom {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-btn); transition: all 0.2s;
}

/* Animaciones */
.fade-in { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate { animation-duration: 0.2s; animation-fill-mode: both; }
@keyframes slideIn { from { transform: translateY(1rem); opacity: 0; } to { transform: translateY(0rem); opacity: 1; } }
.slideIn { animation-name: slideIn; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/* ==========================================================================
   11. MÓDULO: KIOSCO (Login & Interfaz Touch)
   ========================================================================== */

/* Contenedor principal del Kiosco */
.kiosco-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Encabezado de la tienda */
.kiosco-header-card {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tarjeta de Usuario Seleccionable */
.kiosco-user-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.kiosco-user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.kiosco-user-card:active {
    transform: scale(0.98);
}

/* Avatar del Usuario */
.kiosco-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid var(--border-color);
    background: white;
    transition: border-color 0.2s;
}

.kiosco-user-card:hover .kiosco-avatar-wrapper {
    border-color: var(--primary);
}

.kiosco-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Textos de la tarjeta */
.kiosco-name {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.kiosco-role {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* --- MODAL Y TECLADO NUMÉRICO --- */

/* Input del PIN (Visor) */
.kiosco-pin-display {
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-btn);
    font-size: 3rem;
    text-align: center;
    letter-spacing: 1.5rem; /* Separa los puntos o números */
    color: var(--primary);
    font-weight: 700;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: monospace; /* Para que los asteriscos se vean centrados */
}

.kiosco-pin-display:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
}

/* Grilla del teclado */
.kiosco-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 320px;
    margin: 0 auto;
}

/* Botones del teclado */
.btn-numpad {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.1s;
    cursor: pointer;
}

.btn-numpad:hover {
    background-color: var(--bg-body);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-numpad:active {
    background-color: var(--primary);
    color: white;
    transform: scale(0.95);
    box-shadow: none;
}

/* Botones de acción del teclado */
.btn-numpad-clear {
    color: var(--danger);
    font-size: 1.5rem;
}
.btn-numpad-enter {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-numpad-enter:hover {
    background-color: var(--primary-hover);
    color: white;
}


/* ==========================================================================
   12. MÓDULO: KIOSCO DASHBOARD (Pantalla Principal del Empleado)
   ========================================================================== */

.dashboard-kiosco-header {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--success); /* Barra verde de éxito al loguear */
    border: 1px solid var(--border-color); /* Borde sutil para consistencia */
    border-left-width: 5px; /* Asegura que el borde izquierdo sea grueso */
}

.kiosco-welcome-text {
    color: var(--primary);
    margin-bottom: 0;
    font-family: var(--font-title);
    font-weight: 700;
}

.kiosco-welcome-role {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    font-family: var(--font-ui);
}

/* Grilla de acciones grandes */
.kiosco-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Tarjeta de Acción (Botón Gigante) */
.kiosco-action-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px; /* Altura mínima para uniformidad visual */
    position: relative;
    overflow: hidden;
}

.kiosco-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* Icono dentro de la tarjeta */
.kiosco-action-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary); /* Por defecto gris */
    transition: color 0.2s;
}

/* Colores específicos para iconos al hacer hover (opcional, o usa variables) */
.kiosco-action-card:hover .kiosco-action-icon {
    color: var(--primary);
}

/* Variaciones de color por tipo de tarjeta (Si quieres diferenciarlas) */
.icon-type-info { color: var(--info) !important; }
.icon-type-warning { color: var(--warning) !important; }
.icon-type-success { color: var(--success) !important; }
.icon-type-primary { color: var(--primary) !important; }

/* Título de la acción */
.kiosco-action-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Badge o Etiqueta (Ej: "2 Nuevos") */
.kiosco-action-badge {
    background: var(--danger);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 8px;
    font-family: var(--font-ui);
    box-shadow: var(--shadow-sm);
}

/* Temporizador de inactividad */
.kiosco-idle-timer {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2.5rem;
    font-family: var(--font-ui);
    opacity: 0.8;
}


/* Ajuste de Teaser de Noticia (Vista Anónima) */
.news-teaser-container {
    min-height: auto; /* Evita el alto desproporcionado */
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.news-teaser-text {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Fix para Botones con Texto Invisible */
.btn-primary, .btn-login-hero {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important; /* Texto Blanco */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* --- 1. CONFIGURACIÓN ESTRUCTURAL (EL PADRE) --- */
html {
    height: 100%;
}

body {
    /* Esto es vital: El cuerpo ocupa al menos el 100% de la pantalla */
    min-height: 100vh;
    /* Pero si el contenido es mayor, el cuerpo crece automáticamente */
    height: auto !important;
    
    /* Configuración Flexbox Vertical */
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* --- 2. EL CONTENIDO (EL HIJO QUE CRECE) --- */
/* Apuntamos directamente a la etiqueta 'main' para que funcione en TODAS las páginas */
main {
    /* flex-grow: 1 -> Empuja al footer hacia abajo */
    /* flex-shrink: 0 -> No permite que el contenido se aplaste */
    /* flex-basis: auto -> Tamaño natural */
    flex: 1 0 auto;
    
    width: 100%;
    position: relative;
}

/* --- 3. EL FOOTER (EL HIJO ESTÁTICO) --- */
.footer-custom {
    flex-shrink: 0; /* Evita que el footer se encoja */
    width: 100%;
    position: relative !important; /* IMPORTANTE: Nunca fixed */
    margin-top: auto; /* Técnica de seguridad extra */
    z-index: 10;
    
    /* Tus estilos visuales */
    background-color: #1a1d20;
    color: #adb5bd;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    font-family: var(--font-ui);
}



/* Estilos de la Caja de Teaser (Vista Anónima) */
.news-teaser-box {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 3rem !important;
    margin: 2rem auto !important;
    max-width: 800px;
    /* ELIMINAR CUALQUIER height: 100% que pueda existir */
    height: auto !important; 
    min-height: auto !important;
    box-shadow: var(--shadow-md);
}

.news-teaser-text p {
    font-style: italic;
    font-family: var(--font-ui);
}

/* Fix de Color del Botón Iniciar Sesión */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important; /* Fuerza el color de letra a blanco */
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
}







/* Limita el alto de la noticia teaser para evitar el descuadre visual */
.news-teaser-box {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem !important;
    min-height: auto !important; /* Evita que crezca proporcionalmente a la pantalla */
}



.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease-in-out; /* Animación suave al cargar */
}

.results-container {
    max-height: 200px;
    overflow-y: auto; /* Por si hay muchas opciones */
}


/* Animación sutil para llamar la atención en el Kiosco */
@keyframes pulse-subtle {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.pulse-subtle {
    animation: pulse-subtle 3s infinite ease-in-out;
}

/* Grilla de noticias compacta para el Hub de Tienda */
.kiosco-container .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

/* Ajuste del PIN display para que no se vea como un input de texto normal */
.kiosco-pin-display {
    border: none;
    background: #f8f9fa;
    color: var(--primary);
    font-size: 2.5rem;
    letter-spacing: 1rem;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-btn);
}

/* Grilla de noticias en modo Kiosco */
.kiosco-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.kiosco-news-card {
    position: relative;
    height: 180px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.kiosco-news-card:hover {
    transform: translateY(-5px);
}

.kiosco-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kiosco-news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ececec, #f9f9f9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

/* El degradado sobre la imagen para que el texto sea legible */
.kiosco-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 60%;
}

.kiosco-news-overlay h6 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: 0.9rem;
}


/* Estilos para el monitor de 22" */
.kiosco-profile-card {
    min-width: 180px;
    background: white;
    padding: 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.kiosco-profile-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-avatar-mini {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 12px;
}

.profile-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.news-item-horizontal {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s;
}

.news-item-horizontal:hover { background: #f8f9fa; }

.news-img-box {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-img-box img { width: 100%; height: 100%; object-fit: cover; }

/* Para que la entrada de PIN acepte teclado físico */
.kiosco-pin-display:focus {
    box-shadow: none;
    border-color: var(--primary);
    background: white;
}


.hover-light:hover {
    background-color: #fff9e6;
    transform: translateX(5px);
}
.transition-all {
    transition: all 0.3s ease;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}


/* Ajuste para iconos de humor en monitor 22" */
.mood-option .mood-btn {
    width: 48px !important; /* Ajustado para que 5 quepan en col-4 */
    height: 48px !important;
    font-size: 1.4rem !important;
    padding: 0 !important;
    margin: 2px !important;
}

/* Fix para noticia sin foto */
.news-placeholder-mini {
    background: #f0f2f5;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    height: 100%;
}



.kiosco-mini-widget .progress {
    height: 8px !important; /* Barras de resultados más visibles */
}

/* Indicador de pendientes en la ficha del vendedor */
.profile-badge-notify {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--bs-danger);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* Grilla del Teclado Numérico */
.kiosco-numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 350px;
    margin: 0 auto;
}

.btn-numpad {
    height: 80px;
    font-size: 2rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.1s ease;
}

.btn-numpad:active {
    transform: scale(0.95);
    background-color: var(--primary);
    color: white;
}

.btn-numpad-danger { color: #dc3545; }
.btn-numpad-secondary { color: #6c757d; }

/* Efecto visual al presionar con teclado físico */
.btn-numpad.active-key {
    background-color: var(--primary);
    color: white;
    transform: scale(0.95);
}

/* Estilo para cumpleañeros de HOY */
.birthday-today-highlight {
    background: linear-gradient(135deg, var(--bs-warning) 0%, #ffc107 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transform: scale(1.02);
    border: 2px solid white;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* Badge de fecha */
.date-badge {
    box-shadow: var(--shadow-sm);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}


/* Animación de rebote para notificaciones */
@keyframes bounce-subtle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -60%) scale(1.1); }
}
.animate-bounce {
    animation: bounce-subtle 2s infinite ease-in-out;
}

/* Asegurar que la tarjeta no recorte la burbuja */
.kiosco-profile-card {
    /* ... tus estilos previos ... */
    overflow: visible !important; /* CLAVE: permite que la burbuja salga del borde */
}


/* Contenedor de la grilla de usuarios */
.kiosco-grid {
    display: grid;
    /* Forzamos 5 columnas de igual tamaño */
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; /* Espacio entre tarjetas */
    width: 100%;
}

@media (max-width: 1600px) {
    .kiosco-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en monitores medianos */
    }
}

@media (max-width: 1200px) {
    .kiosco-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en laptops */
    }
}



/* Tarjeta del Usuario */
.kiosco-profile-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 15px 20px;
    
    /* Flexbox para alinear avatar y texto horizontalmente */
    display: flex; 
    align-items: center;
    gap: 15px;
    
    /* Dimensiones y Transiciones */
    min-height: 90px; /* Altura mínima para que no se vea aplastada */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    
    /* CRÍTICO PARA LA BURBUJA ROJA */
    position: relative; 
    overflow: visible !important; /* Permite que la burbuja salga del borde */
    margin-top: 10px; /* Espacio extra arriba para la burbuja */
    margin-right: 10px; /* Espacio extra a la derecha */
}

.kiosco-profile-card:active {
    transform: scale(0.98);
    background-color: #f8f9fa;
}

/* Estilo del Avatar (Letra o Foto) */
.profile-avatar-mini {
    width: 50px;
    height: 50px;
    flex-shrink: 0; /* Evita que se aplaste */
    border-radius: 12px;
    overflow: hidden;
}

.profile-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-letter {
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Texto */
.profile-info-mini {
    flex-grow: 1; /* Ocupa el espacio restante */
    overflow: hidden; /* Para que el truncate funcione */
}

/* Ajuste de la Burbuja Roja */
.badge-notification {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(30%, -30%); /* La mueve hacia la esquina exterior */
    z-index: 10;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* --- ESTILOS DASHBOARD KIOSCO (NIVEL 2) --- */

/* Contenedor de la Tarjeta del Módulo */
.card-module {
    display: block;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #eef0f2;
    height: 320px; /* Altura fija para uniformidad en monitores grandes */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
    position: relative;
}

/* Estado ACTIVO (Hover y Click) */
.active-module:hover {
    transform: translateY(-10px); /* Efecto de elevación */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--bs-primary);
    cursor: pointer;
}

/* Iconos Circulares Grandes */
.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.active-module:hover .icon-circle {
    transform: scale(1.1); /* El icono crece un poco al pasar el mouse */
}

/* Estado DESHABILITADO (Próximamente) */
.disabled-module {
    background-color: #f9fafb;
    border-color: #f0f0f0;
    cursor: not-allowed; /* Muestra prohibido al pasar mouse */
    opacity: 0.9;
}

.disabled-module .grayscale {
    filter: grayscale(100%);
    opacity: 0.5;
}

/* Etiqueta "Próximamente" en diagonal o flotante */
.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* Animación de entrada suave */
.fade-down {
    animation: fadeDown 0.6s ease-out forwards;
}
.fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

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


/* --- ESTILOS DASHBOARD KIOSCO (NIVEL 2) --- */

/* Base de la Tarjeta */
.card-module {
    display: block;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eef0f2;
    height: 340px; /* Altura fija para que se vean uniformes */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
}

/* Estado ACTIVO (Hover y Click) */
.active-module:hover {
    transform: translateY(-8px); /* Elevación suave */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); /* Sombra más fuerte al pasar mouse */
    border-color: var(--bs-primary);
    cursor: pointer;
}

/* Iconos */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    transition: transform 0.3s ease;
}

.active-module:hover .icon-circle {
    transform: scale(1.1);
}

/* Estado DESHABILITADO (Gris y Bloqueado) */
.disabled-module {
    background-color: #f8f9fa; /* Fondo gris claro */
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.85;
}

.disabled-module .grayscale {
    filter: grayscale(100%);
    opacity: 0.4;
}

/* Etiqueta Próximamente */
.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Animaciones de Entrada */
.fade-down { animation: fadeDown 0.6s ease-out forwards; }
.fade-up { animation: fadeUp 0.8s ease-out forwards; }

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

/* Botón flotante para salir (Hover) */
.hover-scale:hover {
    transform: scale(1.05);
}


/* Estilo para opciones del Widget */
.widget-opt {
    transition: all 0.2s;
    padding: 10px 15px;
    border-radius: 12px !important;
}
.widget-opt:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}
.btn-check:checked + .widget-opt {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    transform: scale(1.02);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* ==========================================================================
   13. MÓDULO: SURVEYS / CUESTIONARIOS (NIVEL 3)
   ========================================================================== */

/* Contenedor de la Pregunta */
.question-block {
    opacity: 0; /* Para animación de entrada */
    animation: fadeUp 0.5s ease-out forwards;
}

/* --- TARJETAS DE SELECCIÓN (Radio y Checkbox) --- */
/* Ocultamos el input nativo pero mantenemos la accesibilidad */
.custom-input-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.custom-input-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* El contenedor visual de la opción */
.custom-input-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    transition: all 0.2s ease-in-out;
    margin-bottom: 0.5rem;
}

.custom-input-label:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    transform: translateX(5px);
}

/* Estado SELECCIONADO (Radio/Check) */
.custom-input-card input:checked + .custom-input-label {
    background-color: #e8f0fe; /* Fondo azul muy suave */
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(13, 71, 161, 0.1);
}

/* Indicadores visuales (Círculo o Cuadrado) */
.input-indicator {
    height: 20px;
    width: 20px;
    border: 2px solid #adb5bd;
    background-color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-indicator.radio { border-radius: 50%; }
.input-indicator.check { border-radius: 4px; }

/* Indicador Activo */
.custom-input-card input:checked + .custom-input-label .input-indicator {
    border-color: var(--primary);
    background-color: var(--primary);
}

/* El punto dentro del Radio o el Check */
.custom-input-card input:checked + .custom-input-label .input-indicator::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.custom-input-card input:checked + .custom-input-label .input-indicator.check::after {
    content: '✓'; /* Check simple */
    background: transparent;
    color: white;
    font-size: 14px;
    line-height: 1;
    font-weight: bold;
    width: auto; height: auto;
    border-radius: 0;
}

/* --- BOTONES DE ESCALA (1-5) --- */
.scale-container {
    display: flex;
    gap: 10px;
}

.scale-btn-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    background-color: #fff;
    border: 1px solid var(--primary);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.2s;
}

.scale-btn-label:hover {
    background-color: #e8f0fe;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.custom-input-card input:checked + .scale-btn-label {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}


/* --- LISTA DE TAREAS EN WIDGET (Tarjeta Amarilla/Pendientes) --- */
.widget-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.widget-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.6); /* Blanco semitransparente */
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 12px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    color: #856404; /* Color texto warning oscuro */
    transition: all 0.2s;
}

.widget-task-item:hover {
    background-color: #fff;
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #533f03;
}

.widget-task-icon {
    font-size: 1.1rem;
    margin-right: 8px;
    opacity: 0.7;
}

/* Cuando solo hay 1 item y queremos destacarlo mucho */
.widget-task-single {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    display: block; /* Ocupa todo el ancho */
}


/* --- FIX DE ALTURA PARA DASHBOARD KIOSCO --- */
/* Esta clase fuerza a cualquier tarjeta a medir lo mismo que los módulos (340px) */
.h-module-fix {
    height: 340px !important;
    display: flex;
    flex-direction: column;
}

/* Si aplicamos esto a un wrapper, forzamos al widget hijo a expandirse */
.h-module-fix .widget-card {
    height: 100% !important;
    min-height: 100% !important;
    display: flex;
    flex-direction: column;
}

/* Asegura que el contenido interno (listas) ocupe el espacio disponible */
.h-module-fix .widget-card .card-body,
.h-module-fix .widget-card .results-list,
.h-module-fix .widget-card .widget-task-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente si hay poco contenido */
}

/* Ajuste específico para que la lista de resultados scrollee si es muy larga */
.h-module-fix .widget-card .results-list {
    justify-content: flex-start;
    overflow-y: auto;
}


/* --- ESTILOS DEL CARRUSEL LANDING --- */
.landing-carousel {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.landing-carousel-item {
    height: 400px; /* Altura fija para uniformidad */
    position: relative;
}

.landing-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradiente oscuro para que el texto blanco se lea siempre */
.landing-carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem 2rem;
    color: white;
    text-align: left;
}


/* --- WIDGET CUMPLEAÑOS (Personalizable) --- */
.widget-birthdays {
    /* Borde izquierdo usa la variable de acento */
    border-left-color: var(--color-accent) !important; 
}

.birthday-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-btn);
    transition: background 0.2s;
}

.birthday-item:hover {
    background-color: var(--bg-body); /* O usa un gris muy suave */
}

.birthday-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}

/* Fallback para avatar sin foto (Iniciales) */
.birthday-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-body);
    color: var(--text-muted);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold;
    font-size: 1.1rem;
}

.birthday-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.birthday-date {
    font-size: 0.75rem;
    color: var(--color-accent); /* Usa variable */
    font-weight: 600;
    background: var(--color-accent-subtle); /* Usa variable */
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2px;
}

/* Estado "Hoy" (Destacado) */
.birthday-today {
    background: linear-gradient(45deg, var(--color-accent-hover), #fff);
    border: 1px solid var(--color-accent-subtle);
}

.birthday-today .birthday-date {
    background: var(--color-accent); /* Fondo sólido del color acento */
    color: white;
    animation: pulse-subtle 2s infinite;
}

/* Ajuste al Hero para que use las variables de sombra */
.hero-content {
    background: linear-gradient(to top, var(--hero-overlay-start) 0%, rgba(0,0,0,0.4) 60%, var(--hero-overlay-end) 100%);
}


/* ==========================================================================
   NUEVO DASHBOARD EJECUTIVO (ADD-ON)
   ========================================================================== */

/* 1. Summary Cards (KPIs Superiores) */
.summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Barra lateral sutil para indicar tipo (reemplaza al borde grueso) */
.summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.summary-card.type-primary::before { background-color: var(--primary); }
.summary-card.type-warning::before { background-color: var(--warning); }
.summary-card.type-success::before { background-color: var(--success); }
.summary-card.type-info::before { background-color: var(--info); }

.summary-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
/* Fondos suaves para los iconos */
.bg-soft-primary { background-color: rgba(13, 71, 161, 0.1); color: var(--primary); }
.bg-soft-warning { background-color: rgba(255, 193, 7, 0.15); color: #856404; }
.bg-soft-success { background-color: rgba(25, 135, 84, 0.1); color: var(--success); }
.bg-soft-info { background-color: rgba(13, 202, 240, 0.1); color: #0c9ebc; }

.summary-data h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: var(--text-main);
}
.summary-data span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Carrusel Ejecutivo */
.carousel-executive {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}
.carousel-executive .carousel-item {
    height: 380px; /* Altura fija para consistencia */
}
.carousel-executive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-caption-executive {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    text-align: left;
}

/* 3. Sidebar Limpio (Unified Widget) */
.widget-clean {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.widget-clean-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.widget-clean-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    margin: 0;
}

/* --- WIDGET CUMPLEAÑOS MEJORADO --- */

/* Estilo del Recuadro de Fecha (Día sobre Mes) */
.date-box {
    width: 45px;          /* Ancho fijo para alineación perfecta */
    padding: 6px 2px;     /* Espaciado interno */
    flex-shrink: 0;       /* Evita que se aplaste si el nombre es largo */
    transition: all 0.2s ease;
}

/* Efecto Hover en la fila */
.birthday-row {
    transition: background-color 0.2s, transform 0.2s;
}

/* Solo las filas normales (no hoy) cambian al pasar el mouse */
.birthday-row:not(.birthday-today-highlight):hover {
    background-color: #f8f9fa !important;
    transform: translateX(3px);
}

/* Estilo Especial para HOY (Ya lo tenías, pero ajustado para este layout) */
.birthday-today-highlight {
    background: linear-gradient(to right, #fff5f5, #fff); /* Degradado rojo muy suave */
    border-left: 4px solid var(--danger);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

/* Scrollbar personalizado para la lista (delgado y elegante) */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Corrección para botones del carrusel */
.carousel-caption-executive a.btn {
    position: relative; /* Necesario para que z-index funcione */
    z-index: 1000;      /* Asegura que esté por encima de la imagen y los indicadores */
    pointer-events: auto; /* Fuerza que el botón reciba el clic */
}

/* Aseguramos que el contenedor de texto no bloquee los clics si cubre mucho espacio */
.carousel-caption-executive {
    pointer-events: none; /* El contenedor transparente deja pasar el clic... */
}

/* ...pero reactivamos los clics para el texto y los botones dentro de él */
.carousel-caption-executive h2,
.carousel-caption-executive p,
.carousel-caption-executive span {
    pointer-events: auto;
}

/* Corrección para botones del carrusel */
.carousel-caption-executive a.btn {
    position: relative; /* Necesario para que z-index funcione */
    z-index: 1000;      /* Asegura que esté por encima de la imagen y los indicadores */
    pointer-events: auto; /* Fuerza que el botón reciba el clic */
}

/* Aseguramos que el contenedor de texto no bloquee los clics si cubre mucho espacio */
.carousel-caption-executive {
    pointer-events: none; /* El contenedor transparente deja pasar el clic... */
}

/* ...pero reactivamos los clics para el texto y los botones dentro de él */
.carousel-caption-executive h2,
.carousel-caption-executive p,
.carousel-caption-executive span {
    pointer-events: auto;
}


/* ==========================================================================
   KIOSCO LOGIN & WIDGETS (CORREGIDO)
   ========================================================================== */

/* 1. Altura Unificada */
.kiosco-widget-fixed {
    min-height: 450px;
    height: 100%;
}

/* 2. Overlay del Carrusel */
.kiosco-carousel-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 15%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none; /* Deja pasar clicks generales */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    text-align: left;
    z-index: 10; 
}

/* 3. Contenido dentro del Carrusel (Texto y Botones) */
.kiosco-carousel-content {
    pointer-events: auto; /* Reactiva clicks */
    margin-bottom: 1.5rem;
    position: relative;
    /* FIX CRÍTICO: Z-Index 30 para estar POR ENCIMA de las flechas (que tienen 20) */
    z-index: 30; 
}

/* 4. Controles (Flechas) */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 20; 
}




/* ==========================================================================
   14. MÓDULO: NOTIFICACIONES (DETALLE / CONTENIDO RICO)
   ========================================================================== */

/* Contenedor principal del cuerpo del mensaje */
.message-content {
    overflow-wrap: break-word; /* Evita que palabras largas rompan el layout */
    word-wrap: break-word;
}

/* 1. Imágenes Responsivas: Nunca exceden el ancho del padre */
.message-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;         /* Bordes redondeados estéticos */
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;             /* Espaciado vertical */
    display: block;             /* Evita comportamientos extraños de inline */
}

/* 2. Tablas: Scroll horizontal si son muy anchas */
.message-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;           /* Barra de scroll si la tabla es gigante */
    margin-bottom: 1rem;
    border-collapse: collapse;
}

/* Estilo básico para tablas del editor si no traen estilo */
.message-content table td, 
.message-content table th {
    padding: 8px;
    border: 1px solid var(--border-color);
}

/* 3. Videos (Iframes): Responsivos */
.message-content iframe,
.message-content video {
    max-width: 100%;
    border-radius: 8px;
}

/* 4. Listas y Párrafos: Ajustes de espaciado */
.message-content ul, 
.message-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.message-content p {
    margin-bottom: 1rem;
}




