/* ==========================================================================
   SISTEMA DE DISEÑO - TECNOLÓGICO DE COSTA RICA 2026
   Basado en el Manual de Identidad Institucional
   ========================================================================== */

   :root {
    /* Colores Oficiales TEC */
    --tec-blue: #002855; 
    --tec-red: #EF3340;  
    
    /* Escala de Grises y Superficies (Regla del 70% de aire) */
    --bg-main: #FAFAFA;
    --surface-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #6C7A89;
    --border-color: #E0E4E8;

    /* Sombras Modernas (Soft UI) */
    --shadow-sm: 0 2px 8px rgba(0, 40, 85, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 40, 85, 0.12);
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Comportamiento de scroll suave y compensación del Navbar fijo */
html {
    scroll-behavior: smooth;
}

/* Aplicar el margen a TODAS las secciones exactas a las que salta el menú */
#calendario, 
#como, 
#padron, 
#normativa, 
#faq {
    scroll-margin-top: 130px; /* Le di un poco más de aire para que respire bien */
}

/* --- NAVEGACIÓN --- */
.navbar {
    background-color: var(--surface-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
}

.navbar-brand img {
    max-height: 90px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 60px;
    }
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--tec-red) !important;
}

/* --- HERO SECTION (CARRUSEL MODERNIZADO) --- */
.hero-section {
    position: relative;
    height: 70vh; /* Ocupa el 70% de la pantalla */
    min-height: 500px;
    background-color: var(--tec-blue);
    overflow: hidden;
}

/* El carrusel ocupa todo el fondo */
.hero-carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

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

/* Capa oscura elegante para que el texto sea legible */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 40, 85, 0.7), rgba(0, 40, 85, 0.3));
    z-index: 1;
}

/* La tarjeta flotante central con efecto Glassmorphism */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    
    /* Efecto cristal moderno */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.hero-content h1 {
    color: var(--surface-white);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-content h2 {
    color: var(--surface-white);
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-content { padding: 2rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content h2 { font-size: 1.2rem; }
}

/* ==========================================================================
   FOOTER MODERNO (SPLIT DESIGN - ADAPTADO A TEC)
   ========================================================================== */
   .tec-footer {
    background-color: var(--tec-blue);
    color: var(--surface-white);
}

/* Línea divisoria sutil */
.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.help-title {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .help-title { font-size: 1.5rem; }
    .tec-footer .fs-5 { font-size: 1rem !important; }
}

/* ==========================================================================
   BOTÓN DE ACCESIBILIDAD FIJO (STYLE UNAH)
   ========================================================================== */
.a11y-fixed-btn-container {
    position: fixed;
    bottom: 20px; /* Separación del borde inferior */
    left: 20px;   /* Separación del borde izquierdo */
    z-index: 1050; /* Por encima de casi todo (Bootstrap modals son 1055+) */
}

.btn-a11y-fixed {
    background-color: var(--surface-white);
    color: var(--tec-blue);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Icono grande */
    border: none;
    transition: all 0.3s ease;
    padding: 0;
}

/* Efectos hover fluidos */
.btn-a11y-fixed:hover {
    background-color: var(--tec-red); /* Cambia a Rojo TEC al pasar el mouse */
    color: var(--surface-white);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
}

/* Ajuste para móviles */
@media (max-width: 576px) {
    .btn-a11y-fixed {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .a11y-fixed-btn-container {
        bottom: 15px;
        left: 15px;
    }
}
/* ==========================================================================
   CALENDARIO PERSONALIZADO (SPLIT-VIEW)
   ========================================================================== */
   .custom-calendar-wrapper {
    max-width: 1050px;
    margin: 0 auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px 5px;
}

.calendar-day {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    cursor: default;
    transition: var(--transition);
    font-size: 1rem;
}

/* Días que tienen elecciones */
.calendar-day.has-event {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.calendar-day.has-event:hover {
    background-color: rgba(0, 40, 85, 0.1);
}

/* Día seleccionado (Círculo Azul) */
.calendar-day.selected-day {
    background-color: var(--tec-blue) !important;
    color: var(--surface-white) !important;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 40, 85, 0.3);
}

/* --- ESTILOS DE LA LISTA DE EVENTOS --- */
.event-item {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.event-time {
    color: var(--tec-red);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 65px;
    padding-top: 2px;
}

.event-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.event-description a {
    color: var(--tec-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
    transition: var(--transition);
}

.event-description a:hover {
    color: var(--tec-red);
    text-decoration: underline;
}

/* ==========================================================================
   TARJETAS "CÓMO PARTICIPAR"
   ========================================================================== */
   .step-card {
    transition: var(--transition);
    border-radius: 12px !important;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.step-icon-container {
    background-color: var(--tec-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.step-card:hover .step-icon-container {
    background-color: var(--tec-red);
    transform: scale(1.1) rotate(5deg);
}