/* ============================================
   ESTILOS PARA ASAMBLEA GENERAL DE DELEGADOS
   COOINDEGABO 2026
   ============================================
   
   ÍNDICE DE SECCIONES:
   1. Variables CSS (colores, espaciados, fuentes)
   2. Estilos generales y reset
   3. Hero Banner con Parallax
   4. Sección Contador Regresivo
   5. Sección Cronograma
   6. Media Queries (Responsive)
   
============================================ */


/* ============================================
   1. VARIABLES CSS
   ============================================
   Modifica estos valores para cambiar colores,
   espaciados y fuentes en toda la página
============================================ */
:root {
    /* COLORES PRINCIPALES */
    --color-primary: #388e3c;           /* Verde principal COOINDEGABO */
    --color-primary-dark: #2e7d32;      /* Verde oscuro para hover */
    --color-primary-light: #4caf50;     /* Verde claro para acentos */
    
    /* COLORES SECUNDARIOS */
    --color-secondary: #1565c0;         /* Azul para enlaces */
    --color-accent: #ff9800;            /* Naranja para destacados */
    --color-danger: #d32f2f;            /* Rojo para PDF */
    
    /* COLORES DE FONDO */
    --color-bg-white: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-bg-gray: #e0e0e0;
    
    /* COLORES DE TEXTO */
    --color-text-dark: #212121;
    --color-text-medium: #424242;
    --color-text-light: #757575;
    --color-text-white: #ffffff;
    
    /* ESPACIADOS */
    --spacing-xs: 0.5rem;      /* 8px */
    --spacing-sm: 1rem;        /* 16px */
    --spacing-md: 1.5rem;      /* 24px */
    --spacing-lg: 2rem;        /* 32px */
    --spacing-xl: 3rem;        /* 48px */
    --spacing-xxl: 4rem;       /* 64px */
    
    /* BORDES */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    /* SOMBRAS */
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* TRANSICIONES */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* FUENTES */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: 'Arial Black', Gadget, sans-serif;
}


/* ============================================
   2. ESTILOS GENERALES Y RESET
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ============================================
   3. HERO BANNER CON PARALLAX
   ============================================
   
   PARA CAMBIAR LA IMAGEN DE FONDO:
   Modifica background-image en .hero-asamblea
   
   PARA CAMBIAR EL COLOR DEL OVERLAY:
   Modifica background en .hero-overlay
   
   PARA AJUSTAR LA VELOCIDAD DEL PARALLAX:
   Modifica el valor en el JavaScript (parallaxSpeed)
   
============================================ */
.hero-asamblea {
    position: relative;
    min-height: 60vh;              /* ALTURA: Cambia este valor para más o menos alto */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* IMAGEN DE FONDO - Cambia la URL por tu imagen */
    background-image: url('imagens-web/heros/hero-asamblea.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;  /* Efecto parallax básico en navegadores compatibles */
}

/* Overlay verde sobre la imagen */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
        COLOR DEL OVERLAY
        Cambia el rgba para modificar color y opacidad
        Formato: rgba(R, G, B, opacidad)
        Opacidad: 0 = transparente, 1 = sólido
    */
    background: linear-gradient(
        135deg,
        rgba(56, 142, 60, 0.50) 0%,    /* Verde principal */
        rgba(46, 125, 50, 0.95) 100%   /* Verde oscuro */
    );
    z-index: 1;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 900px;
    
    /* Animación de entrada */
    animation: fadeInUp 1s ease forwards;
}

/* Título principal */
.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;               /* TAMAÑO: Ajusta según necesidad */
    font-weight: 800;
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Descripción */
.hero-description {
    font-size: 1.2rem;             /* TAMAÑO: Ajusta según necesidad */
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}


/* ============================================
   4. SECCIÓN CONTADOR REGRESIVO
   ============================================
   
   PARA OCULTAR DESPUÉS DEL EVENTO:
   Descomenta la siguiente línea:
   .countdown-section { display: none; }
   
   PARA CAMBIAR LA FECHA OBJETIVO:
   Modifica la variable 'fechaAsamblea' en el
   archivo JavaScript (asamblea-delegados.js)
   
============================================ */

/* DESCOMENTAR PARA OCULTAR EL CONTADOR DESPUÉS DEL EVENTO */
/* .countdown-section { display: none; } */

.countdown-section {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: im;
    text-align: center;
}

.countdown-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Título del contador */
.countdown-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xl);
    line-height: 1.4;
}

/* Contenedor del timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Cada caja del contador (días, horas, etc.) */
.countdown-box {
    /* 
        TAMAÑO DE LAS CAJAS
        Ajusta width y height para cambiar el tamaño
    */
    width: 120px;
    height: 140px;
    background: linear-gradient(
        145deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow-md);
    
    /* Efecto 3D */
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en las cajas */
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

/* Valor numérico (días, horas, etc.) */
.countdown-value {
    /* 
        TAMAÑO DEL NÚMERO
        Ajusta font-size para números más grandes o pequeños
    */
    font-family: 'Courier New', Courier, monospace; /* Fuente tipo digital */
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Etiqueta (Días, Horas, etc.) */
.countdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

/* Separador : entre cajas */
.countdown-separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    
    /* Animación de parpadeo */
    animation: blink 1s ease-in-out infinite;
}

/* Animación de parpadeo para los separadores */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mensaje cuando el contador llega a cero */
.countdown-finished {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-lg);
}

.countdown-finished p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0;
}


/* ============================================
   5. SECCIÓN CRONOGRAMA
   ============================================
   
   PARA AGREGAR MÁS TARJETAS:
   Copia el bloque HTML de una tarjeta existente
   y pégalo en la posición deseada
   
   PARA QUITAR LA SECCIÓN PDF DE UNA TARJETA:
   Comenta o elimina el div con clase .card-pdf
   
============================================ */
.cronograma-section {
    padding: var(--spacing-xxl) var(--spacing-md);
    background-color: gainsboro;
}

.cronograma-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Título del cronograma */
.cronograma-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xl);
    line-height: 1.4;
}

.cronograma-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: var(--spacing-sm);
}

/* Contenedor de tarjetas */
.cronograma-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Cada tarjeta del cronograma */
.cronograma-card {
    display: grid;
    /* 
        ESTRUCTURA DE LA TARJETA
        - 150px para la fecha
        - 1fr (espacio flexible) para descripción
        - 180px para el botón PDF
        
        Para tarjetas SIN PDF, el espacio se redistribuye
        automáticamente gracias a CSS Grid
    */
    grid-template-columns: 150px 1fr 180px;
    gap: var(--spacing-md);
    align-items: center;
    
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-bg-gray);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    
    /* Efecto hover */
    transition: all var(--transition-normal);
    box-shadow: var(--box-shadow-sm);
}

.cronograma-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
    border-color: var(--color-primary-light);
}

/* SECCIÓN 1: FECHA */
.card-fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--border-radius-sm);
    text-align: center;
    min-height: 80px;
}

.fecha-dia {
    /* 
        TAMAÑO DEL DÍA
        Ajusta font-size para números más grandes
    */
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.2;
}

.fecha-mes {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SECCIÓN 2: DESCRIPCIÓN */
.card-descripcion {
    padding: var(--spacing-xs) var(--spacing-sm);
}

.card-descripcion p {
    font-size: 1rem;
    color: var(--color-text-medium);
    line-height: 1.6;
    margin: 0;
}

/* SECCIÓN 3: BOTÓN PDF */
.card-pdf {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: var(--color-text-white);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    box-shadow: var(--box-shadow-sm);
}

.pdf-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.pdf-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}


/* ============================================
   ANIMACIONES
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para las tarjetas */
.cronograma-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Retraso escalonado para cada tarjeta */
.cronograma-card:nth-child(1) { animation-delay: 0.1s; }
.cronograma-card:nth-child(2) { animation-delay: 0.2s; }
.cronograma-card:nth-child(3) { animation-delay: 0.3s; }
.cronograma-card:nth-child(4) { animation-delay: 0.4s; }
.cronograma-card:nth-child(5) { animation-delay: 0.5s; }
.cronograma-card:nth-child(6) { animation-delay: 0.6s; }
.cronograma-card:nth-child(7) { animation-delay: 0.7s; }
.cronograma-card:nth-child(8) { animation-delay: 0.8s; }
.cronograma-card:nth-child(9) { animation-delay: 0.9s; }
.cronograma-card:nth-child(10) { animation-delay: 1s; }


/* ============================================
   6. MEDIA QUERIES (RESPONSIVE)
   ============================================
   
   BREAKPOINTS UTILIZADOS:
   - 992px: Tablets grandes y escritorios pequeños
   - 768px: Tablets
   - 576px: Móviles grandes
   - 480px: Móviles pequeños
   
============================================ */

/* TABLETS GRANDES (max 992px) */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .countdown-box {
        width: 100px;
        height: 120px;
    }
    
    .countdown-value {
        font-size: 2.8rem;
    }
    
    .countdown-separator {
        font-size: 2.5rem;
    }
    
    /* Tarjetas: 2 columnas */
    .cronograma-card {
        grid-template-columns: 130px 1fr 160px;
    }
}

/* TABLETS (max 768px) */
@media (max-width: 768px) {
    .hero-asamblea {
        min-height: 50vh;
        background-attachment: scroll; /* Desactiva parallax en móviles */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .countdown-title {
        font-size: 1.2rem;
    }
    
    .countdown-box {
        width: 80px;
        height: 100px;
    }
    
    .countdown-value {
        font-size: 2.2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
    
    /* Tarjetas: cambio a layout vertical */
    .cronograma-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }
    
    .card-fecha {
        justify-self: center;
        width: 100%;
        max-width: 200px;
    }
    
    .card-descripcion {
        padding: var(--spacing-sm);
    }
    
    .cronograma-title {
        font-size: 1.4rem;
    }
    
    .cronograma-subtitle {
        font-size: 1rem;
    }
}

/* MÓVILES GRANDES (max 576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .countdown-section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .countdown-timer {
        gap: var(--spacing-xs);
    }
    
    .countdown-box {
        width: 70px;
        height: 90px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .cronograma-section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .pdf-link {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .pdf-link span {
        display: none; /* Oculta texto, solo muestra icono */
    }
    
    .pdf-icon {
        width: 28px;
        height: 28px;
    }
}

/* MÓVILES PEQUEÑOS (max 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .countdown-box {
        width: 60px;
        height: 80px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
        margin: 0 2px;
    }
    
    .fecha-dia {
        font-size: 1.4rem;
    }
    
    .fecha-mes {
        font-size: 0.75rem;
    }
    
    .card-descripcion p {
        font-size: 0.9rem;
    }
}
#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
}
