/**
 * Estilos para Single Evento Cultural
 * Diseño: fondo claro, layout dos columnas (shared), banner solo imagen, secciones prolijas.
 *
 * @package Grupo_Mexico
 */

/* ========================================
   LAYOUT PRINCIPAL (reutiliza .two-column-layout de shared/layout.css)
   ======================================== */

.evento-single {
    /* background-color: #F8F8F8; */
    padding: 48px 0 60px;
}

.evento-single__wrapper {
    align-items: start;
}

.evento-single__main-section {
    min-width: 0;
}

/* ========================================
   HEADER DEL EVENTO
   ======================================== */

.evento-single__header {
    margin-bottom: 28px;
}

.evento-single__title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.evento-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.evento-single__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #6B7280;
}

.evento-single__meta-item svg {
    width: 20px;
    height: 20px;
    color: #6B7280;
    flex-shrink: 0;
}

.evento-single__badge {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #D1FAE5;
    color: #065F46;
    display: inline-block;
}

/* ========================================
   BANNER (solo imagen; bordes y tamaño)
   ======================================== */

.evento-single__banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    max-height: 420px;
}

.evento-single__banner-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ========================================
   SECCIONES
   ======================================== */

.evento-single__section {
    background-color: #FFFFFF;
    padding: 28px 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.evento-single__section-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Línea roja bajo el título en Descripción del Evento */
.evento-single__section--description .evento-single__section-title {
    margin-bottom: 24px;
}

.evento-single__section--description .evento-single__section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background-color: #9B1C1C;
    margin-top: 12px;
    border-radius: 2px;
}

/* ========================================
   VIDEO
   ======================================== */

.evento-single__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
}

.evento-single__video-player,
.evento-single__video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.evento-single__video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1F2937;
    color: #9CA3AF;
    border-radius: 12px;
}

.evento-single__video-placeholder svg {
    margin-bottom: 16px;
}

.evento-single__video-placeholder p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    margin: 0;
}

/* ========================================
   GALERÍA
   ======================================== */

.evento-single__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.evento-single__gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
}

.evento-single__gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.evento-single__gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   DESCRIPCIÓN
   ======================================== */

.evento-single__description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #374151;
    line-height: 1.7;
}

.evento-single__description p {
    margin: 0 0 16px 0;
}

.evento-single__description p:last-child {
    margin-bottom: 0;
}

.evento-single__description strong {
    color: #111827;
    font-weight: 600;
}

.evento-single__description ul,
.evento-single__description ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.evento-single__description li {
    margin-bottom: 8px;
}

/* ========================================
   DESCARGAS (cards en fila, estilo diseño)
   ======================================== */

.evento-single__downloads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.evento-single__download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background-color: #F9FAFB;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #E5E7EB;
}

.evento-single__download-item:hover {
    background-color: #FFFFFF;
    border-color: #9B1C1C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.evento-single__download-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.evento-single__download-icon svg {
    width: 24px;
    height: 24px;
}

/* PDF: icono rojo */
.evento-single__download-item--pdf .evento-single__download-icon svg {
    color: #9B1C1C;
}

/* No-PDF: icono azul (infografía, etc.) */
.evento-single__download-item:not(.evento-single__download-item--pdf) .evento-single__download-icon svg {
    color: #2563EB;
}

.evento-single__download-info {
    flex: 1;
    min-width: 0;
}

.evento-single__download-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evento-single__download-size {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.evento-single__download-arrow {
    width: 20px;
    height: 20px;
    color: #6B7280;
    flex-shrink: 0;
}

.evento-single__download-item:hover .evento-single__download-arrow {
    color: #9B1C1C;
}

/* ========================================
   SIDEBAR (card Contacto Cultura ya estilada en eventos-culturales.css)
   ======================================== */

.evento-single__sidebar {
    position: sticky;
    top: 100px;
}

.evento-single__sidebar .eventos-culturales__sidebar-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .evento-single__wrapper.two-column-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .evento-single__sidebar {
        position: static;
    }

    .evento-single__gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .evento-single__banner {
        max-height: 360px;
    }

    .evento-single__banner-img {
        max-height: 360px;
    }
}

@media (max-width: 768px) {
    .evento-single {
        padding: 32px 0 48px;
    }

    .evento-single__wrapper {
        padding: 0 16px;
    }

    .evento-single__header {
        margin-bottom: 20px;
    }

    .evento-single__title {
        font-size: 26px;
    }

    .evento-single__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .evento-single__banner {
        margin-bottom: 24px;
        border-radius: 10px;
        max-height: 280px;
    }

    .evento-single__banner-img {
        max-height: 280px;
    }

    .evento-single__section {
        padding: 20px 20px;
        border-radius: 10px;
    }

    .evento-single__section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .evento-single__section--description .evento-single__section-title::after {
        margin-top: 10px;
    }

    .evento-single__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .evento-single__gallery-item {
        border-radius: 8px;
    }

    .evento-single__description {
        font-size: 15px;
    }

    .evento-single__downloads {
        grid-template-columns: 1fr;
    }

    .evento-single__download-item {
        padding: 14px 16px;
    }

    .evento-single__download-icon {
        width: 44px;
        height: 44px;
    }

    .evento-single__download-icon svg {
        width: 22px;
        height: 22px;
    }
}
