/* ============================================================
   Ibagué Capital Musical - estilos de la seccion
   Usado por: seccion/ibague-capital-musical/index.php

   Se carga en la misma posicion en la que estaban los bloques
   bloques de estilo originales, para conservar el orden de la cascada.
   ============================================================ */

/* ====== Estilos generales de la seccion ====== */
    :root {
        --primary: #FF161F;
        --secondary: #F5DEB3;
        --accent: #39B34A;
        --dark: #2c3e50;
        --light: #f8f9fa;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: var(--light);
        color: var(--dark);
    }

    .header-musical {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
            url('https://ibague.gov.co/portal/admin/archivos/imagenes/noticias/2024/16267/20240211-16267-1.jpeg') center/cover no-repeat;
        color: white;
        padding: 100px 0 60px;
        position: relative;
    }

    .music-notes {
        position: absolute;
        font-size: 2rem;
        opacity: 0.3;
        animation: float 8s infinite linear;
    }

    .music-notes:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .music-notes:nth-child(2) {
        top: 40%;
        right: 15%;
        animation-delay: 1s;
    }

    .music-notes:nth-child(3) {
        bottom: 30%;
        left: 20%;
        animation-delay: 2s;
    }

    .music-notes:nth-child(4) {
        bottom: 15%;
        right: 25%;
        animation-delay: 3s;
    }

    @keyframes float {
        0% {
            transform: translateY(0) rotate(0deg);
        }

        50% {
            transform: translateY(-20px) rotate(10deg);
        }

        100% {
            transform: translateY(0) rotate(0deg);
        }
    }

    .logo-musical {
        width: 120px;
        height: 120px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        margin: 0 auto 20px;
        border: 3px solid var(--accent);
    }

    .section-title-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 1.5rem 0 1rem;
    }

    .section-title-wrapper::before,
    .section-title-wrapper::after {
        content: '';
        flex: 1;
        height: 2px;
        background-color: var(--accent, red);
        margin: 0 0.75rem;
    }

    .section-title {
        font-weight: 700;
        font-size: 1.1rem;
        padding: 0.25rem 1rem;
        background-color: var(--accent, red);
        color: white;
        border-radius: 999px;
        white-space: nowrap;
        margin: 0;
        line-height: 1.2;
        display: inline-block;
    }


    .video-container {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

    .feature-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        height: 100%;
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        margin: 0 auto 20px;
    }

    .quick-links {
        background: white;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .quick-links h3 {
        color: var(--primary);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--secondary);
    }

    .quick-links .list-group-item {
        border: none;
        padding: 10px 0;
        background: transparent;
    }

    .quick-links .list-group-item a {
        color: var(--dark);
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .quick-links .list-group-item a i {
        margin-right: 10px;
        color: var(--accent);
        transition: all 0.3s ease;
    }

    .quick-links .list-group-item a:hover {
        color: var(--primary);
        padding-left: 5px;
    }

    .quick-links .list-group-item a:hover i {
        color: var(--primary);
        transform: scale(1.2);
    }

    .youtube-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .youtube-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .youtube-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .video-thumb {
        position: relative;
        height: 180px;
        overflow: hidden;
    }

    .video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .youtube-card:hover .video-thumb img {
        transform: scale(1.1);
    }

    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background: rgba(139, 0, 0, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        opacity: 0.9;
        transition: all 0.3s ease;
    }

    .youtube-card:hover .play-icon {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        background: var(--primary);
    }

    .video-info {
        padding: 20px;
    }

    .video-title {
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--dark);
    }

    .video-desc {
        color: #666;
        font-size: 0.9rem;
    }

    .event-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        height: 100%;
    }

    .event-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .event-img {
        height: 180px;
        overflow: hidden;
    }

    .event-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .event-card:hover .event-img img {
        transform: scale(1.1);
    }

    .event-date {
        background: var(--primary);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    .footer {
        background: var(--dark);
        color: white;
        padding: 60px 0 30px;
    }

    .footer h5 {
        color: var(--secondary);
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

    .footer h5::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background: var(--accent);
    }

    .footer .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 50%;
        margin-right: 10px;
        transition: all 0.3s ease;
    }

    .footer .social-links a:hover {
        background: var(--accent);
        transform: translateY(-5px);
    }

    .copyright {
        padding-top: 20px;
        margin-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    @media (max-width: 768px) {
        .header-musical {
            padding: 80px 0 40px;
        }

        .logo-musical {
            width: 90px;
            height: 90px;
            font-size: 2.2rem;
        }

        .section-title {
            font-size: 1.8rem;
        }
    }

/* ====== Encabezado, miga de pan y barra de categorias ====== */
    /* ====== Encabezado ====== */

    .heading-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        background-color: #F1F1F1 !important;
        padding: 10px 20px;
        border-radius: 6px;
        color: #fff;
        font-family: Arial, sans-serif;
        font-size: 14px;
    }

    .heading-wrapper h3 {
        margin: 0;
        font-size: 14px;
        padding-left: 20px;
        font-weight: normal;
    }

    .heading-wrapper a {
        color: #3EB447;
        text-decoration: none;
        font-size: 23px;
    }

    .heading-wrapper li {
        list-style: none;
        color: #606060;
        font-size: 23px;
    }

    .heading-wrapper li::before {
        content: "›";
        margin: 0 8px;
        color: #888;
    }




    /* ====== Barra de categorías ====== */
    .category-bar {
        background: #606060;
        border-radius: 0 0 90px 90px;
        display: flex;
        justify-content: center;
        height: 5px;
    }

    .category-item {
        flex: 1 1 0;
        text-align: center;
        padding: 1.25rem .5rem;
        font-size: 1.25rem;
        font-weight: 600;
        color: #fff;


    }

    .category-item:not(:first-child)::before {
        content: "";
        position: absolute;
        left: 0;
        top: 25%;
        width: 1px;
        height: 50%;
        background: #fff;
        opacity: .75;
    }

    /* ====== Banner: Zonas WiFi de Ibagué ====== */
    #wifi-banner-wrapper {
        height: 650px;
    }

    @media (max-width: 767.98px) {
        #wifi-banner-wrapper {
            height: 480px;
        }
    }

/* ====== Banners embebidos (Descubre Ibague y Zonas WiFi) ======
   Antes estos estilos estaban en atributos style= dentro del HTML. */
.banner-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

/* Descubre Ibague no es responsive: se dibuja a 1280x650 y el archivo
   ibague-capital-musical.js lo escala al ancho disponible. */
#turismo-iframe {
    width: 1280px;
    height: 650px;
    transform-origin: top left;
}

/* El mapa de Zonas WiFi si se adapta solo: ocupa todo el contenedor. */
#wifi-banner-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* Capa que bloquea el scroll del mapa de Zonas WiFi hasta que el usuario
   hace clic dentro de el a proposito (ver ibague-capital-musical.js). */
.mapa-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mapa-overlay-mensaje {
    margin-bottom: 14px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* Una vez el usuario hace clic, la capa se retira y el mapa queda libre
   para recibir el scroll, arrastre y zoom directamente. */
.mapa-overlay.mapa-overlay-inactiva {
    display: none;
}
