.noticias-titulo{
    font-family: "Kanit", sans-serif;
    text-align: center;
    margin: 30px 0;
    color: #212529;
    margin-top: 20px;
    display: none;
}

.reels-section {
    width: 100%;
    padding: 0px 40px 60px;
    background: #f4f5fa;
    display: none;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.reel-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #000;
    aspect-ratio: 9 / 16;
    transition: transform .3s ease, box-shadow .3s ease;
}

.reel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.reel-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.reel-media {
    position: absolute;
    inset: 0;
}

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

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.1)
    );
}

.reel-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
}

.reel-title {
    font-family: "Kanit", sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.reel-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.reel-modal.active {
    display: flex;
}

.reel-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
}

.reel-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.reel-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    color: wheat;
}

.reel-modal-body {
    display: flex;
    width: 100%;
}

.reel-modal-media {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-modal-info {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.reel-modal-date {
    font-size: .9rem;
    color: #777;
    margin-bottom: 20px;
}

.reel-modal-text {
    line-height: 1.6;
    white-space: pre-line;
}


@media (max-width: 768px) {

    .carousel-inner {
         height: 40vh;
    }

    .reel-modal{
        padding: 20px;
    }
    .reels-grid {
        grid-template-columns: 1fr;
    }

    .reel-modal-content {
        width: 100%;
        height: 80vh;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        border-radius: 20px;
    }

    .reel-modal-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .reel-modal-media {
        flex: 0 0 auto;
        height: 40vh; /* controla cuánto ocupa el reel */
    }

    .reel-modal-info {
        flex: 1;
        overflow-y: auto;
        padding: 20px 20px 40px;
    }

    .footer {
        position: relative;
    }
}