:root {
    --primary-color: #E50914;
    --primary-hover: #ff333e; /* Un rojo más brillante para el pulso */
    --dark-bg: #080808;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.15);
    --text-light: #f5f5f5;
    --text-muted: #999;
}

html {
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

#animated-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZHRoPSI1IiBmaWxsPSJ0cmFuc3BhcmVudCI+PC9yZWN0Pgo8cGF0aCBkPSJNMCA1TDQgMkwzIDRMNCA1TDIgNUwwIDNaTTEgMEw1IDJMNCA0TDAgMloiIGZpbGwtb3BhY2l0eT0iMC4wMiIgZmlsbD0iI2ZmZiI+PC9wYXRoPgo8L3N2Zz4=');
}

#preloader {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease, transform 1s ease;
    transform: scale(1);
}
#preloader .spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

#preloader .spinner i {
    font-size: 48px;
    color: var(--primary-color);
    animation: hourglass-spin 1.6s linear infinite;
    transform-origin: center;
}
@keyframes hourglass-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

p { color: var(--text-muted); font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif; text-transform: uppercase; color: var(--text-light); letter-spacing: 1.5px; font-weight: 800;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    line-height: 1.3;
}
.section-title i {
    color: var(--primary-color); margin-right: 0.5rem; animation: icon-flicker 4s infinite linear;
}
@keyframes icon-flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.navbar {
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-nav .nav-link { color: var(--text-light) !important; font-weight: 600; transition: color 0.3s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary-color) !important; }

.btn-jder {
    background-image: linear-gradient(to right, var(--primary-color) 0%, #B80710 100%);
    color: var(--text-light) !important; font-weight: bold; text-transform: uppercase; border-radius: 8px; border: none; padding: 12px 28px; transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}
.btn-jder:hover {
    transform: translateY(-3px); box-shadow: 0 0 25px rgba(229, 9, 20, 0.7);
}

.section-styled-bg {
    background: url('https://juegosescape.com.ar/ImagenesJDER/fondolab.webp') center/cover; background-attachment: fixed; position: relative; padding: 100px 0;
}
.section-styled-bg::before {
    content: ""; position: absolute; inset: 0; background: rgba(8, 8, 8, 0.85); z-index: 0;
}
.section-styled-bg > .container { position: relative; z-index: 1; }
@media (max-width: 767px) { .section-styled-bg { background-attachment: scroll; } }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
}

/* --- EFECTO NEÓN CORREGIDO Y AJUSTADO --- */
.hero-title {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    line-height: 1.4; /* Espacio extra para evitar superposición */
    color: transparent; /* Hacemos el texto hueco */
    -webkit-text-stroke: 1.5px var(--text-light); /* Creamos el borde blanco */
    animation: neon-pulse 2s ease-in-out infinite; /* Animación más rápida */
}

.hero-title .city {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    display: block;
}

/* === AÑADIDO PARA AJUSTAR TÍTULO EN MÓVILES === */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem; /* Reducido para evitar el salto de línea en "experiencia única" */
    -webkit-text-stroke-width: 1px; /* Borde más fino para texto más pequeño */
  }

  .hero-title .city {
    font-size: 2.4rem; /* Reducido para que "Resistencia" no se corte */
  }
}
/* === FIN DEL AJUSTE === */

@keyframes neon-pulse {
    0%, 100% {
        /* Brillo base (menos intenso) */
        text-shadow:
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color);
    }
    50% {
        /* Brillo máximo (más intenso y extendido) */
        text-shadow:
            0 0 10px var(--primary-hover),
            0 0 20px var(--primary-hover),
            0 0 30px var(--primary-hover);
    }
}
/* --- FIN DEL EFECTO --- */

.hero-floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.hero-floating-icons .floating-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.4;
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.hero-floating-icons .float-1 { top: 20%; left: 8%; animation-name: float1; }
.hero-floating-icons .float-2 { top: 35%; right: 12%; animation-name: float2; }
.hero-floating-icons .float-3 { bottom: 25%; left: 30%; animation-name: float3; }
.hero-floating-icons .float-4 { bottom: 20%; right: 28%; animation-name: float4; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(30px) rotate(-15deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(25px) rotate(20deg); }
}
@keyframes float4 {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(20px,20px) rotate(20deg); }
}

.hero-option-card {
    background-color: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 25px; transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--card-border); height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.hero-option-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

.scroll-indicator .bi-chevron-double-down {
    font-size: 2.5rem; color: var(--text-light); text-shadow: 0 0 8px var(--text-light); animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

.icon-medium { font-size: 3.5rem; margin-bottom: 15px; color: var(--primary-color); }
.small-text { font-size: 1.1rem; text-transform: uppercase; }

.sala-card {
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.5), rgba(20, 20, 20, 0.5));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.sala-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 20px var(--primary-color);
    border-color: var(--primary-color);
}

.sala-card-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    height: auto;
}

.sala-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.sala-card:hover .sala-card-img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.sala-card-genre-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.sala-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sala-card-title {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.sala-card-text {
    flex-grow: 1;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sala-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.stat-bar {
    display: flex;
    gap: 4px;
}

.stat-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.stat-dot.filled {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.sala-card-stats .stat-item:nth-child(2) .stat-dot {
    border-radius: 50%;
}
.sala-card-stats .stat-item:nth-child(2) .stat-dot.filled {
    background-color: var(--primary-hover);
    box-shadow: 0 0 8px var(--primary-hover);
}

.sala-card-proximamente {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 450px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.08) 10px,
        rgba(255,255,255,0.08) 20px
    );
}
.sala-card-proximamente i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse-proximamente 2s infinite ease-in-out;
}
@keyframes pulse-proximamente {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}
.sala-card-proximamente p {
    color: var(--text-muted);
}

#precios .price-tag {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 0 0 20px var(--primary-color);
}

#precios .payment-box {
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 12px;
}
#precios .payment-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}
#precios .payment-icons i {
    font-size: 2.5rem;
    color: var(--text-muted);
}
#precios .payment-icons img {
    height: 35px;
    opacity: 1;
    transition: all 0.3s ease;
    background-color: #fff;
    padding: 2px;
    border-radius: 4px;
}
#precios .payment-icons img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

#precios .installments-highlight {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 1.5rem;
}
#precios .installments-highlight i {
    margin-right: 0.5rem;
}

#aclaraciones .info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
#aclaraciones .info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
#aclaraciones .info-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
#aclaraciones .info-card-title {
    color: var(--text-light);
    margin-bottom: 1rem;
}

#extras .info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
#extras .info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
#extras .info-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
#extras .info-card-title {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.faq-item { border: 1px solid var(--card-border); border-radius: 8px; margin-bottom: 1rem; overflow: hidden; background-color: rgba(0,0,0,0.2); }
.faq-item .accordion-button {
    background: rgba(30, 30, 30, 0.5); color: var(--text-light); font-weight: bold; border-bottom: none;
}
.faq-item .accordion-button:focus { box-shadow: 0 0 0 0.25rem rgba(229, 9, 20, 0.25); }
.faq-item .accordion-button:not(.collapsed) { background: var(--primary-color); color: var(--text-light); }
.faq-item .accordion-button::after {
    font-family: 'bootstrap-icons'; content: "\F282"; background: none; color: var(--text-light); font-size: 1.2rem; transform: none; transition: transform 0.3s ease-in-out, color 0.3s ease;
}
.faq-item .accordion-button:not(.collapsed)::after { content: "\F273"; transform: rotate(-180deg); color: var(--text-light); }
.faq-item .accordion-body { background: #181818; color: var(--text-muted); }
.faq-section-title { color: var(--primary-color); font-weight: 700; }

.social-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.8rem; color: var(--text-light); border: 2px solid var(--text-muted); transition: all 0.3s ease;
}
.social-icon:hover { color: var(--primary-color); border-color: var(--primary-color); transform: scale(1.1); text-decoration: none; }

.whatsapp-float, .reserve-float {
    position: fixed; right: 20px; width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 1000;
    text-decoration: none; box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease; animation: float-pulse 2s infinite;
}
.whatsapp-float { bottom: 20px; background: #25D366; color: #fff; }
.reserve-float { bottom: 90px; background: var(--primary-color); color: #fff; }
.whatsapp-float:hover, .reserve-float:hover { transform: scale(1.1); animation: none; }

@keyframes float-pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}
.whatsapp-float { animation-name: whatsapp-pulse; }
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

footer { background: #000; color: var(--text-muted); padding: 2.5rem 0; border-top: 1px solid var(--card-border); }
footer a { color: var(--primary-color); text-decoration: none; }
footer a:hover { color: var(--primary-hover); text-decoration: underline; }

.section-dark { background-color: rgba(0,0,0,0.2); }
.birthday-section {
    background: linear-gradient(180deg, rgba(20,20,20,0.6), rgba(8,8,8,0.95));
    padding-top: 60px;
    padding-bottom: 60px;
}
.feature-card { background: var(--dark-bg); padding: 2rem; height: 100%; text-align: center; border: 1px solid var(--card-border); border-radius: 8px; transition: all 0.3s ease; }
.birthday-section .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.3s, box-shadow 0.3s;
}
.birthday-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}
.birthday-section .feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-box {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem 2.5rem;
}

.reviews-slider .swiper-slide,
.players-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: auto;
}
.reviews-slider .swiper-slide img,
.players-slider .swiper-slide img {
    width: 280px;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--card-border);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.reviews-slider .swiper-slide img:hover,
.players-slider .swiper-slide img:hover {
    transform: scale(1.05);
}

#image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#image-lightbox.show {
    opacity: 1;
    visibility: visible;
}
#image-lightbox .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
#image-lightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
#image-lightbox .close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

.language-selector-container {
    padding-top: 1rem;
    padding-bottom: 2rem;
}
.language-switcher-flags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.language-switcher-flags img {
    width: 32px;
    height: 21px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.6;
    border: 2px solid transparent;
}
.language-switcher-flags img.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary-color);
}
.lang-divider {
    color: var(--text-muted);
    font-weight: bold;
}
.lang-prompt {
    font-size: 0.8rem;
    color: #bbbbbb;
    margin-bottom: 8px;
}

#secondary-cta {
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.btn-cta {
    border: 2px solid var(--primary-color);
    color: var(--text-light) !important;
    background-color: transparent;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

/* Estilos para el Video Overlay */
#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    transition: opacity 0.5s ease-out;
    visibility: visible;
}

#video-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Evita interacciones cuando está oculto */
}

#intro-video {
    /* Ajusta el video para que cubra la altura sin deformarse */
    height: 100%;
    width: auto;
    max-width: none;
}

/* Si la pantalla es más ancha que el video, ajusta para cubrir el ancho */
@media (min-aspect-ratio: 16/9) {
    #intro-video {
        width: 100%;
        height: auto;
    }
}

#skip-video-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Oculto por defecto */
    z-index: 10002;
    line-height: 40px; /* Centra la 'X' verticalmente */
    text-align: center;
}
