/* css/styles.css */

/* Importar la fuente Inter desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #141520;
    --bg-accent: #27283c;
    --text-primary: #f4f3f6;
    --text-muted: #a5a3bc;
    
    /* Acentos Institucionales */
    --color-ven-blue: #8b5cf6;
    --color-ven-yellow: #f59e0b;
    --color-ven-red: #f43f5e;
    
    /* Estados del Semáforo */
    --color-green: #10b981;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;
    
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Scrollbars personalizadas para un diseño premium */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-ven-blue);
}

/* ============================================================================
   ESTILOS DE LOGIN (index.php)
   ============================================================================ */
.login-body {
    background: radial-gradient(circle at center, #27283c 0%, #0a0b10 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.login-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    padding: 30px 25px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 56, 147, 0.25);
}

.login-logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--color-ven-yellow) 0%, var(--color-ven-blue) 50%, var(--color-ven-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.login-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.login-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

.login-card .form-control {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 48px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.login-card .form-control:focus {
    border-color: var(--color-ven-blue);
    box-shadow: 0 0 0 4px rgba(0, 56, 147, 0.25);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.login-card .input-group-text {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    border-radius: 8px;
}

.btn-ven-primary {
    background: linear-gradient(135deg, var(--color-ven-blue) 0%, #5b21b6 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    min-height: 48px;
    transition: transform 0.2s, filter 0.2s;
}

.btn-ven-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    color: white;
}

.btn-ven-primary:active {
    transform: translateY(1px);
}

/* ============================================================================
   ESTILOS DE MAQUETACIÓN (LAYOUT PRINCIPAL)
   ============================================================================ */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

/* NAVBAR SUPERIOR */
.navbar-sigecat {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-sigecat .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--color-ven-yellow) 0%, var(--color-ven-blue) 50%, var(--color-ven-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-sigecat .navbar-text-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SIDEBAR - ESCRITORIO */
.sidebar-sigecat {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 990;
    transition: all var(--transition-speed) ease;
    overflow-y: auto;
    padding: 20px 10px;
}

.nav-sidebar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-sidebar-link i {
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.nav-sidebar-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-sidebar-link:hover i {
    transform: scale(1.15);
}

.nav-sidebar-link.active {
    color: #fff;
    background-color: var(--color-ven-blue);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.nav-sidebar-link.active i {
    color: var(--color-ven-yellow);
}

.nav-sidebar-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 15px 10px;
}

.nav-sidebar-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 5px 16px;
}

/* CONTENIDO PRINCIPAL */
.main-content {
    flex-grow: 1;
    margin-top: 70px;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 30px 20px;
    min-height: calc(100vh - 70px);
    transition: all var(--transition-speed) ease;
}

/* ============================================================================
   ESTILOS DE TARJETAS, TABLAS Y ELEMENTOS UI
   ============================================================================ */
.card-sigecat {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-sigecat .card-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-sigecat .card-body {
    padding: 20px;
}

/* Formularios */
.form-group-custom {
    margin-bottom: 18px;
}

.form-group-custom label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control-custom {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px 14px;
    min-height: 44px; /* Touch-friendly */
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    background-color: var(--bg-primary);
    border-color: var(--color-ven-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 56, 147, 0.25);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-select-custom {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px 14px;
    min-height: 44px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239a9ab0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 12px 12px;
    transition: all 0.2s ease;
}

.form-select-custom:focus {
    background-color: var(--bg-primary);
    border-color: var(--color-ven-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 56, 147, 0.25);
}

/* Tablas responsivas */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-sigecat {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-primary);
    vertical-align: middle;
}

.table-sigecat th {
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    color: var(--text-muted);
}

.table-sigecat td {
    color: var(--text-primary) !important;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    font-size: 0.95rem;
}

.table-sigecat tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Semáforos y badges de estado */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-status-verde {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-status-amarillo {
    background-color: rgba(241, 196, 115, 0.15);
    color: var(--color-yellow);
    border: 1px solid rgba(241, 196, 115, 0.3);
}

.badge-status-rojo {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Modales Bootstrap Oscuros */
.modal-sigecat .modal-content {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.modal-sigecat .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
}

.modal-sigecat .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
}

.modal-sigecat .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dashboard Cards (Estadísticas) */
.metric-card {
    padding: 24px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform var(--transition-speed);
}

.metric-card:hover {
    transform: translateY(-3px);
}

.metric-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0 0 0;
}

.metric-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-blue {
    border-left: 4px solid var(--color-ven-blue);
}
.metric-blue .metric-icon {
    background-color: rgba(0, 56, 147, 0.15);
    color: var(--color-ven-blue);
}

.metric-yellow {
    border-left: 4px solid var(--color-ven-yellow);
}
.metric-yellow .metric-icon {
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--color-ven-yellow);
}

.metric-red {
    border-left: 4px solid var(--color-ven-red);
}
.metric-red .metric-icon {
    background-color: rgba(207, 20, 43, 0.15);
    color: var(--color-ven-red);
}

.metric-green {
    border-left: 4px solid var(--color-green);
}
.metric-green .metric-icon {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--color-green);
}

/* ============================================================================
   RESPONSIVIDAD Y BREAKPOINTS (MOBILE-FIRST)
   ============================================================================ */

/* Dispositivos Móviles (Menos de 992px) */
@media (max-width: 991.98px) {
    .sidebar-sigecat {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar-sigecat.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
        top: 0; /* Cubrir todo el alto */
        height: 100%;
        position: fixed;
        z-index: 1050;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }
    
    /* Fondo oscuro de overlay cuando la barra lateral móvil está activa */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .btn-toggle-sidebar {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-sigecat {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Escritorios Grandes y Medianos */
@media (min-width: 992px) {
    .btn-toggle-sidebar {
        display: none !important;
    }
}

/* Ajustes para SweetAlert2 en tema oscuro */
.swal2-popup.swal2-dark-custom {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
}

.swal2-popup.swal2-dark-custom .swal2-title {
    color: var(--text-primary) !important;
}

.swal2-popup.swal2-dark-custom .swal2-html-container {
    color: var(--text-muted) !important;
}

.swal2-popup.swal2-dark-custom .swal2-confirm {
    background-color: var(--color-ven-blue) !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
}

.swal2-popup.swal2-dark-custom .swal2-cancel {
    background-color: var(--bg-accent) !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
}

/* FASE 7 — INCIDENCIAS, REQUERIMIENTOS Y ALERTAS */
@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 0 0 rgba(207, 20, 43, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(207, 20, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(207, 20, 43, 0);
    }
}

.badge-pulse {
    animation: pulse-danger 1.5s infinite;
}

.row-alert-urgent {
    background-color: rgba(207, 20, 43, 0.12) !important;
}

.row-alert-urgent td {
    background-color: rgba(207, 20, 43, 0.12) !important;
    border-bottom: 1px solid rgba(207, 20, 43, 0.25) !important;
}

.row-alert-urgent:hover td {
    background-color: rgba(207, 20, 43, 0.18) !important;
}

/* Cards de Selección en Modal de Reporte */
.selection-card-btn {
    background-color: var(--bg-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: var(--text-primary);
    display: block;
    width: 100%;
}

.selection-card-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.selection-card-btn.active-incidencia {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.08);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.selection-card-btn.active-requerimiento {
    border-color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.08);
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.25);
}

.selection-card-btn.active-alerta {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.08);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.selection-card-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.selection-card-btn.active-incidencia i {
    color: #0d6efd;
}

.selection-card-btn.active-requerimiento i {
    color: #fd7e14;
}

.selection-card-btn.active-alerta i {
    color: #dc3545;
}

.selection-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.selection-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Timeline para Detalle de Incidencia */
.timeline-sigecat {
    border-left: 2px solid var(--bg-accent);
    padding-left: 20px;
    margin-left: 10px;
    position: relative;
}

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

.timeline-item-sigecat::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-accent);
    border: 2px solid var(--bg-secondary);
}

.timeline-item-sigecat.active::before {
    background-color: var(--color-green);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================================
   CORRELACIÓN DE POBLACIÓN (DECLARADA VS CENSADA)
   ============================================================================ */
.correlation-container {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.correlation-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.correlation-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.correlation-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.correlation-status-text {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.correlation-status-match {
    color: var(--color-green);
}

.correlation-status-pending {
    color: var(--color-yellow);
}

.correlation-status-over {
    color: var(--color-red);
}

/* ============================================================================
   CORRECCIÓN 2 — CONTRASTE DE TEXTOS EN TODA LA INTERFAZ
   ============================================================================ */
.text-muted, .text-body-secondary {
    color: #a2a2ba !important;
}

.text-secondary {
    color: #b8b8d0 !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================================================
   CORRECCIÓN 3 — ESTILOS PARA EL ACCORDION (TEMA OSCURO)
   ============================================================================ */
.accordion-sigecat .accordion-item {
    background-color: var(--bg-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
}

.accordion-sigecat .accordion-button {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.accordion-sigecat .accordion-button:not(.collapsed) {
    background-color: var(--bg-accent) !important;
    color: var(--text-primary) !important;
}

.accordion-sigecat .accordion-button::after {
    filter: invert(1) !important;
}

.accordion-sigecat .accordion-body {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* ============================================================================
   MÓDULO DE RENDIMIENTO — TABLA DE POSICIONES
   ============================================================================ */

/* Filas del Top 3 con borde izquierdo dorado */
.rendimiento-top3 td {
    background-color: rgba(255, 215, 0, 0.04) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12) !important;
}

.rendimiento-top3:hover td {
    background-color: rgba(255, 215, 0, 0.08) !important;
}

/* Badge del rendimiento en el navbar - animación sutil */
#rendimiento-badge-link .badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#rendimiento-badge-link:hover .badge {
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Barras de progreso del modal de desglose */
#desglose-barras .progress {
    border-radius: 4px;
}

#desglose-barras .progress-bar {
    transition: width 0.6s ease;
}

/* Responsividad de la tabla de rendimiento en móvil */
@media (max-width: 767.98px) {
    #table-ranking th:nth-child(n+4):nth-child(-n+10),
    #table-ranking td:nth-child(n+4):nth-child(-n+10) {
        display: none;
    }
}

/* ============================================================================
   GUÍA VISUAL — ¿CÓMO GANAR PUNTOS? (Modal Infográfico)
   ============================================================================ */

/* Badge de peso en la barra resumen superior */
.guia-peso-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--guia-color);
    background: color-mix(in srgb, var(--guia-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--guia-color) 30%, transparent);
    white-space: nowrap;
}
.guia-peso-badge strong {
    font-size: 1rem;
    font-weight: 800;
}

/* Tarjeta de dimensión */
.guia-card {
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--guia-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.guia-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--guia-color) 8%, transparent);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.guia-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--guia-color);
    background: color-mix(in srgb, var(--guia-color) 18%, transparent);
    flex-shrink: 0;
}

.guia-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.guia-card-pts {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--guia-color);
}

.guia-card-body {
    padding: 14px 16px;
}

/* Fila de acción: icono + texto + puntos */
.guia-accion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.guia-accion-icono {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--guia-color);
    background: color-mix(in srgb, var(--guia-color) 15%, transparent);
    flex-shrink: 0;
}

.guia-accion-texto {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.guia-accion-pts {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--guia-color);
    background: color-mix(in srgb, var(--guia-color) 12%, transparent);
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tip verde al final de cada tarjeta */
.guia-tip {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Escala de velocidad (Órdenes) */
.guia-velocidad {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.guia-vel-item {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-primary);
}

.guia-vel-max {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.guia-vel-max i { color: #2ecc71; }

.guia-vel-med {
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(241, 196, 15, 0.3);
}
.guia-vel-med i { color: #f1c40f; }

.guia-vel-min {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.guia-vel-min i { color: #e74c3c; }

/* Checklist de infraestructura */
.guia-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.guia-check-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #1abc9c;
    background: rgba(26, 188, 156, 0.1);
    border: 1px solid rgba(26, 188, 156, 0.2);
}

/* Escala de bienestar */
.guia-bienestar-escala {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.guia-escala-item {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================================
   SECTOR DE FECHA DRUM PICKER (SCROLL DE EDAD)
   ============================================================================ */
#modalDrumPicker {
    z-index: 1065 !important;
    background-color: rgba(0, 0, 0, 0.5);
}

.drum-picker-container {
    user-select: none;
    position: relative;
    overflow: hidden;
}

.drum-picker-columns {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 200px;
    background-color: rgba(39, 40, 60, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.drum-picker-selection-highlight {
    position: absolute;
    top: 80px; /* (200px - 40px) / 2 */
    left: 4px;
    right: 4px;
    height: 40px;
    border-top: 1.5px solid var(--color-ven-yellow);
    border-bottom: 1.5px solid var(--color-ven-yellow);
    background-color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 2;
    border-radius: 4px;
}

.drum-picker-col {
    flex: 1;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.drum-picker-col::-webkit-scrollbar {
    display: none;
}

.drum-picker-scroll {
    display: flex;
    flex-direction: column;
}

.drum-picker-pad {
    height: 80px; /* Altura de dos items para centrar el primer/último elemento */
}

.drum-picker-item {
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    scroll-snap-align: center;
    transition: color 0.15s ease, font-size 0.15s ease, font-weight 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.drum-picker-item:hover {
    color: var(--text-primary);
}

.drum-picker-item.active {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Difuminado arriba y abajo del picker */
.drum-picker-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, rgba(20, 21, 32, 0.8) 45%, rgba(20, 21, 32, 0) 100%);
    pointer-events: none;
    z-index: 1;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.drum-picker-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(20, 21, 32, 0.8) 45%, rgba(20, 21, 32, 0) 100%);
    pointer-events: none;
    z-index: 1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}


