.teatro-hero {
    position: relative;
    display: flex;
    align-items: end;
    min-height: 580px;
    color: #fff;
    background-image: var(--teatro-fondo);
    background-position: center;
    background-size: cover;
}

.teatro-hero-capa {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.45) 55%,
            rgba(0, 0, 0, 0.2) 100%
        );
}

.teatro-hero-contenido {
    position: relative;
    z-index: 1;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.teatro-hero-etiqueta {
    margin-bottom: 0.75rem;
    color: #efd8df;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.teatro-hero h1 {
    max-width: 950px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.98;
}

.teatro-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.teatro-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.teatro-hero-direccion {
    max-width: 700px;
    margin-top: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Información */

.teatro-informacion {
    padding: 5rem 0;
    background: #fff;
}

.teatro-descripcion h2,
.teatro-escenario h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
}

.teatro-texto {
    color: var(--home-texto);
    font-size: 1.12rem;
    line-height: 1.9;
}

.teatro-ficha {
    position: sticky;
    top: 2rem;
    padding: 2rem;
    background: var(--home-fondo);
    border-top: 5px solid var(--home-principal);
}

.teatro-ficha h2 {
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
}

.teatro-ficha dl {
    margin: 0 0 1.75rem;
}

.teatro-ficha dl > div {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--home-borde);
}

.teatro-ficha dt {
    margin-bottom: 0.2rem;
    color: var(--home-texto-suave);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.teatro-ficha dd {
    margin: 0;
    font-weight: 600;
}

.teatro-ficha .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

/* Galería */

.teatro-galeria-seccion {
    padding: 5rem 0;
    background: var(--home-fondo);
}

.teatro-galeria {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 260px;
    gap: 0.75rem;
}

.teatro-galeria-item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--home-radio);
}

.teatro-galeria-principal {
    grid-row: span 2;
}

.teatro-galeria-boton {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #ddd;
    border: 0;
    cursor: zoom-in;
}

.teatro-galeria-boton img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        filter 0.3s ease,
        transform 0.3s ease;
}

.teatro-galeria-boton:hover img,
.teatro-galeria-boton:focus-visible img {
    filter: brightness(0.78);
    transform: scale(1.025);
}

.teatro-galeria-ampliar {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 50%;
    place-items: center;
    opacity: 0;
}

.teatro-galeria-boton:hover .teatro-galeria-ampliar,
.teatro-galeria-boton:focus-visible
    .teatro-galeria-ampliar {
    opacity: 1;
}

/* Escenario */

.teatro-escenario {
    padding: 5rem 0;
    background: #fff;
}

.teatro-escenario-contenido {
    padding: 2rem;
    color: var(--home-texto);
    background: var(--home-fondo);
    border-left: 5px solid var(--home-principal);
    font-size: 1.08rem;
    line-height: 1.8;
}

/* Programación */

.teatro-programacion {
    padding: 5rem 0;
    background: var(--home-fondo-claro);
}

.teatro-sin-funciones {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    background: #fff;
    border-left: 5px solid var(--home-principal);
}

.teatro-sin-funciones
    > .material-symbols-outlined {
    color: var(--home-principal);
    font-size: 3rem;
}

.teatro-sin-funciones h3 {
    margin-bottom: 0.3rem;
}

.teatro-sin-funciones p {
    margin: 0;
    color: var(--home-texto-suave);
}

/* Modal */

.teatro-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.teatro-modal[hidden] {
    display: none;
}

.teatro-modal-fondo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.teatro-modal-contenido {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 4rem 1.5rem 1.5rem;
}

.teatro-modal-contenido figure {
    display: flex;
    justify-content: center;
    min-width: 0;
    max-height: 100%;
    margin: 0;
}

.teatro-modal-contenido img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
}

.teatro-modal-cerrar,
.teatro-modal-anterior,
.teatro-modal-siguiente {
    display: grid;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 0;
    border-radius: 50%;
    place-items: center;
}

.teatro-modal-cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
}

.teatro-modal-anterior,
.teatro-modal-siguiente {
    width: 3.5rem;
    height: 3.5rem;
}

body.teatro-galeria-abierta {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .teatro-ficha {
        position: static;
    }

    .teatro-galeria {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .teatro-galeria-principal {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 360px;
    }
}

@media (max-width: 575.98px) {
    .teatro-hero {
        min-height: 500px;
    }

    .teatro-hero-contenido {
        padding-bottom: 3rem;
    }

    .teatro-informacion,
    .teatro-galeria-seccion,
    .teatro-escenario,
    .teatro-programacion {
        padding: 3.5rem 0;
    }

    .teatro-galeria {
        display: flex;
        overflow-x: auto;
        gap: 0.75rem;
        scroll-snap-type: x mandatory;
    }

    .teatro-galeria-item,
    .teatro-galeria-principal {
        flex: 0 0 86%;
        height: 310px;
        scroll-snap-align: start;
    }

    .teatro-galeria-ampliar {
        opacity: 1;
    }

    .teatro-modal-contenido {
        grid-template-columns: 1fr;
        padding: 4rem 0.75rem 5rem;
    }

    .teatro-modal-anterior,
    .teatro-modal-siguiente {
        position: absolute;
        bottom: 1rem;
    }

    .teatro-modal-anterior {
        left: calc(50% - 4rem);
    }

    .teatro-modal-siguiente {
        right: calc(50% - 4rem);
    }
}