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

/* Variables CSS para colores institucionales */
:root {
    --azul-primario: #1E3A8A;
    --azul-secundario: #3b82f6;
    --azul-claro: #dbeafe;
    --azul-hover: #1d4ed8;
    --gris-texto: #374151;
    --gris-claro: #f8fafc;
    --blanco: #ffffff;
    --sombra-suave: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sombra-media: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radio-redondeado: 12px;
    --radio-pequeno: 8px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gris-claro);
    color: var(--gris-texto);
    line-height: 1.6;
}

/* Contenedor principal */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

.main-container {
    background-color: var(--blanco);
    border-radius: var(--radio-redondeado);
    box-shadow: var(--sombra-media);
    overflow: hidden;
}

/* Header section */
.header-section {
    background-color: var(--azul-primario);
    padding: 1.5rem 1rem;
    text-align: center;
}

.header-content h2 {
    color: var(--blanco);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.header-content h4 {
    color: var(--azul-claro);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Alerta importante */
.alert {
    margin: 1rem;
    padding: 1rem;
    border-radius: var(--radio-redondeado);
    border: none;
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.alert-heading {
    color: #92400e;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.alert-heading i {
    color: #f59e0b;
}

.alert p {
    color: #78350f;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.alert-link {
    color: var(--azul-primario);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.alert-link:hover {
    color: var(--azul-hover);
    border-bottom-color: var(--azul-hover);
}

/* Sección de fecha */
.text-center {
    padding: 1.5rem;
}

.text-center h5 {
    color: var(--gris-texto);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.text-primary {
    color: var(--azul-primario) !important;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.text-center p {
    color: var(--gris-texto);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.text-danger {
    color: #dc2626 !important;
    font-weight: 600;
}

/* Botón principal */
.btn {
    border: none;
    border-radius: var(--radio-redondeado);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
}

.btn-primary {
    background-color: var(--azul-primario);
    color: var(--blanco);
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--azul-hover);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
    color: var(--blanco);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Estilos para texto en negrita */
strong {
    color: var(--azul-primario);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem 0.25rem;
    }
    
    .header-section {
        padding: 1.25rem 0.75rem;
    }
    
    .header-content h2 {
        font-size: 1.5rem;
    }
    
    .header-content h4 {
        font-size: 0.9rem;
    }
    
    .alert {
        margin: 0.75rem;
        padding: 0.75rem;
    }
    
    .text-center {
        padding: 1rem;
    }
    
    .text-primary {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content h2 {
        font-size: 1.25rem;
    }
    
    .header-content h4 {
        font-size: 0.85rem;
    }
    
    .alert {
        font-size: 0.8rem;
    }
    
    .text-primary {
        font-size: 1.15rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Animaciones suaves */
.main-container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Mejoras de accesibilidad */
.btn:focus {
    outline: 2px solid var(--azul-primario);
    outline-offset: 2px;
}

.alert-link:focus {
    outline: 2px solid var(--azul-primario);
    outline-offset: 2px;
    border-radius: var(--radio-pequeno);
}

/* Estilos adicionales para mejor presentación */
.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.header-section {
    position: relative;
    overflow: hidden;
}

/* Efecto hover en el contenedor principal */
.main-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}