/* Variables */
:root {
    --blood-red: #560000;
    --dark-red: #330000;
    --bone-white: #e8e8e0;
    --shadow-black: #000000;
    --mist-grey: rgba(80, 80, 80, 0.3);
    --shadow-red: rgba(139, 0, 0, 0.8);
}

/* Respeto por prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bg-image {
        animation: none !important;
        transform: none !important;
    }
    
    .glitch-effect {
        display: none !important;
    }
    
    .loading-screen {
        transition: none !important;
    }
    
    .section-title,
    .synopsis-content p,
    .gallery-grid,
    .gallery-item,
    .date-card,
    .contact-form,
    .contact-info {
        animation: none !important;
        transform: none !important;
        transition: opacity 0.01ms !important;
    }
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="36" viewBox="0 0 24 36"><path d="M12,0 L16,10 L12,8 L8,10 Z M11,8.5 L11,33 C11,34.6569 12.3431,36 14,36 C15.6569,36 17,34.6569 17,33 L17,15 L20,18 L23,15 L14.5,6.5 Z" fill="%23560000" stroke="%23e8e8e0" stroke-width="1"/></svg>') 12 0, auto;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--shadow-black);
    color: var(--bone-white);
    overflow-x: hidden;
    position: relative;
    font-size: 1.2rem;
    line-height: 1.7;
    width: 100%;
    max-width: 100vw;
}

/* Background image and animation */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/BGs/bg01.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    animation: backgroundMovement 20s infinite alternate;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -3;
    pointer-events: none;
}

@keyframes backgroundMovement {
    0% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(-15px) translateY(5px) scale(1.01);
    }
    50% {
        transform: translateX(10px) translateY(-5px) scale(1.005);
    }
    75% {
        transform: translateX(-5px) translateY(-10px) scale(1.01);
    }
    100% {
        transform: translateX(15px) translateY(10px) scale(1);
    }
}

/* Glitch effect for background */
.glitch-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/BGs/bg01.png');
    background-size: cover;
    background-position: center center;
    z-index: -3;
    opacity: 0;
    filter: brightness(1.5) contrast(1.5) hue-rotate(10deg);
}

.glitch-effect.active {
    animation: glitchAnimation 0.3s forwards;
}

@keyframes glitchAnimation {
    0% {
        opacity: 0;
        transform: translateX(-10px);
        clip-path: inset(10% 0 90% 0);
    }
    20% {
        opacity: 0.6;
        transform: translateX(10px);
        clip-path: inset(80% 0 5% 0);
    }
    40% {
        opacity: 0.4;
        transform: translateX(-5px);
        clip-path: inset(30% 0 58% 0);
    }
    60% {
        opacity: 0.8;
        transform: translateX(5px);
        clip-path: inset(10% 0 70% 0);
    }
    80% {
        opacity: 0.2;
        transform: translateX(-2px);
        clip-path: inset(50% 0 30% 0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

a, button, .clickable {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M18,0 L24,15 L18,12 L12,15 Z M16.5,13 L16.5,33 C16.5,34.6569 17.8431,36 19.5,36 C21.1569,36 22.5,34.6569 22.5,33 L22.5,22 L25.5,25 L30,20 L19.5,9.5 Z" fill="%23800000" stroke="%23e8e8e0" stroke-width="1"/></svg>') 18 0, pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 100;
    isolation: isolate;
    background: transparent;
}

/* Correcci��n para la X visible en el men�� */
.mobile-close {\n    display: none;\n}\n\n.nav-menu.active .mobile-close {\n    display: flex;\n}

.mobile-close {\n    display: none;\n}\n\n.nav-menu.active .mobile-close {\n    display: flex;\n}

/* Header y navegaci��n */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000; /* Aumentamos para asegurar que est�� por encima de todo */
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Corregir el menú móvil correctamente */

header.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(139, 0, 0, 0.7));
    transition: all 0.3s ease;
}

header.scrolled .logo {
    height: 60px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: 'Playfair Display', serif;
    color: var(--bone-white);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--blood-red);
    transition: height 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--bone-white);
    border-color: var(--blood-red);
}

.nav-link:hover::before {
    height: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bone-white);
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-toggle:hover {
    background-color: rgba(139, 0, 0, 0.3);
    color: var(--blood-red);
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    z-index: 1; /* Asegura que est�� por encima del fondo */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.5s ease forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--bone-white);
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 10px var(--shadow-red);
    animation: textPulse 4s infinite alternate;
}

@keyframes textPulse {
    0% {
        text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 10px rgba(139, 0, 0, 0.8);
    }
    100% {
        text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(139, 0, 0, 1);
    }
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--bone-white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--bone-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Secciones */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1; /* Asegura que las secciones est��n por encima de los fondos */
}

section:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.5);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--bone-white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
    opacity: 0;
    transform: translateY(80px) scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.section-title.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: textPulseIntense 3s infinite alternate;
}

@keyframes textPulseIntense {
    0% {
        text-shadow: 0 0 15px rgba(139, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.7);
    }
    50% {
        text-shadow: 0 0 20px rgba(139, 0, 0, 1), 0 0 30px rgba(139, 0, 0, 0.5), 0 0 40px rgba(139, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(139, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.7);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--blood-red);
}

/* Sinopsis */
.synopsis-content {
    max-width: 800px;
    margin: 0 auto;
}

.synopsis-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.37, 0, 0.63, 1);
}

.synopsis-content p.appear {
    opacity: 1;
    transform: translateX(0);
}

.synopsis-content p strong {
    color: var(--blood-red);
    font-size: 1.2em;
}

.prologo-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--blood-red);
    margin: 40px 0 20px;
    opacity: 0;
    transform: translateY(50px) rotateX(45deg);
    transition: opacity 1s ease, transform 1s ease;
}

.prologo-title.appear {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Galer��a */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    position: relative;
    z-index: 10; /* Asegura que la galer��a est�� por encima de cualquier efecto de desenfoque */
}

.gallery-grid.appear {
    opacity: 1;
    transform: scale(1);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    aspect-ratio: 16/9;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 11; /* Asegura que cada item de la galer��a est�� claramente visible */
}

.gallery-grid.appear .gallery-item {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid.appear .gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-grid.appear .gallery-item:nth-child(2) { transition-delay: 0.2s; }
.gallery-grid.appear .gallery-item:nth-child(3) { transition-delay: 0.3s; }
.gallery-grid.appear .gallery-item:nth-child(4) { transition-delay: 0.4s; }
.gallery-grid.appear .gallery-item:nth-child(5) { transition-delay: 0.5s; }
.gallery-grid.appear .gallery-item:nth-child(6) { transition-delay: 0.6s; }
.gallery-grid.appear .gallery-item:nth-child(7) { transition-delay: 0.7s; }
.gallery-grid.appear .gallery-item:nth-child(8) { transition-delay: 0.8s; }
.gallery-grid.appear .gallery-item:nth-child(9) { transition-delay: 0.9s; }
.gallery-grid.appear .gallery-item:nth-child(10) { transition-delay: 1s; }
.gallery-grid.appear .gallery-item:nth-child(11) { transition-delay: 1.1s; }
.gallery-grid.appear .gallery-item:nth-child(12) { transition-delay: 1.2s; }

.gallery-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.5);
    z-index: 12; /* Aumentamos el z-index en hover para que se muestre por encima de los dem��s */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(30%) brightness(0.8);
}

.gallery-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.full-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.full-gallery.active {
    opacity: 1;
    pointer-events: all;
}

.full-gallery-content {
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.full-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--bone-white);
    background: none;
    border: none;
    z-index: 2001;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 2001;
}

.gallery-nav button {
    font-size: 3rem;
    color: var(--bone-white);
    background: none;
    border: none;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.gallery-nav button:hover {
    color: var(--blood-red);
    transform: scale(1.2);
}

/* Gira */
.tour-dates {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Asegura que las fechas est��n por encima de cualquier efecto */
}

.date-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    opacity: 0;
    transform: perspective(800px) rotateY(-90deg);
    transform-origin: left center;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.date-card.appear {
    opacity: 1;
    transform: perspective(800px) rotateY(0deg);
    animation: cardPulse 3s infinite alternate ease-in-out;
}

@keyframes cardPulse {
    0% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(139, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 10px 25px rgba(139, 0, 0, 0.5);
    }
}

.date-card:nth-child(1) { transition-delay: 0.1s; }
.date-card:nth-child(2) { transition-delay: 0.3s; }
.date-card:nth-child(3) { transition-delay: 0.5s; }
.date-card:nth-child(4) { transition-delay: 0.7s; }
.date-card:nth-child(5) { transition-delay: 0.9s; }

.date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--blood-red);
}

.date-card-content {
    display: flex;
    padding: 20px;
    align-items: center;
}

.date-info {
    width: 100px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.date-day {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blood-red);
    line-height: 1;
}

.date-month {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
}

.date-details {
    flex-grow: 1;
    padding: 0 20px;
}

.date-location {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.date-venue {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.date-time {
    width: 100px;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Asegura que el contenido est�� por encima de cualquier efecto */
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    opacity: 0;
    transform: none;
    transition: opacity 1.2s ease;
}

.contact-info.appear {
    opacity: 1;
    transform: none;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--blood-red);
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--blood-red);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bone-white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background-color: var(--blood-red);
    transform: translateY(-5px);
    border-color: var(--blood-red);
}

.contact-form {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: none;
    transition: opacity 1.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-form.appear {
    opacity: 1;
    transform: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--bone-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--blood-red);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--bone-white);
    border: 2px solid var(--blood-red);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--blood-red);
    transition: height 0.3s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    height: 100%;
}

/* Footer */
footer {
    padding: 40px 0 20px;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
    z-index: 10; /* Asegura que el footer est�� por encima de los efectos */
}

.webzi-logo {
    height: 20px;
    margin-left: 5px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

/* Elemento de audio y controles */
.audio-control {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-toggle {
    background: none;
    border: none;
    color: var(--bone-white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    color: var(--blood-red);
    transform: scale(1.1);
}

.audio-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-control:hover .audio-label {
    opacity: 1;
}

/* Mensaje de carga inicial */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--shadow-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 200px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(139, 0, 0, 0.7));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(139, 0, 0, 0.9));
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(139, 0, 0, 0.7));
        transform: scale(1);
    }
}

.loading-bar {
    width: 200px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background-color: var(--blood-red);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--blood-red);
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
    color: var(--bone-white);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--blood-red);
    color: var(--bone-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Estilos para validación de formulario */
.form-group {
    position: relative;
}

.error-message {
    display: block;
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-control.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.form-control.valid {
    border-color: #00bb44;
    box-shadow: 0 0 0 2px rgba(0, 187, 68, 0.2);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.char-count.warning {
    color: #ff8800;
}

.char-count.error {
    color: #ff4444;
}

.btn-loader {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: rgba(0, 187, 68, 0.1);
    border: 1px solid #00bb44;
    color: #00bb44;
}

.form-message.error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

/* Responsive */
/* Desktop grande */
@media (max-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

/* Tablet landscape y desktop pequeño */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        margin-top: 40px;
        margin-left: 0;
        margin-right: 0;
        transform: none !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tour-dates {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Asegurar que contenedores no limiten el menú móvil */
    header, .container, .header-container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        contain: none !important;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1000000; /* Asegurar que esté por encima del menú móvil */
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: auto !important;
        right: -100% !important;
        bottom: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: none !important;
        background-color: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 80px 20px 20px !important;
        margin: 0 !important;
        transition: right 0.3s ease !important;
        z-index: 999999 !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5) !important;
        overflow-y: auto !important;
        transform: none !important;
        contain: none !important;
        isolation: auto !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important; /* Usar dynamic viewport height */
    }
    
    .nav-link {
        color: var(--bone-white);
        text-decoration: none;
        font-size: 1.2rem;
        font-family: 'Playfair Display', serif;
        margin: 8px 0;
        padding: 12px 15px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(139, 0, 0, 0.3);
    }
    
    .mobile-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        color: var(--bone-white);
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .mobile-close:hover {
        background-color: rgba(139, 0, 0, 0.3);
        transform: rotate(90deg);
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .date-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .date-info {
        width: 100%;
        text-align: left;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .date-time {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tour-dates {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Móviles pequeños */
/* Correcciones adicionales para overflow horizontal */
* {
    max-width: 100%;
}

section, .container, .contact-container, .gallery-grid {
    overflow-x: hidden;
}

@media (max-width: 576px) {
    .logo {
        height: 60px;
    }
    
    header.scrolled .logo {
        height: 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Móviles extra pequeños */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        width: 95%;
        padding: 80px 20px 50px;
    }
    
    .contact-container {
        padding: 0 10px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .contact-form {
        padding: 20px 15px;
        margin: 20px 0 0 0;
        width: 100%;
        box-sizing: border-box;
        transform: none !important;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
}

/* Estilos para las pestañas de galería */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-tab {
    background: transparent;
    border: 2px solid var(--bone-white);
    color: var(--bone-white);
    padding: 15px 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--blood-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.gallery-tab:hover::before,
.gallery-tab.active::before {
    left: 0;
}

.gallery-tab.active {
    border-color: var(--blood-red);
    color: var(--bone-white);
}

.gallery-content {
    display: none;
}

.gallery-content.active {
    display: block;
}

/* Estilos para la sección de prensa */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.press-item {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.press-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.5);
}

.press-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.press-item h4 {
    color: var(--blood-red);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 15px;
}

.press-item p {
    color: var(--bone-white);
    margin: 0 15px 15px;
    font-size: 0.9rem;
}

/* Estilos para la sección de videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(139, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.5);
}

.video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    cursor: pointer;
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--blood-red);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.video-link:hover .video-placeholder i {
    transform: scale(1.2);
}

.video-placeholder p {
    color: var(--bone-white);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

/* Responsive para las nuevas secciones */
@media (max-width: 768px) {
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .gallery-tab {
        width: 200px;
        text-align: center;
    }
    
    .press-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para la sección de gira simplificada */
.tour-simple {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tour-simple p {
    font-size: 1.22rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--bone-white);
}

/* Estilos para las fechas dinámicas */
.tour-dates {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-date-item {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(139, 0, 0, 0.4);
    border-radius: 15px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100px;
}

.tour-date-item:hover {
    background: rgba(139, 0, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
    border-color: var(--blood-red);
}

.date-time-block {
    background: linear-gradient(135deg, var(--blood-red), #a00);
    color: white;
    padding: 20px 25px;
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.date-time-block .date {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.date-time-block .month-year {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.date-time-block .time {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
}

.event-info {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-info .city {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--bone-white);
    margin: 0 0 8px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.event-info .venue {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}

.social-follow {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.social-follow h3 {
    color: var(--blood-red) !important;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 100;
    isolation: isolate;
}

.social-follow .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-follow .social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.5);
    color: var(--bone-white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-follow .social-links a:hover {
    background: var(--blood-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.4);
}

/* Corrección para escritorio - eliminar animaciones problemáticas */
@media (min-width: 993px) {
    .contact-form, .contact-info {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Responsive para la sección de gira */
@media (max-width: 768px) {
    .social-follow .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-follow .social-links a {
        width: 200px;
        justify-content: center;
    }
    
    .tour-date-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .date-time-block {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    .date-time-block .date {
        font-size: 2rem;
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .date-time-block .month-year {
        margin-bottom: 0;
        font-size: 1rem;
    }
    
    .event-info {
        padding: 15px 20px;
        text-align: center;
    }
    
    .event-info .city {
        font-size: 1.3rem;
    }
}

/* SOLUCIÓN DEFINITIVA PARA CAPAS DIFUSAS */
section {
    position: relative;
    z-index: 50;
    isolation: isolate;
    background: transparent;
}

/* Asegurar que todo el texto sea completamente blanco y nítido */
.section-title, p, h1, h2, h3, h4, h5, h6, .synopsis-content, .contact-info, .gallery-content {
    color: #ffffff !important;
    isolation: isolate !important;
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    position: relative !important;
    z-index: 100 !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Forzar que el contenido de sinopsis sea visible y más legible */
.synopsis-content p {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
    margin-bottom: 1.3rem !important;
}

/* Mejorar legibilidad de todos los párrafos */
p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

/* Asegurar galería nítida */
.gallery-item, .gallery-grid {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 75 !important;
}

/* Contacto nítido y más legible */
.contact-container, .contact-info, .contact-form {
    filter: none !important;
    opacity: 1 !important;
    color: #ffffff !important;
}

.contact-info p {
    font-size: 1.2rem !important;
    line-height: 1.7 !important;
}

.gallery-item {
    z-index: 11;
    isolation: isolate;
}

.gallery-item img {
    filter: none; /* Remover cualquier filtro en estado normal */
}

.gallery-item:hover img {
    filter: saturate(1.2) contrast(1.1) brightness(1.05); /* Filtro sutil en hover */
}

/* Capas para los efectos de terror */
.effect-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Estilos para la vista de galer��a en pantalla completa */
.full-gallery img {
    filter: none !important; /* Asegurar que la imagen a pantalla completa sea nítida */
}

/* Estilos para mensajes de alerta del formulario */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.alert-success {
    background-color: rgba(46, 125, 50, 0.9);
    color: #ffffff;
    border: 2px solid #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.alert-error {
    background-color: rgba(139, 0, 0, 0.9);
    color: #ffffff;
    border: 2px solid var(--blood-red);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}