/* --- Madrid Page --- */

/* Capa oscura sobre la foto para que el texto blanco resalte más */
.madrid-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 5;
    pointer-events: none;
}

/* Ken Burns lento sobre la foto de fondo */
.madrid-hero-bg img {
    object-position: center center;
    transform: scale(1.12);
    animation: madridKenBurns 14s ease-out forwards;
}

@keyframes madridKenBurns {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

.madrid-hero-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 0 20px 50px;
}

.madrid-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.4vw, 2.3rem);
    line-height: 1.35;
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.85);
}

.madrid-hero-word {
    display: inline-block;
    opacity: 0;
    filter: blur(6px);
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    transition-delay: calc(var(--i, 0) * 0.035s + 0.1s);
}

.madrid-hero-content.active .madrid-hero-word {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.madrid-hero-underline {
    display: block;
    width: 0;
    height: 3px;
    margin-top: 20px;
    border-radius: 2px;
    background: var(--accent-color);
    transition: width 0.6s ease 1s;
}

.madrid-hero-content.active .madrid-hero-underline {
    width: 90px;
}

@media (max-width: 768px) {
    .madrid-hero-content {
        padding: 0 20px 35px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .madrid-hero-bg img {
        animation: none;
        transform: none;
    }

    .madrid-hero-word {
        transition-duration: 0.01ms;
        filter: none;
    }

    .madrid-hero-underline {
        transition-duration: 0.01ms;
    }
}

.madrid-intro {
    padding: 60px 0;
}

.madrid-intro .container {
    max-width: 860px;
    text-align: center;
}

.madrid-intro .section-title {
    margin-top: 0;
    margin-bottom: 25px;
}

.madrid-intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.madrid-intro-text p + p {
    margin-top: 20px;
}

.madrid-address {
    color: var(--text-color);
    font-size: 1.1rem;
}

.madrid-address i {
    color: var(--accent-color);
    margin-right: 8px;
}

.madrid-address a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(253, 136, 49, 0.4);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.madrid-address a:hover,
.madrid-address a:focus {
    color: #ff9f50;
    border-color: #ff9f50;
}

.madrid-quote {
    margin: 45px 0 0;
    padding: 0;
    border: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-color);
}

.madrid-quote-author {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    color: var(--accent-color);
}

/* --- Plays grid (mismo contenido que el popup de bienvenida) --- */
.madrid-plays-section {
    padding: 40px 0 120px;
}

.madrid-plays-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.madrid-play-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.madrid-play-card:hover {
    border-color: rgba(253, 136, 49, 0.35);
    background: rgba(253, 136, 49, 0.05);
    transform: translateY(-4px);
}

.madrid-play-poster {
    flex-shrink: 0;
    width: 90px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.madrid-play-poster img {
    display: block;
    width: 100%;
    height: auto;
}

.madrid-play-info {
    min-width: 0;
}

.madrid-play-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.3;
}

.madrid-play-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .madrid-intro {
        padding: 40px 0;
    }

    .madrid-plays-section {
        padding: 20px 0 80px;
    }

    .madrid-plays-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .madrid-play-card {
        padding: 16px;
        gap: 16px;
    }

    .madrid-play-poster {
        width: 70px;
    }
}
