/* ===================================
   NUEVOS ESTILOS PARA SHOWS.HTML
   =================================== */

/* --- 0. Ajustes del Body y Header --- */
.shows-page body {
    background-color: var(--color-bg-accent);
}

.shows-page .site-header,
.shows-page .site-header.scrolled {
    height: var(--header-h-scrolled); /* 80px */
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.shows-page .site-header .header-col-left,
.shows-page .site-header .header-col-right {
    justify-content: flex-start;
    flex-grow: 1;
}
.shows-page .site-header .header-col-right {
    justify-content: flex-end;
}

.shows-page .site-header .logo img,
.shows-page .site-header.scrolled .logo img {
    height: 60px;
}

/* --- 1. Main y Hero Section --- */
main#shows-main {
    padding-top: var(--header-h-scrolled); /* 80px */
}

.sh-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    background-size: cover;
    background-position: center 60%;
    padding-top: 4rem; 
    padding-bottom: 4rem;
    min-height: 400px;
    height: auto;
    margin-top: 0;
}
.sh-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.sh-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInDown 1s ease-out;
}
.sh-hero h1 {
    font-family: var(--font-2);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin: 0 0 16px;
}
.sh-hero p {
    font-family: var(--font-1);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 32px;
}
.sh-hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-hero {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-3);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-hero.btn-primary {
    background: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
}
.btn-hero.btn-primary:hover {
    background: #ffdd8a;
    border-color: #ffdd8a;
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-hero.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-hero.btn-secondary:hover {
    background: #fff;
    color: var(--color-black);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- 2. Nav de Página --- */
.sh-page-nav {
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-h-scrolled); 
    z-index: 900;
    background: hsla(0, 0%, 100%, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.sh-nav-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.sh-nav-container::-webkit-scrollbar {
    display: none;
}
.sh-page-nav a {
    font-family: var(--font-3);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-secondary);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.sh-page-nav a:hover {
    color: var(--color-black);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}

/* --- 3. Bloques de Contenido --- */
#shows-lista.section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-accent);
}

.sh-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: var(--spacing-xl) clamp(1rem, 5vw, 3rem); 
    background-color: var(--surface); 
    
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sh-block:nth-child(even) {
    background-color: #fbfbfb; 
}
.sh-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sh-copy .sh-intro-p {
    display: none; /* Oculto en móvil, visible en desktop */
}

.sh-copy h3 {
    font-family: var(--font-2);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--color-secondary);
    margin: 0 0 16px;
}
.sh-copy p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: justify;
    margin-bottom: 24px;
}
.btn-cta-section {
    display: inline-block;
    background: var(--color-secondary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-3);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 16px;
}
.btn-cta-section:hover {
    background: var(--color-primary);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    text-decoration: none;
}

/* --- 3.1 Estilos de Galería --- */

.sh-mobile-carousel {
    display: block; /* Visible por defecto */
    border-radius: var(--radius-md);
    overflow: hidden; 
    box-shadow: var(--shadow-1);
}
.sh-mobile-carousel .carousel-image {
    height: auto;
    aspect-ratio: 1/1; /* Imágenes cuadradas */
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}
.sh-mobile-carousel .carousel-nav { bottom: 12px; }
.sh-mobile-carousel .carousel-indicator { width: 8px; height: 8px; }
.sh-mobile-carousel .carousel-button { width: 32px; height: 32px; line-height: 32px; font-size: 14px; }

/* Galería de escritorio (oculta por defecto) */
.sh-desktop-gallery {
    display: none; /* Oculta por defecto, se activa en @media */
    grid-template-columns: 1fr 1fr; /* Grilla simple de 2 columnas */
    gap: 12px;
}
.sh-desktop-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1; /* Respeta que son cuadradas */
}
.sh-desktop-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-2);
    z-index: 10;
}

/* --- 4. Sección Horarios --- */
.sh-horarios {
    padding: 4rem 2rem;
    background: var(--surface);
    text-align: center;
}
.sh-horarios h2 {
    font-family: var(--font-2);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-secondary);
    margin-bottom: 16px;
}
.sh-horarios p {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.sh-horarios .sh-horarios-sub {
    font-size: 1.0rem;
    color: #555;
    font-style: italic;
}

/* --- 5. CTA Final --- */
.sh-cta-final {
    padding: 5rem 2rem;
    background: #fbfbfb; /* Fondo gris claro */
    text-align: center;
}
.sh-cta-final h2 {
    font-family: var(--font-2);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-secondary);
    margin-bottom: 12px;
}
.sh-cta-final p {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 32px;
    text-align: center;
}
.sh-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sh-cta-buttons .btn-hero {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sh-cta-buttons .btn-hero img {
    width: 24px;
    height: 24px;
}
.sh-cta-buttons .btn-primary {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}
.sh-cta-buttons .btn-primary:hover {
    background: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
    text-decoration: none;
}
.sh-cta-buttons .btn-secondary {
    background: #fff;
    color: var(--color-secondary);
    border-color: #fff;
    box-shadow: var(--shadow-1);
}
.sh-cta-buttons .btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
    text-decoration: none;
}

/* ===================================
   Responsive (Móvil < 600px)
   =================================== */
@media (max-width: 600px) {
    main#shows-main {
        padding-top: 0 !important; 
    }

    .sh-hero {
        padding-top: 1.5rem; 
        padding-bottom: 1.5rem;
        min-height: 350px;
    }
    
    .sh-hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Ocultar el nav-bar de anclas */
    .sh-page-nav {
        display: none;
    }

    /* Ocultar galerías de escritorio */
    .sh-desktop-gallery {
        display: none;
    }

    /* Mostrar carruseles móviles */
    .sh-mobile-carousel {
        display: block;
    }
    
    /* Layout de 1 columna */
    .sh-block,
    .sh-block:nth-child(even) {
        grid-template-columns: 1fr; /* 1 columna */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Orden: Media/Carrusel PRIMERO, Texto DESPUÉS */
    .sh-block .sh-copy { order: 2; }
    .sh-block .sh-media { order: 1; } 
    
    .sh-block {
        gap: 1.5rem; /* Reducir gap */
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .sh-copy {
        text-align: center;
    }
    .sh-copy p {
        margin-bottom: 1rem;
        text-align: justify;
    }
    .sh-copy h3 {
        font-size: 1.8rem;
    }
    
    .btn-cta-section {
        width: 100%;
        text-align: center;
    }
    
    .sh-horarios {
        padding: 3.5rem 1.5rem;
    }

    .sh-cta-final {
        padding: 3.5rem 1.5rem;
    }
    .sh-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .sh-cta-buttons .btn-hero {
        justify-content: center;
    }
}

/* ===================================
   Responsive (Tablet 601px - 1050px)
   =================================== */
@media (min-width: 601px) and (max-width: 1050px) {

    /* Ocultar nav de anclas */
    .sh-page-nav {
        display: none; 
    }
    
    /* Layout 1:1 */
    .sh-block, .sh-block:nth-child(even) { 
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .sh-block:nth-child(even) .sh-media {
        order: -1;
    }
    
    /* Mostrar Grid, Ocultar Carrusel */
    .sh-mobile-carousel { display: none; }
    .sh-desktop-gallery { display: grid; }
}

/* ===================================
   Responsive (Escritorio > 1051px)
   =================================== */
@media (min-width: 1051px) {
    
    /* Texto ocupa más espacio */
    .sh-block { 
        grid-template-columns: 1.2fr 1fr; 
    }
    .sh-block:nth-child(even) { 
        grid-template-columns: 1fr 1.2fr; 
    }
    .sh-block:nth-child(even) .sh-media {
        order: -1;
    }

    /* Mostrar párrafo intro */
    .sh-copy .sh-intro-p { 
        display: block;
        font-family: var(--font-1);
        font-style: italic;
        font-size: 1.05rem;
        color: #555;
        margin-bottom: 1.5rem;
        text-align: justify;
        border-left: 3px solid var(--color-primary);
        padding-left: 1rem;
    }

    /* Mostrar Grid, Ocultar Carrusel */
    .sh-mobile-carousel { display: none; }
    .sh-desktop-gallery { display: grid; }
}

/* Keyframes para animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}