@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;700&display=swap');

#eventos,
#medios {
    scroll-margin-top: 100px;
}

/* ── Page structure ── */

.news-section {
    max-width: 1060px;
    margin: 0 auto 2.5rem;
}

.news-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: 2px;
}

.news-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64b5f6;
    margin-bottom: 1.5rem;
}

.news-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 2.5rem auto;
    max-width: 1060px;
}

.news-intro {
    font-size: 1rem;
    color: #9ab0c8;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 1000px;
}

/* ── Carousel ── */

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track-container {
    overflow: hidden;
    flex: 1;
    padding-right: 10px;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.carousel-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.carousel-btn:hover {
    color: black;
    border-color: white;
}

.carousel-btn:hover::before {
    opacity: 1;
}

/* ── Event cards ── */

.event-card {
    flex: 0 0 calc((100% - 3rem) / 3 - 1px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-content {
    padding: 1.25rem;
}

.event-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64b5f6;
    margin-bottom: 0.5rem;
}

.event-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.6rem;
    letter-spacing: 0.3px;
}

.event-card p {
    font-size: 0.88rem;
    color: #9ab0c8;
    line-height: 1.65;
    margin: 0;
}

/* ── Media grid ── */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.media-card:hover {
    border-color: rgba(100, 181, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(100, 181, 246, 0.1);
}

.media-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.media-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.media-content {
    padding: 1rem 1.25rem 1.25rem;
}

.media-outlet {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64b5f6;
    margin-bottom: 0.4rem;
}

.media-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e3eaf3;
    line-height: 1.4;
}

.hidden-media {
    display: none;
}

.media-actions {
    margin-top: 2rem;
    text-align: center;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    padding: 0.6rem 1.4rem;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.show-more-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.show-more-btn:hover {
    color: black;
    border-color: white;
}

.show-more-btn:hover::before {
    opacity: 1;
}

/* ── Fade in ── */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ── Divider ── */

.news-section-divider {
    max-width: 1060px;
    margin: 1rem auto 2rem;
}

.news-section-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Mobile ── */

@media (max-width: 640px) {
    .news-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .news-intro {
        font-size: 0.9rem;
    }

    .carousel-wrapper {
        gap: 0.5rem;
    }

    .carousel-track-container {
        padding-right: 0;
    }

    .event-card {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .news-section-divider {
        display: none;
    }
}