/* Estilos para el Festival Internacional de Folclore */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,900;1,400&display=swap');

:root {
    --color-primary: #262626;
    --color-secondary: #891d29;
    --color-secondary-rgb: 137, 29, 41;
    --color-accent: #e8c502;
    --color-light: #f1f1f1;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: ;
}

/* Disable text selection globally */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable text selection for lightbox content */
.lightbox-content,
.lightbox-content * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Desktop background */
/* Prevent selection highlight on background pseudo-element */
.bg-desktop::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/bg1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: filter 0.5s, transform 0.5s;
    user-select: none;
    -webkit-user-select: none;
}

.bg-desktop.blur-background::before {
    filter: blur(4px);
    transform: scale(1.05);
}

/* Mobile background */
.bg-mobile::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: filter 0.5s, transform 0.5s;
    user-select: none;
    -webkit-user-select: none;
}

.bg-mobile.blur-background::before {
    filter: blur(2.5px);
    transform: scale(1.02);
}

/* On tablets, keep the same background image as desktop (use bg1) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Use the desktop background image on tablet sizes to match desktop */
    .bg-mobile::before,
    .bg-desktop::before {
        background-image: url('../images/bg1.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    * {
        max-width: 100vw;
    }
}

/* Tablet tweak: make #revivi background reach the Diego Torres hero */
@media (max-width: 1024px) and (min-width: 769px) {
    #revivi::before {
        /* expand vertically so it overlaps/touches the next section */
        /* match desktop values so the join is identical */
        top: -2% !important;
        height: 104% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: -2 !important;
    }
}

/* Artistas: cuando se activa, reemplaza el fondo global por bg2 */
.bg-artistas.bg-desktop::before {
    background-image: url('../images/bg2.webp');
    background-size: cover;
    background-position: center center;
}

.bg-artistas.bg-mobile::before {
    background-image: url('../images/bg2.webp');
    background-size: cover;
    background-position: center center;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 38, 38, 0.65);
    transition: background-color 0.5s ease;
    z-index: -1;
}

body.blur-background::after {
    background-color: rgba(38, 38, 38, 0.4);
}

/* Hero Slider Section */
.hero-slider-section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    outline: none;
}

/* Reduce height on tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-slider-section {
        display: none;
    }
    .hero-mobile-section {
        display: block;
    }
}

/* Mobile-only hero (built from scratch for small screens) */
.hero-mobile-section {
    display: none; /* hidden by default, shown on small screens */
    width: 100%;
    background: var(--color-primary);
    color: var(--color-light);
}

.hero-mobile-section .mobile-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.hero-mobile-section .mobile-hero-image-container {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
}

.hero-mobile-section .mobile-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-mobile-section .mobile-hero-image.active {
    opacity: 1;
}

.hero-mobile-section .mobile-hero-text {
    padding: 18px 16px;
    background: rgba(0,0,0,0.5);
    color: var(--color-light);
    text-align: center;
}

.hero-mobile-section .mobile-hero-text h2 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 900;
}

.hero-mobile-section .mobile-hero-text p {
    margin: 0;
    font-size: 0.95rem;
}

.hero-mobile-section .mobile-hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.hero-mobile-section .mobile-dot {
    width: 10px;
    height: 10px;
    background: rgba(241,241,241,0.3);
    border: none;
    border-radius: 50%;
    padding: 0;
}

.hero-mobile-section .mobile-dot.active {
    background: var(--color-accent);
}

.hero-content {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.hero-left {
    display: grid;
    grid-template-rows: 0.8fr auto 0.5fr;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background-color: rgba(38, 38, 38, 0.9);
}

/* Disable clicks inside .hero-left except on the main button */
.hero-left {
    pointer-events: none;
}
.hero-left .hero-button-container,
.hero-left .hero-btn {
    pointer-events: auto;
    margin-bottom: 3%;
}

.hero-logo {
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    justify-self: center;
}

.hero-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    min-height: 200px;
}

.hero-text-center h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--color-light);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-text-center p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--color-light);
    text-align: center;
    max-width: 450px;
}

.hero-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn {
    padding: 16px 40px;
    background-color: var(--color-secondary);
    color: var(--color-light);
    border: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.hero-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.dt-btn {
    padding: 16px 40px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    margin-bottom: 20px;
}

.dt-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-light);
    transform: translateY(-2px);
}

.hero-right {
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 2s ease;
}

.hero-image-container:hover .hero-image.active {
    transform: scale(1.1);
}

.hero-image.active {
    opacity: 1;
}

.artist-slider-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.artist-slider-image.active {
    display: block;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.scroll-dot {
    width: 14px;
    height: 14px;
    background-color: rgba(241, 241, 241, 0.4);
    border: 2px solid var(--color-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot:hover {
    background-color: rgba(241, 241, 241, 0.7);
}

.scroll-dot.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

@media (max-width: 768px) {
    /* show mobile-only hero and ensure desktop hero remains hidden (already hidden elsewhere) */
    .hero-mobile-section { display: block; }
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .hero-left {
        padding: 30px 20px;
    }
    
    .hero-logo {
        max-width: 180px;
    }
    
    .hero-text-center h2 {
        font-size: 1.8rem;
    }
    
    .hero-text-center p {
        font-size: 0.95rem;
        max-width: 300px;
    }
    
    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }

    /* Mobile: mostrar la imagen arriba y el bloque de texto/button debajo */
    .hero-right { grid-row: 1; }
    .hero-left { grid-row: 2; }

    /* Ocultar sección hero completa en mobile */
    .hero-slider-section {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    #artistas .section-header {
        background: var(--color-accent);
        color: var(--color-primary);
    }

    #artistas .section-header h2 {
        color: var(--color-primary);
    }
}

/* Mobile: ocultar indicadores (puntos) del hero para que el botón no quede detrás */
@media (max-width: 768px) {
    .hero-scroll-indicator {
        display: none !important;
    }

    /* Asegurar que el botón principal esté por encima si hay superposición */
    .hero-btn {
        position: relative;
        z-index: 20;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    overflow: visible !important;
    min-width: 0;
    min-height: 0;
}

.durazno-late-bg {
    background: var(--color-secondary);
    position: relative;
    max-width: 100vw;
}

.durazno-late-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pampa.png');
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* Adjust background for tablets to prevent overflow */
@media (max-width: 1024px) and (min-width: 769px) {
    .durazno-late-bg::before {
        background-size: cover;
    }
}

/* Sección Durazno Late en el Centro */


.durazno-late-content {
    max-width: 1200px;
    margin: 0 auto;
}

.durazno-late-header {
    background-color: var(--color-primary);
    padding: 40px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.durazno-late-header h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--color-light);
    margin: 0;
    line-height: 1.1;
}

.durazno-late-video {
    width: 100%;
    background: var(--color-primary);
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.durazno-late-video iframe {
    display: block;
    width: 100%;
    border: none;
}

.durazno-late-footer {
    width: 100%;
    background: var(--color-light);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.durazno-late-footer img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .durazno-late-header {
        padding: 30px 20px;
    }
    
    .durazno-late-video iframe {
        height: 400px;
    }

    .durazno-late-content {
        max-width: none;
        margin: 0;
    }
}

/* Sections */
.section {
    max-width: min(1400px, 100vw);
    margin: 0 auto 80px auto;
        padding: 0 var(--section-h-padding);
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

#inicio {
    position: relative;
    overflow-x: visible;
}

#inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-50vw + 50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
    z-index: -1;
}

#artistas {
    position: relative;
    overflow-x: visible;
}

#artistas::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-50vw + 50%);
    width: 100vw;
    height: 40%;
    background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
    z-index: -1;
}

body {
    background-attachment: scroll;
}

/* Revivi section keeps its existing pseudo-elements */
#revivi {
    position: relative;
    padding: 60px 40px;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    overflow: hidden;
}

#revivi::before {
    content: '';
    position: absolute;
    top: -2%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 104%;
    background-image: url('../images/morelo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -2;
}

#revivi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 38, 38, 0.5);
    z-index: -1;
}

.blur-background #revivi::after {
    background-color: rgba(38, 38, 38, 0.3);
}

#revivi {
    display: none;
}

#revivi .section-header,
#revivi .video-container {
    margin
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#revivi .video-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

#revivi .video-wrapper {
    padding-bottom: 0;
    height: auto;
}

#revivi .grid-item-text {
    width: 100%;
}

/* Section Header */
.section-header {
    /* make header span the full viewport width while keeping content padding */
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    box-sizing: border-box;
    background-color: var(--color-secondary);
    padding: 30px var(--section-h-padding, 40px);
    margin-bottom: 5%;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: -1;
}


.section-header h2 {
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: var(--color-light);
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 2%;
    /* default: align title text to the left edge of the content area */
    justify-content: flex-start;
    text-align: left;

    /* Align title with grid/content width */
    max-width: min(1400px, 100%);
    width: 100%;
    box-sizing: border-box;
    padding: 0 var(--section-h-padding, 40px);
    margin-left: auto;
    margin-right: auto;
}

.section-header a {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.section-header:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

}

/* Center only the Reviví header */
#revivi .section-header h2 {
    justify-content: center;
    text-align: center;
    font-size: 33px;
    line-height: 1.2;
}

.section-header-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Slight left padding to give header links breathing room */
.section-header-link {
}

/* Day Header */
.day-header {
    background-color: var(--color-accent);
    padding: 15px 40px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.day-header:first-of-type {
    margin-top: 0;
}

.day-header h3 {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin: 0;
}

/* Video Section */
.section-video {
    margin-bottom: 0;
}

.video-container {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    position: relative;
    max-width: 100%;
    padding-bottom: 45%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tablet adjustments for video section */
@media (max-width: 1024px) and (min-width: 769px) {
    .section-video {
        margin-bottom: 0px;
    }
    
    .video-container {
        padding: 30px 0;
    }
    
    .video-wrapper {
        max-width: 800px;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }
    
    .section-video .section-header {
        padding: 25px 30px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .video-container {
        padding: 20px 0;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .video-wrapper {
        padding-bottom: 0;
        height: 38vh;
        max-height: 60vh;
    }
}

/* Grid Container - Swiss Grid Style */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

/* Grid Items */
.grid-item {
    height: 350px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
}

.grid-item-bg {
    flex: 1;
    position: relative;
}

.grid-item-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Iconos SVG más pequeños y contenidos */
.grid-item-bg img[src$=".svg"] {
    width: 50%;
    height: 50%;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

/* Larger SVG for specific items */
.svg-large {
    width: 80% !important;
    height: 80% !important;
}

/* Reduce SVG size on tablets and mobile to fit within grid item */
@media (max-width: 1024px) {
    .svg-large {
        width: 60% !important;
        height: 60% !important;
    }
}

@media (max-width: 768px) {
    .svg-large {
        width: 50% !important;
        height: 50% !important;
    }
}

.overlay-logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 33.33%;
    height: 100%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
}

.overlay-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: static;
}

.overlay-678 {
    position: absolute;
    left: 33.33%;
    top: 0;
    width: 66.66%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3;
}

.overlay-678 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: static;
}

.grid-item-bg-triple {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.triple-rect {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.triple-rect img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.triple-rect-image {
    padding: 0;
}

.triple-rect-image img {
    object-fit: cover;
}

.grid-item-bg iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-container {
    cursor: pointer;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 38, 38, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-modal.active {
    opacity: 1;
}

.map-modal-content {
    position: relative;
    width: 90%;
    height: 80%;
    max-width: 1200px;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.map-modal.active .map-modal-content {
    transform: scale(1);
    opacity: 1;
}

.map-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--color-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.map-modal-close:hover {
    color: var(--color-accent);
}

.grid-item-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: height 0.3s ease;
    z-index: 1;
}

.grid-item:hover .grid-item-bg::before {
    height: 80%;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Glow effect for destacado artists on hover */
.grid-item.destacado:hover {
    box-shadow: 0 0 20px rgba(241, 241, 241, 0.6), 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: none; /* Prevent elevation to keep it behind */
    transition: box-shadow 0.5s ease;
}

/* Grid Item Text */
.grid-item-text {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.grid-item-text.destacado {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-size: 200%;
}

/* Grilla de artistas 2026: usar color secundario en el recuadro de texto */
.artist-grid .grid-item-text {
    background-color: var(--color-primary);
    color: var(--color-accent);
    font-size: 26px;
}

.artist-grid .grid-item-text.destacado {
    /* keep destacado contrast but tuned for artist-grid */
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* Premio Revelación Banner */
.premio-revelacion {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 8px 15px;
    font-weight: 900;
    font-size: 16px;
    text-align: left;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    align-items: center;
}

.premio-revelacion::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('../images/trophy-svgrepo-com.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Artist Name */
.artist-name {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* Grid Text */
.grid-text {
    width: 100%;
    padding: 20px;
    color: var(--color-light);
    font-weight: 900;
    font-size: 18px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.grid-text-dark {
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* Shapes */
.square {
    width: calc((100% - 60px) / 4);
}

.rect-h {
    width: calc(((100% - 60px) / 4) * 2 + 20px);
}

.rect-h-3x {
    width: calc(((100% - 60px) / 4) * 3 + 40px);
}

/* Color Backgrounds */
.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.bg-light {
    background-color: var(--color-light);
}

.text-primary {
    color: var(--color-primary);
}

.text-light {
    color: var(--color-light);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .section {
        --section-h-padding: 20px;
        padding: 0 var(--section-h-padding);
        margin-bottom: 60px;
    }

    .grid-container {
        gap: 15px;
        /* base measurements for artist boxes on mobile */
        --artist-base-width: calc(100vw - (var(--section-h-padding, 20px) * 2));
        --artist-base-height: calc(var(--artist-base-width));
    }

    .grid-item {
        width: 100%;
        box-sizing: border-box;
    }

    /* On mobile make all artist tiles the same base height */
    .square,
    .rect-h,
    .rect-h-3x {
        height: var(--artist-base-height);
        max-height: 420px; /* limit extreme heights on very large phones */
    }

    /* Destacados: slightly taller but never shorter */
    .square.destacado,
    .rect-h.destacado,
    .rect-h-3x.destacado {
        height: calc(var(--artist-base-height) + 30px);
        max-height: 480px;
    }
}

/* Navbar - Minimalismo Modular Swiss/International Grid */
.navbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    background-color: var(--color-primary);
    color: var(--color-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: auto;
    max-height: 80px;
    transition: height 220ms ease, padding 220ms ease, box-shadow 220ms ease;
}

.navbar-logo {
    flex-shrink: 1;
    min-width: 0;
        flex: 0 0 auto;
        
        max-width: 80px;
    text-decoration: none;
    display: block;
}

.logo-square {
    width: 80px;
    height: 80px;
        min-width: 0;
        max-width: 80px;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
}

.logo-square img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.navbar-content {
    flex: 1 1 0%;
    display: flex;
        align-items: stretch;
    justify-content: flex-end;
    padding: 0 32px;
    box-sizing: border-box;
    background-color: var(--color-primary);
    gap: clamp(24px, 4vw, 60px);
    min-width: 0;
    min-height: 0;
        width: 100%;
}

.festival-title-link {
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: auto;
    flex-shrink: 1;
    min-width: 0;
        flex: 0 0 auto;
        max-width: 420px;
}

.festival-title-link:hover .festival-title {
    color: var(--color-accent);
}

.festival-title {
    font-size: 18px;
    min-width: 0;
        white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
        max-width: 100%;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0;
    text-transform: uppercase;
    color: var(--color-light);
        overflow-wrap: break-word;
        display: block;
}

.navbar {
    /* smooth transition for layout-related properties */
    transition: padding 220ms ease, box-shadow 220ms ease;
}

/* ensure enough spacing when not shrunk */

/* Transition individual children so they change size and the layout reflows */
.logo-square {
    transition: width 220ms ease, height 220ms ease, padding 220ms ease;
}

.festival-title {
    transition: font-size 220ms ease, line-height 220ms ease;
}

.nav-links {
    transition: gap 220ms ease, font-size 220ms ease;
}

/* Shrink by reducing sizes by ~20% so layout height changes too */
.navbar.shrink {
    height: 64px;
    min-height: 48px;
    padding: 5.12px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    overflow: hidden;
}

.navbar.shrink .logo-square {
    width: 64px; /* 80 * 0.8 */
    height: 64px;
    padding: 5.12px 6.4px;
}

.navbar.shrink .festival-title {
    font-size: 15.4px; /* ~18 * 0.8 */
}

/* Prevent festival-title size change on desktop */
@media (min-width: 769px) {
    .navbar.shrink .festival-title {
        font-size: 18px;
    }
}

.navbar.shrink .nav-links a {
    font-size: 10.4px;
}

/* Prevent nav-links size change on desktop */
@media (min-width: 769px) {
    .navbar.shrink .nav-links a {
        font-size: 14px;
    }
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(8px, 1vw, 20px);
    list-style: none;
    margin: 0;
    min-width: 0;
    flex-shrink: 1;
}

.nav-links a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(10px, 2vw, 20px);
    align-items: center;
    margin-left: 10px;
    flex-shrink: 1;
    min-width: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-light);
    transition: color 0.3s ease, transform 0.3s ease;
    width: 24px;
    height: 24px;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.social-links svg {
    width: 100%;
    height: 100%;
}

/* Menu toggle button - oculto en desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive - Mobile: keep navbar equal to desktop (undo mobile-specific navbar effects) */
@media (max-width: 1024px) {
    .navbar {
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 0 0 0;
        height: auto;
    }
    .navbar-content {
        flex-direction: row;
        align-items: center;
        padding: 0 10px;
        gap: 0;
    }
    .logo-square {
        width: 64px;
        height: 64px;
    }
    .festival-title {
        font-size: 18px;
        white-space: normal;
        max-width: 180px;
    }
    .menu-toggle {
        display: flex !important;
        margin-left: 10px;
        z-index: 1201;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        background: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        padding-top: 100px;
        transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        z-index: 1200;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 18px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: var(--color-light);
        background: none;
        transition: background 0.2s, color 0.2s;
    }
    .nav-links a:hover {
        background: var(--color-secondary);
        color: var(--color-primary);
    }
    .social-links {
        position: fixed;
        bottom: 30px;
        left: 0;
        width: 100vw;
        justify-content: center;
        z-index: 1202;
        /* Hidden by default on mobile; reveal when menu is open */
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    /* Show social links only when the nav is active */
    .nav-links.active + .social-links,
    .nav-links.active ~ .social-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .festival-title {
        font-size: 14px;
    }
    .festival-title-link {
        flex: 1;
        text-align: left;
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 60px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    max-width: 200px;
    text-align: center;
    line-height: 1.3;
}

.footer-678 {
    height: 100%;
    width: 100%;
    object-fit: contain;
    margin-left: auto;
    margin-top: -5px;
    background: transparent;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    font-style: italic;
    color: rgba(241, 241, 241, 0.85);
    margin-bottom: 15px;
}

.footer-emphasis {
    font-weight: 900;
    font-style: normal;
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-read-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-secondary);
    color: var(--color-light);
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.download-button-container {
    text-align: center;
    margin: 20px 0;
}

.btn-download {
    padding: 15px 40px;
    font-size: 16px;
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-download:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.footer-nav h3 {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--color-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    color: var(--color-light);
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.footer-social-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.05);
}

.footer-social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(241, 241, 241, 0.1);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logos {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.footer-logos img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(241, 241, 241, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logos {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        margin-bottom: 10px;
    }
    
    .footer-bottom p {
        order: 2;
    }
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-logo .logo-square {
        width: 100px;
        height: 100px;
    }
    
    .footer-title {
        font-size: 14px;
    }
    
    .btn-read-more {
        align-self: center;
    }
    
    .footer-nav {
        text-align: center;
    }
    
    .footer-nav ul {
        align-items: center;
    }
    
    /* Mobile-specific footer adjustments */
    .footer-text {
        font-size: 12px;
        line-height: 1.4;
        text-align: justify;
    }
    
    .footer-info {
        gap: 15px;
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-678 {
        margin-left: 0;
        margin-top: 0;
        height: 100%;
        width: 100%;
    }
    
    .ministerial-logo {
        height: 60px;
    }
}

/* Tablet footer adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 50px 30px;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
        max-width: 600px;
    }
    
    .footer-nav {
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
    
    .footer-title {
        font-size: 15px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .footer-nav h3 {
        font-size: 13px;
    }
    
    .footer-nav a {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding: 20px 20px;
    }
    
    .footer-logos {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Parque Slider */
.parque-slider {
    margin: 30px 0;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height to prevent jumping and allow cropping */
    margin: 0 auto;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slides {
    display: flex;
    width: 700%; /* 7 slides * 100% */
    height: 100%;
    transition: transform 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slide {
    width: calc(100% / 7); /* 100% / 7 */
    flex-shrink: 0;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio, crop vertically if needed */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slider-dots {
    margin-top: 10px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.dot.active {
    opacity: 1;
}

/* Hide parque-slider on tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .parque-slider {
        display: none;
    }
}

/* Highlight animation when navigating to a section */
.scroll-highlight {
    animation: scroll-highlight 1.4s ease;
}
@keyframes scroll-highlight {
    0% { box-shadow: 0 0 0 rgba(0,0,0,0); transform: translateY(8px); opacity: 0.98; }
    30% { box-shadow: 0 20px 50px rgba(0,0,0,0.18); transform: translateY(0); opacity: 1; }
    100% { box-shadow: 0 0 0 rgba(0,0,0,0); transform: translateY(0); opacity: 1; }
}

/* ===================================
   LIGHTBOX MODULAR
   =================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 38, 38, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.1);
}

.lightbox-container {
    background: var(--color-light);
    width: 100%;
    max-width: 900px;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#youtubeLightbox .lightbox-container {
    width: 60vw;
    height: auto;
    max-width: none;
    max-height: none;
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
    opacity: 1;
}

.lightbox-container-auto {
    width: auto;
    max-width: 95vw;
}

/* Header del lightbox */
.lightbox-header {
    display: flex;
    align-items: stretch;
    background: var(--color-light);
    flex-shrink: 0;
}

.lightbox-logo-square {
    width: 80px;
    height: 80px;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}

.lightbox-logo-square img {
    width: 150%;
    height: 150%;
    object-fit: contain;
}

.lightbox-title-rect {
    flex: 1;
    background: var(--color-light);
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.lightbox-title-rect h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.lightbox-close {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.lightbox-close:hover {
    background: var(--color-secondary);
}

.lightbox-close span {
    color: var(--color-light);
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

/* Contenido del lightbox */
.lightbox-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    background: var(--color-light);
    display: flex;
    flex-direction: column;
}

.lightbox-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-primary);
    position: relative;
    flex-shrink: 0;
}

.lightbox-image.camping-lightbox-image {
    height: auto;
    max-height: none;
}

.lightbox-image.camping-lightbox-image img {
    object-fit: contain;
    object-position: center;
    height: auto;
}

.lightbox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.lightbox-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 40px;
}

.lightbox-image-overlay img {
    width: 60%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    position: static;
}

.lightbox-body {
    padding: 40px;
    color: var(--color-primary);
    line-height: 1.8;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar personalizado para lightbox-body */
.lightbox-body::-webkit-scrollbar {
    width: 24px;
}

.lightbox-body::-webkit-scrollbar-track {
    background: var(--color-light);
    border-left: 3px solid var(--color-primary);
}

.lightbox-body::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border: 4px solid var(--color-light);
    border-radius: 0;
    box-shadow: none;
}

.lightbox-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
    border: 4px solid var(--color-light);
}

.lightbox-body::-webkit-scrollbar-thumb:active {
    background: var(--color-accent);
}

/* Firefox scrollbar */
.lightbox-body {
    scrollbar-width: auto;
    scrollbar-color: var(--color-primary) var(--color-light);
}

.lightbox-body p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.lightbox-body p:last-child {
    margin-bottom: 0;
}

.lightbox-body strong {
    font-weight: 900;
}

/* Cursor pointer en grid items */
.grid-item {
    cursor: pointer;
}

/* Responsive lightbox */
@media screen and (max-width: 768px) {
    .lightbox-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .lightbox-logo-square,
    .lightbox-close {
        width: 60px;
        height: 60px;
    }
    
    .lightbox-title-rect {
        padding: 0 15px;
    }
    
    .lightbox-title-rect h2 {
        font-size: 16px;
    }
    
    .lightbox-close span {
        font-size: 28px;
    }
    
    .lightbox-image {
        height: 250px;
    }
    
    .lightbox-body {
        padding: 25px 20px;
    }
    
    .lightbox-body p {
        font-size: 14px;
    }
    
    .lightbox-body p {
        font-size: 14px;
    }
    
    .lightbox-body::-webkit-scrollbar {
        width: 8px;
    }
}

/* Hide concurso items on mobile */
@media screen and (max-width: 768px) {
    .concurso {
        display: none;
    }
}

/* Full screen lightbox on tablet and mobile */
@media (max-width: 1024px) {
    .lightbox-overlay {
        padding: 0;
    }
    
    .lightbox-container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
    }
}

/* Make video-creator-credit smaller and non-overlapping on mobile */
@media screen and (max-width: 768px) {
    .video-creator-credit {
        padding: 8px 10px;
        gap: 8px;
        font-size: 12px;
        width: auto;
        max-width: 85%;
        align-self: center;
        justify-content: center;
        position: relative;
        bottom: auto;
        right: auto;
        transform: none;
        background-color: rgba(38,38,38,0.85);
        border: 2px solid rgba(241,241,241,0.04);
    }

    .video-creator-credit .instagram-icon {
        width: 16px;
        height: 16px;
    }

    .video-creator-credit img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    .video-creator-credit a {
        font-size: 11px;
    }

    /* Prevent internal images from overlapping: stack horizontally with gap */
    .video-creator-credit > * { display: inline-flex; align-items: center; }
}

/* ===================================
   LIGHTBOX ARTISTA - Fotos
   =================================== */
.artist-photos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-light);
}

.artist-photo-square {
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.artist-photo-square:first-child {
    background: var(--color-secondary);
    padding: 30px;
}

.artist-photo-square:first-child img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.artist-photo-square:last-child {
    background: var(--color-primary);
}

.artist-photo-square:last-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive artista */
@media screen and (max-width: 768px) {
    .artist-photo-square:first-child {
        padding: 15px;
    }
}

/* ===================================
   LIGHTBOX VIDEO
   =================================== */
.lightbox-video-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    width: 100%;
}

.lightbox-video-container {
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-video-container video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
}

/* YouTube Lightbox - Horizontal */
.lightbox-youtube-container {
    width: 60vw;
    height: calc(60vw * 9 / 16);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-youtube-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lightbox-video-text {
    background: var(--color-primary);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    min-width: 350px;
    position: relative;
}

.lightbox-video-text.cultura-viva-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/matesinde.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) blur(3px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.lightbox-video-text.cultura-viva-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, var(--color-primary) 0%, rgba(38, 38, 38, 0.7) 30%, rgba(38, 38, 38, 0.3) 60%, transparent 100%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox-video-text.cultura-viva-bg:hover::after {
    opacity: 1;
}

.lightbox-video-text h3,
.lightbox-video-text p {
    position: relative;
    z-index: 1;
}

.lightbox-video-logos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 16px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-video-text.cultura-viva-bg .lightbox-video-logos {
    opacity: 1;
}

.lightbox-video-logos img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* Video creator credits */
.video-creator-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 50px;
    padding: 12px 24px;
    background-color: var(--color-secondary);
    border: 3px solid transparent;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    width: fit-content;
}

.video-creator-credit .instagram-icon {
    width: 20px;
    height: 20px;
    color: var(--color-light);
    transition: color 0.3s ease;
}

.video-creator-credit a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.video-creator-credit:hover {
    background-color: var(--color-accent);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.video-creator-credit:hover .instagram-icon {
    color: var(--color-primary);
}

.video-creator-credit:hover a {
    color: var(--color-primary);
}

/* Comillas decorativas para la descripción */
#videoContentDescription::before {
    content: '"';
}

#videoContentDescription::after {
    content: '".';
}

.lightbox-video-text h3 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--color-light);
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.lightbox-video-text p {
    font-size: clamp(14px, 1.5vw, 18px);
    font-style: italic;
    color: var(--color-light);
    line-height: 1.6;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .lightbox-video-layout {
        grid-template-columns: 1fr;
    }
    
    .lightbox-video-container video {
        max-height: 50vh;
    }
    
    .lightbox-video-text {
        min-width: auto;
        padding: 25px 20px;
    }
}

/* ===================================
   SECCIÓN FOLCLORE HERO ANIMADA
   =================================== */
.section-folclore-hero {
    height: 75vh;
    max-height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    padding: 80px var(--section-h-padding);

    margin-bottom: 0;
    max-width: none;
    position: relative;
    max-width: 100vw;
}

/* Reduce height on tablets to fit content */
@media (max-width: 1024px) and (min-width: 769px) {
    .section-folclore-hero {
        height: 60vh;
        max-height: 60vh;
        min-height: 400px;
    }
}

/* Further reduce on mobile */
@media (max-width: 768px) {
    .section-folclore-hero {
        height: 90vh;
        max-height: 90vh;
        overflow: hidden;
    }
}

.section-folclore-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pampa.png');
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* Adjust background for tablets to prevent overflow */
@media (max-width: 1024px) and (min-width: 769px) {
    .section-folclore-hero::before {
        background-size: cover;
    }
}

.folclore-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    position: relative;
    z-index: 1;
}

.folclore-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    justify-items: center;
    gap: 0px;
    margin-bottom: 5%;
}

.folclore-logo {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    padding: 0px;
    aspect-ratio: 1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 2s ease-out;
}

.section-folclore-hero.animated .folclore-logo {
    opacity: 1;
    transform: scale(1);
}

.folclore-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.folclore-text-container {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 00px;
    overflow: hidden;
}

.folclore-line {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 900;
    color: var(--color-light);
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin: 0;
    opacity: 0;
    transition: opacity 2s ease-out;
}

.section-folclore-hero.animated .folclore-line {
    opacity: 1;
}

.folclore-highlight {
    color: var(--color-secondary);
    background-color: var(--color-light);
    padding: 8px 8px;
    display: inline-block;
}/* ...existing code... */
.folclore-logo {
    aspect-ratio: 1;
}

@media (max-width: 768px) {
    .folclore-logo {
        aspect-ratio: unset;
    }
}
/* ...existing code... *//* ...existing code... */
.folclore-logo {
    aspect-ratio: 0;
}
/* ...existing code... */

.folclore-etymology {
    font-family: var(--font-main);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.8;
    color: var(--color-light);
    text-align: center;
    width: 100%;
    max-width: 95%;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 2s ease-out;
}

.section-folclore-hero.animated .folclore-etymology {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Folclore Hero */
@media screen and (max-width: 768px) {
    .section-folclore-hero {
        height: auto;
        padding: 30px 16px;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .folclore-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
        align-items: center;
        text-align: center;
    }
    
    .folclore-logo {
        max-width: 320px;
        padding: 20px;
        /* Ensure visible immediately on mobile and disable transform animations */
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .folclore-text-container {
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
}

/* Also prevent the desktop animation class from animating the logo when on small screens */
@media screen and (max-width: 768px) {
    .section-folclore-hero.animated .folclore-logo {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Reduce vertical spacing for folclore etymology on small screens */
@media screen and (max-width: 768px) {
    .folclore-etymology {
        line-height: 1.35;
        /* keep font-size but allow slight scaling if needed */
        font-size: clamp(14px, 2vw, 18px);
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-left {
        padding: 24px 16px;
        gap: 10px;
    }
    .hero-logo {
        max-width: 220px;
    }
    .hero-text-center h2 {
        font-size: 1.5rem;
    }
    .hero-text-center p {
        font-size: 0.95rem;
        max-width: 300px;
    }
    .hero-btn {
        padding: 10px 22px;
        font-size: 0.95rem;
    }
    .folclore-content {
        gap: 32px;
    }
}

    /* Navbar responsive improvements for desktop and wide screens */
    .navbar {
        align-items: center;
        gap: 12px;
    }

    .navbar-content {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    /* Limit festival title growth and allow truncation on larger/wide screens only */
    @media (min-width: 901px) {
        .festival-title {
            font-size: clamp(22px, 1.3vw + 10px, 26px);
            line-height: 1.01;
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
            max-width: 56vw;
        }
    }

    /* Make nav links scale reasonably without exploding on ultra-wide displays */
    .nav-links a {
        font-size: clamp(12px, 0.8vw + 8px, 15px);
        padding: 6px 8px;
        display: inline-block;
        white-space: nowrap;
    }
    /* Remove dotted/orange focus outline on mobile nav links and toggle */
    @media (max-width: 768px) {
        .nav-links a:focus,
        .nav-links a:active,
        .menu-toggle:focus,
        .menu-toggle:active {
            outline: none;
            box-shadow: none;
            background: transparent;
            color: inherit;
        }
        .nav-links a,
        .menu-toggle {
            -webkit-tap-highlight-color: transparent;
        }
    }

    /* Ensure logo keeps its space and doesn't force title to shrink oddly */
    .navbar-logo {
        flex: 0 0 auto;
    }

    /* Stronger caps for very large screens */
    @media (min-width: 1400px) {
        .festival-title { max-width: 40vw; font-size: clamp(20px, 1vw + 12px, 26px); }
        .nav-links a { font-size: 14px; }
    }

    @media (min-width: 1800px) {
        .festival-title { font-size: 24px; }
        .nav-links a { font-size: 15px; }
    }

    /* Small polish: reduce spacing when vertical wrapping happens */
    @media (max-width: 900px) {
        .navbar-content { gap: 10px; }
        .festival-title { max-width: 70vw; line-height: 1.04; white-space: normal; overflow: visible; text-overflow: unset; }
    }

    /* Artistas background */
    #artistas-bg2 {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('images/fondo-artistas.jpg') no-repeat center center fixed;
        background-size: cover;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    #artistas.in-view ~ #artistas-bg2 {
        opacity: 1;
    }
    /* Make specific SVG icons appear light (use filter to turn dark SVGs white) */
    .grid-item-bg img.svg-light {
        filter: invert(1) brightness(1.6);
        max-width: 60%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    /* Make specific SVG icons appear accent color */
    .grid-item-bg img.svg-accent {
        /* attempt to recolor rasterized SVG icons to --color-accent using filters */
        -webkit-filter: brightness(0) saturate(100%) invert(82%) sepia(90%) saturate(800%) hue-rotate(5deg) brightness(102%);
        filter: brightness(0) saturate(100%) invert(82%) sepia(90%) saturate(800%) hue-rotate(5deg) brightness(102%);
        max-width: 60%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Preferred/future-proof approach: use inline SVGs with `fill="currentColor"`
       then simply set `color: var(--color-accent)` on the SVG or its container. */
/* Marca de agua para artistas */
.grid-item-bg.bg-secondary::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 55px;
    height: 55px;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

#myBtn {
    position: fixed;
    bottom: 10vh;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary);
    border: none;
    color: #fff;
    font-size: 24px;
    font-family: var(--font-main);
    font-weight: 900;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
    border-radius: 50%; /* Circle shape */
    outline: none;
    user-select: none;
}

#myBtn img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Make the SVG white */
    pointer-events: none;
}

#myBtn:hover {
    background-color: #000;
    color: var(--color-secondary);
}

#myBtn:hover img {
    transform: translateY(-5px);
}

/* Marca de agua específica para Grilla de artistas 2026 */
.artist-grid .grid-item-bg.bg-secondary::after {
    background-image: url('../images/festival52.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    width: 150px;
    height: 150px;
    bottom: 15px;
    right: 5px;
}

.diego-torres-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.dt-hero-left {
    overflow: hidden;
}

.dt-accent-bar {
    width: 100%;
    height: 60px;
    background-color: var(--color-primary);
}

.dt-hero-left img,
.dt-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dt-hero-left img {
    object-position: left;
}

.dt-hero-right img {
    object-position: right;
}

.dt-hero-left:hover img {
    transform: scale(1.1);
}

.dt-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.dt-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(38, 38, 38, 0.8); /* Overlay negro semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.dt-text {
    color: var(--color-light);
    text-align: left;
    max-width: 500px;
    margin: 0;
}

.dt-text h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 5%;
}

.dt-text p {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 30px 0;
}

.dt-navigation {
    position: absolute;
    bottom: 30px;
    left: 55%;
    transform: translateX(-150%);
    display: flex;
    gap: 0;
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dt-nav-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(38, 38, 38, 0.8);
    color: var(--color-light);
    border: none;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.dt-nav-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.05);
}

.dt-nav-btn:active {
    transform: scale(0.95);
}

/* Tablet adjustments for Diego Torres hero */
@media (max-width: 1024px) and (min-width: 769px) {
    .diego-torres-hero {
        height: 100vh;
    }
}

@media (max-width: 768px) {
    .dt-overlay {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        padding: 20px;
    }
    
    .dt-text {
        text-align: center;
    }
    
    .dt-text h1 {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .dt-text p {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }

    .dt-navigation {
        bottom: 20px;
        gap: 0;
    }

    .dt-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Ocultar hero específico de Diego Torres en mobile */
@media (max-width: 768px) {
    .diego-torres-hero {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
}

/* Tablet: fixed, smaller height for Diego Torres hero (ignore image intrinsic height) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* En tablets, force a 16:9 horizontal aspect ratio based on viewport width */
    .diego-torres-hero {
        width: 100vw;
        /* height = width * 9/16 to enforce 16:9 */
        height: calc(100vw * 9 / 16) !important;
        min-height: 360px !important; /* safety minimum */
        max-height: none !important;
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .diego-torres-hero .dt-hero-left,
    .diego-torres-hero .dt-hero-right {
        height: 100%;
    }

    .dt-hero-left img,
    .dt-hero-right img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ensure images fill the fixed height */
    }
}

/* Subtle continuous zoom animation for Diego Torres right image
   Applied via JS when the section is visible to the viewport. */
#dt-right-image {
    transform-origin: center center;
    will-change: transform;
}

.dt-zooming {
    animation: dtZoom 20s linear infinite;
}

@keyframes dtZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Hero right image zoom */
.hero-image-container.hero-zooming .hero-image.active {
    animation: heroZoom 20s linear infinite;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Folclore Hero Zoom Animation */
.section-folclore-hero {
    transform-origin: center center;
    will-change: transform;
}

.folclore-zooming {
    animation: folcloreZoom 30s linear infinite;
}

@keyframes folcloreZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Ensure the overlay follows the same subtle zoom and receives a shadow
   while the image is animating. Keeps transform-origin in sync. */
.dt-overlay {
    transform-origin: center center;
    will-change: transform, box-shadow;
}

.dt-overlay.dt-zooming {
    animation: dtZoom 20s linear infinite;
    box-shadow: 0 28px 60px rgba(0,0,0,0.55);
}

/* Forzar fondo primario en mobile y ocultar fondos de imagen móviles */
@media (max-width: 768px) {
    /* Hide decorative background pseudo-elements so solid color shows */
    .bg-desktop::before,
    .bg-mobile::before {
        display: none !important;
    }

    html, body {
        background-color: var(--color-primary) !important;
    }

    /* Ensure text is readable on dark background */
    body {
        color: var(--color-light) !important;
    }

    /* Minor adjustments for elements that relied on light page background */
    .section-header,
    .footer,
    .durazno-late-header {
        background-clip: padding-box;
    }

    /* Prevent horizontal overflow on small screens */
    html, body {
        overflow-x: hidden !important;
    }

    /* Hide the decorative background for Durazno Late video on mobile */
    .durazno-late-bg::before {
        display: none !important;
        background-image: none !important;
    }
}

/* Mobile artist grid: two items per row and equal heights */
@media screen and (max-width: 768px) {
    /* Scope two-column behavior to the artistas section only */
    #artistas .grid-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    #artistas .grid-item {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        height: 260px;
        margin: 0;
        box-sizing: border-box;
        border: 1px solid var(--color-accent);
    }

    /* Ensure destacado items use the same fixed height as regular items */
    #artistas .grid-item.destacado {
        height: 260px !important;
    }

    #artistas .grid-item-bg {
        position: relative;
        width: 100%;
        height: calc(100% - 48px); /* leave space for .grid-item-text */
        flex: none;
    }

    #artistas .grid-item-bg img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #artistas .grid-item-text {
        padding: 10px;
        font-size: 13px;
        height: 48px;
        flex: 0 0 48px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure destacado tiles keep readable contrast but match heights */
    #artistas .grid-item-text.destacado {
        font-size: 14px;
        height: 48px;
    }
}

/* Hide festival-title on screens between 1025px and 1199px */
@media (min-width: 1025px) and (max-width: 1199px) {
    .festival-title {
        display: none;
    }
}

/* Hide video containers on tablet and mobile except the Reviví section */
@media (max-width: 1024px) {
    .section:not(#revivi) .video-container,
    .section:not(#revivi) .video-wrapper {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure revivi keeps its video and is responsive on tablet/mobile */
    #revivi .video-container,
    #revivi .video-wrapper {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Make the revivi iframe span the full width of its section */
    #revivi .video-wrapper iframe {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 16/9;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }

    /* Thumbnail image used instead of video should fill the wrapper */
    #revivi .video-wrapper img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}

/* Responsive images for Destino San Javier */
.desktop-image {
    display: block;
}
.mobile-image {
    display: none;
}
@media (max-width: 768px) {
    .desktop-image {
        display: none;
    }
    .mobile-image {
        display: block;
    }
}

/* Peñas de Plaza Independencia Styles */
.penas-full-width {
    max-width: 100vw;
    margin: 0 0 20px 0;
}

.penas-header {
    background-color: var(--color-secondary);
    cursor: pointer;
    margin-bottom: 0;
}

.penas-toggle-btn {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    color: var(--color-light);
}

.penas-toggle-btn h2 {
    color: var(--color-light);
    margin: 0;
}

.expand-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.penas-content {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 20px var(--section-h-padding, 40px);
    border-top: 2px solid var(--color-light);
}

.penas-day h3 {
    font-weight: bold;
    margin-bottom: 10px;
}

.penas-list {
    margin-bottom: 20px;
}

.penas-item {
    padding: 10px 0;
}

.penas-separator {
    border: 0;
    border-top: 1px solid rgba(241, 241, 241, 0.3);
    margin: 0;
}

@media (max-width: 768px) {
    .penas-toggle-btn h2 {
        font-size: 24px;
    }
}

