/**
 * Estilos para páginas de eventos
 */

/* Título de sección */
#eventos .titulo-seccion {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Cards de eventos */
#eventos .evento-card,
#evento_ampliado .evento-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

#eventos .evento-card:hover,
#evento_ampliado .evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: inherit;
}

#eventos .evento-imagen,
#evento_ampliado .evento-imagen {
    position: relative;
    overflow: hidden;
}

#eventos .evento-imagen img,
#evento_ampliado .evento-imagen img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#eventos .evento-fecha,
#evento_ampliado .evento-fecha {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-align: center;
    line-height: 1.2;
}

#eventos .evento-dia,
#evento_ampliado .evento-dia {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

#eventos .evento-mes,
#evento_ampliado .evento-mes {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

#eventos .evento-contenido,
#evento_ampliado .evento-contenido {
    padding: 1rem;
}

#eventos .evento-titulo,
#evento_ampliado .evento-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#eventos .evento-card:hover .evento-titulo,
#evento_ampliado .evento-card:hover .evento-titulo {
    color: var(--color-primary);
}

#eventos .evento-direccion,
#evento_ampliado .evento-direccion {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

#eventos .evento-direccion i,
#evento_ampliado .evento-direccion i {
    color: var(--color-primary);
}

/* Evento Ampliado */
#evento_ampliado .fecha-evento-ampliado {
    font-size: 1rem;
}

#evento_ampliado .titulo-evento-ampliado {
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

#evento_ampliado .imagen-evento {
    max-width: 800px;
}

#evento_ampliado .imagen-evento img {
    border-radius: 0.5rem;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

#evento_ampliado .direccion-evento {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid var(--color-primary);
}

#evento_ampliado .descripcion-evento {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

#evento_ampliado .descripcion-evento p {
    margin-bottom: 1rem;
}

/* Compartir redes - usa componente global /css/components/compartir-redes.css */

/* Responsive */
@media (max-width: 768px) {
    #evento_ampliado .titulo-evento-ampliado {
        font-size: 1.75rem;
    }
    
    #eventos .titulo-seccion {
        font-size: 1.3rem;
    }
    
    #eventos .evento-fecha,
    #evento_ampliado .evento-fecha {
        padding: 0.375rem 0.5rem;
    }
    
    #eventos .evento-dia,
    #evento_ampliado .evento-dia {
        font-size: 1.25rem;
    }
}

/* ========================================
   DISEÑO HORIZONTAL PARA EVENTOS
   Cuando las fotos están desactivadas
   ======================================== */

#eventos .eventos-section,
.eventos-section {
    width: 100%;
    padding: 50px 0;
}

#eventos .eventos-section h2,
.eventos-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 28px;
    color: #122033;
}

#eventos .eventos-grid,
.eventos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

#eventos .evento-card-horizontal,
.evento-card-horizontal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.12);
    overflow: hidden;
    min-height: 132px;
    display: flex;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

#eventos .evento-card-horizontal:hover,
.evento-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 20, 40, 0.16);
}

/* Tarjeta con imagen */
#eventos .evento-con-imagen-horizontal,
.evento-con-imagen-horizontal {
    max-width: 640px;
}

#eventos .evento-imagen-horizontal,
.evento-imagen-horizontal {
    width: 132px;
    min-width: 132px;
    height: 132px;
    position: relative;
    overflow: hidden;
}

#eventos .evento-imagen-horizontal img,
.evento-imagen-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay oscuro para que se lea la fecha */
#eventos .evento-imagen-horizontal::after,
.evento-imagen-horizontal::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

#eventos .evento-fecha-img-horizontal,
.evento-fecha-img-horizontal {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

#eventos .evento-fecha-img-horizontal strong,
.evento-fecha-img-horizontal strong {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}

#eventos .evento-fecha-img-horizontal span,
.evento-fecha-img-horizontal span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* Contenido */
#eventos .evento-info-horizontal,
.evento-info-horizontal {
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#eventos .evento-badge,
.evento-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#eventos .evento-badge.municipal,
.evento-badge.municipal {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}

#eventos .evento-badge.feriado,
.evento-badge.feriado {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}

#eventos .evento-info-horizontal h3,
.evento-info-horizontal h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: #122033;
}

#eventos .evento-lugar-horizontal,
.evento-lugar-horizontal {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #8f95a3;
}

#eventos .evento-lugar-horizontal span,
.evento-lugar-horizontal span {
    color: var(--color-primary);
    font-size: 17px;
}

#eventos .feriado-text span,
.feriado-text span {
    color: var(--color-primary);
}

/* Tarjeta sin imagen (fecha verde) */
#eventos .evento-sin-imagen-horizontal,
.evento-sin-imagen-horizontal {
    max-width: 640px;
}

#eventos .evento-fecha-sin-imagen,
.evento-fecha-sin-imagen {
    width: 132px;
    min-width: 132px;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#eventos .evento-fecha-sin-imagen strong,
.evento-fecha-sin-imagen strong {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
}

#eventos .evento-fecha-sin-imagen span,
.evento-fecha-sin-imagen span {
    font-size: 14px;
    font-weight: 800;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Tarjeta feriado */
#eventos .evento-feriado-horizontal,
.evento-feriado-horizontal {
    max-width: 640px;
}

#eventos .evento-fecha-feriado,
.evento-fecha-feriado {
    width: 132px;
    min-width: 132px;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#eventos .evento-fecha-feriado strong,
.evento-fecha-feriado strong {
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
}

#eventos .evento-fecha-feriado span,
.evento-fecha-feriado span {
    font-size: 14px;
    font-weight: 800;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Responsive para diseño horizontal */
@media (max-width: 992px) {
    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .evento-con-imagen-horizontal,
    .evento-sin-imagen-horizontal,
    .evento-feriado-horizontal {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    #eventos .eventos-section,
    .eventos-section {
        padding: 30px 16px;
    }
    
    #eventos .eventos-grid,
    .eventos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #eventos .evento-card-horizontal,
    .evento-card-horizontal {
        min-height: 120px;
        flex-direction: row;
        max-width: 100%;
    }

    #eventos .evento-imagen-horizontal,
    .evento-imagen-horizontal {
        width: 110px;
        min-width: 110px;
        height: auto;
        min-height: 100%;
    }
    
    #eventos .evento-fecha-sin-imagen,
    .evento-fecha-sin-imagen {
        width: 110px;
        min-width: 110px;
        height: auto;
        min-height: 100%;
        padding: 20px 10px;
    }
    
    #eventos .evento-fecha-feriado,
    .evento-fecha-feriado {
        width: 110px;
        min-width: 110px;
        height: auto;
        min-height: 100%;
        padding: 20px 10px;
    }

    #eventos .evento-info-horizontal,
    .evento-info-horizontal {
        padding: 16px;
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #eventos .evento-info-horizontal h3,
    .evento-info-horizontal h3 {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 10px;
        font-weight: 600;
    }

    #eventos .evento-lugar-horizontal,
    .evento-lugar-horizontal {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    #eventos .evento-lugar-horizontal i,
    .evento-lugar-horizontal i {
        font-size: 12px;
    }

    #eventos .evento-fecha-img-horizontal strong,
    #eventos .evento-fecha-sin-imagen strong,
    #eventos .evento-fecha-feriado strong,
    .evento-fecha-img-horizontal strong,
    .evento-fecha-sin-imagen strong,
    .evento-fecha-feriado strong {
        font-size: 38px;
        line-height: 1;
    }
    
    #eventos .evento-fecha-sin-imagen span,
    #eventos .evento-fecha-feriado span,
    .evento-fecha-sin-imagen span,
    .evento-fecha-feriado span {
        font-size: 12px;
        margin-top: 6px;
        font-weight: 700;
    }
}

