/* ==========================================
   Variables y Estilos Globales
   ========================================== */
:root {
    --primary-color: #0056b3;
    --primary-hover: #003d82;
    /* Contraste mejorado para enlaces y botones (antes #0d6efd) */
    --accent-color: #0a58ca; 
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2b2d42;
    /* Contraste mejorado para textos secundarios (antes #6c757d) */
    --text-muted: #495057; 
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tabset {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    max-width: 100%;
    margin: 20px auto;
}

/* ==========================================
   Pestañas (Tabs)
   ========================================== */
.tabset > input[type="radio"] {
    position: absolute;
    left: -9999px;
}

.tabset > label {
    display: inline-block;
    padding: 12px 20px;
    margin-right: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tabset > label:hover {
    color: var(--primary-color);
    background: #eef5ff;
    border-color: #bad6f9;
}

.tabset > input:checked + label {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Panel Containers */
.tab-panels {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-top: 5px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mostrar pestaña activa */
#tab1:checked ~ .tab-panels #Generalidades,
#tab2:checked ~ .tab-panels #Requisitos-de-inscripcion,
#tab3:checked ~ .tab-panels #Cronograma,
#tab4:checked ~ .tab-panels #Obligaciones-de-los-beneficiarios,
#tab5:checked ~ .tab-panels #Documentos-complementarios {
    display: block;
}

/* ==========================================
   Títulos y Tipografía
   ========================================== */
.tab-panel h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f7;
}

/* Listas estilizadas */
.tab-panel ul, .tab-panel ol {
    padding-left: 20px;
    line-height: 1.6;
}

.tab-panel li {
    margin-bottom: 12px;
}

.tab-panel li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Enlaces */
.tab-panel a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.tab-panel a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ==========================================
   Tabla del Cronograma Moderna
   ========================================== */
.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

.modern-table thead tr {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.modern-table th, .modern-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.modern-table tbody tr {
    transition: var(--transition);
}

.modern-table tbody tr:nth-of-type(even) {
    background-color: #fcfdfe;
}

.modern-table tbody tr:hover {
    background-color: #f0f7ff;
}

.badge-date {
    display: inline-block;
    background: #eef5ff;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid #cce3ff;
}

/* ==========================================
   Tarjeta de Descarga (Documentos)
   ========================================== */
.download-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 15px;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--accent-color);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.download-card img {
    width: 32px;
    height: 32px;
}

/* ==========================================
   Tarjeta Informativa / Próximamente
   ========================================== */
.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    /* Fondo azul claro con leve degradado para alinearse a la línea gráfica */
    background: linear-gradient(135deg, #e8f1fd 0%, #d4e4fa 100%);
    /* Borde en azul patrio de Colombia */
    border-left: 5px solid #003893;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-top: 15px;
}

.info-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.info-card-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    /* Azul oscuro con alto contraste sobre fondo azul claro */
    color: #002868;
    font-weight: 700;
}

.info-card-content p {
    margin: 0;
    /* Azul corporativo legible */
    color: #002868;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Estilo estático para el botón de descargar PDF */
.btn-pdf {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #003893 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* Forzar texto blanco al pasar el cursor (hover) y al hacer clic (visited/active) */
.btn-pdf:hover,
.btn-pdf:focus,
.btn-pdf:active,
.btn-pdf:visited {
    color: #ffffff !important;
    background-color: #002868 !important; /* Un azul ligeramente más oscuro al pasar el cursor */
    text-decoration: none !important;
}

/* Media Queries Responsivos */
@media (max-width: 768px) {
    .tabset > label {
        display: block;
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .tab-panels {
        padding: 18px;
    }

    .modern-table th, .modern-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
