/* =======================================================
   INFORMACION.CSS
   ======================================================= */

/* ============= HERO SECTION ============= */
.info-hero {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.info-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}

/* ============= CONTENT SECTIONS ============= */
.content-section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--color-navbar-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--color-accent-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============= CONTENT TEXT ============= */
.content-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text);
    text-align: justify;
}

.content-text h3 {
    color: var(--color-accent-dark);
    margin: 2.5rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============= CATEGORÍAS ============= */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.categoria-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
}

.categoria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--color-accent);
}

.categoria-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.categoria-icon i {
    font-size: 2rem;
    color: white;
}

.categoria-item h4 {
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.categoria-item p {
    color: var(--color-muted);
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* ============= LÍNEA DE TIEMPO ============= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0 auto;
    padding: 2rem 0;
}

/* Línea central */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 2rem; /* CORREGIDO: No llega hasta el final */
    width: 4px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-dark));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Periodo principal */
.timeline-periodo {
    position: relative;
    margin-bottom: 4rem;
    text-align: center;
}

.periodo-marker {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,120,215,0.3);
}

.periodo-marker::before {
    content: '📅';
    font-size: 2rem;
}

.periodo-content h3 {
    font-size: 2rem;
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.periodo-content p {
    color: var(--color-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Items de la línea de tiempo */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    background: var(--color-accent);
    box-shadow: 0 6px 20px rgba(0,120,215,0.3);
}

.timeline-marker i {
    font-size: 1.2rem;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-marker i {
    color: white;
}

.timeline-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 2rem;
    flex: 1;
    transition: all 0.3s ease;
    /*border-left: 4px solid var(--color-accent);*/
}

.timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    /*border-right: 4px solid var(--color-accent);*/
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.timeline-fecha {
    font-weight: 700;
    color: var(--color-accent-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-descripcion h4 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-descripcion p {
    color: var(--color-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-sede {
    background: rgba(0,120,215,0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.timeline-sede i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.timeline-sede strong {
    color: var(--color-accent-dark);
}

/* CORRECCIÓN: 5 de octubre - marcador vacío por defecto */
.evento-importante .timeline-marker {
    background: white; /* Fondo blanco por defecto */
    border-color: var(--color-accent);
}

.evento-importante .timeline-marker i {
    color: var(--color-accent); /* Icono azul por defecto */
}

.evento-importante .timeline-content {
    /*border-left-color: var(--color-accent);*/
    background: white;
}

/* Hover para el 5 de octubre */
.evento-importante:hover .timeline-marker {
    background: var(--color-accent); /* Se rellena solo en hover */
}

.evento-importante:hover .timeline-marker i {
    color: white;
}

/* CORRECCIÓN: Competencias - marcadores verdes */
.evento-competencia .timeline-marker {
    background: white; /* Fondo blanco por defecto */
    border-color: #28a745; /* Borde verde */
}

.evento-competencia .timeline-marker i {
    color: #28a745; /* Icono verde por defecto */
}

.evento-competencia .timeline-content {
    /*border-left-color: #28a745;*/
    background: white;
}

/* Hover para competencias */
.evento-competencia:hover .timeline-marker {
    background: #28a745; /* Se rellena de verde en hover */
}

.evento-competencia:hover .timeline-marker i {
    color: white;
}

/* CORRECCIÓN: Evento final - marcador amarillo */
.evento-final .timeline-marker {
    background: white; /* Fondo blanco por defecto */
    border-color: #ffc107; /* Borde amarillo */
}

.evento-final .timeline-marker i {
    color: #ffc107; /* Icono amarillo por defecto */
}

.evento-final .timeline-content {
    /*border-left-color: #ffc107;*/
    background: white;
}

/* Hover para evento final */
.evento-final:hover .timeline-marker {
    background: #ffc107; /* Se rellena de amarillo en hover */
}

.evento-final:hover .timeline-marker i {
    color: white;
}

/* ============= DOWNLOAD SECTION ============= */
.download-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.download-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 1.2rem 2.5rem 1.2rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: white;
    color: var(--color-accent);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-large i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    background-color: #f8f9fa;
    gap: 1rem;
}

.btn-large:hover i {
    transform: scale(1.1);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .info-hero {
        padding: 2.5rem 0;
    }

    .info-hero h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .content-text p {
        font-size: 1rem;
    }

    .categorias-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .categoria-item {
        padding: 1.5rem 1rem;
    }

    /* Línea de tiempo responsive */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }

    .timeline-marker i {
        font-size: 1rem;
    }

    .timeline-content {
        margin: 0 0 0 1rem;
        padding: 1.25rem;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        border-right: none;
        /*border-left: 4px solid var(--color-accent);*/
    }

    .periodo-marker {
        width: 60px;
        height: 60px;
    }

    .periodo-content h3 {
        font-size: 1.7rem;
    }

    /* Responsive para eventos especiales */
    .evento-competencia .timeline-marker,
    .evento-final .timeline-marker,
    .evento-importante .timeline-marker {
        background: white; /* Mantener fondo blanco en móvil */
    }

    .evento-competencia .timeline-marker i {
        color: #28a745;
    }

    .evento-final .timeline-marker i {
        color: #ffc107;
    }

    .evento-importante .timeline-marker i {
        color: var(--color-accent);
    }

    .download-section {
        padding: 3rem 0;
    }

    .download-content h3 {
        font-size: 1.7rem;
    }

    .download-content p {
        font-size: 1.1rem;
    }

    .btn-large {
        padding: 1rem 2rem 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .info-hero h1 {
        font-size: 1.7rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .categoria-icon {
        width: 60px;
        height: 60px;
    }

    .categoria-icon i {
        font-size: 1.5rem;
    }

    /* Línea de tiempo mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .timeline-content {
        padding: 1rem;
        margin-left: 0.5rem;
    }

    .timeline-fecha {
        font-size: 1rem;
    }

    .timeline-descripcion h4 {
        font-size: 1.1rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem 0.875rem 1.25rem;
        font-size: 1rem;
    }
}