:root {
    --bg-crema: #f7f5ed;          
    --casino-oscuro: #483415;     
    --casino-dorado: #7D5F23;     
    --casino-plata: #C2C4B5;      
    --fuente-casino: 'Anavio Small Capi', Georgia, serif;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-crema);
    margin: 0;
    padding: 0;
    overflow: hidden; 
    color: var(--casino-oscuro);
}

h1, h2, h3 {
    font-family: var(--fuente-casino);
    letter-spacing: 1.5px;
}

/* Envoltura del Escenario */
.slider-wrapper {
    display: flex;
    flex-direction: row;
    width: 700vw; 
    height: 100vh;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.slide-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Hero */
.logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--casino-dorado);
}
.hero-slide h1 { font-size: 3.5rem; }
.scroll { margin-top: 25px; color: var(--casino-dorado); cursor: pointer; }

/* Tarjetas Estilo Showcase */
.card-service {
    width: 650px; 
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(72, 52, 21, 0.03);
    border: 1px solid rgba(72, 52, 21, 0.05);
    transform: scale(0.92);
    opacity: 0.2;
    transition: all 1s ease;
    perspective: 1000px;
}

.card-service-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.card-service-img-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out;
}

.carrusel-extra-img { opacity: 0; }
.card-body { padding: 35px; background: white; }
.card-body h3 { color: #8c867a; font-size: 1.8rem; margin-bottom: 12px; }
.card-body p { color: #a19b8f; font-size: 1rem; line-height: 1.6; }

.btn-casino {
    background-color: var(--casino-dorado); color: white;
    font-family: var(--fuente-casino); border: none; padding: 11px 28px; border-radius: 6px;
    text-transform: uppercase; font-size: 0.85rem;
}

/* ESTADO ENFOCADO */
.slide-section.active .card-service {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 30px 60px rgba(72, 52, 21, 0.12);
}
.slide-section.active .card-body h3 { color: var(--casino-dorado); }
.slide-section.active .card-body p { color: var(--casino-oscuro); }
.slide-section.active .card-service-img-wrapper { transform: rotateX(4deg) scale(1.02); }

/* BOTÓN MAESTRO DE RECORRIDO */
.btn-tour-master {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--casino-dorado);
    color: white;
    border: none;
    padding: 14px 28px;
    font-family: var(--fuente-casino);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(125, 95, 35, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-tour-master:hover {
    transform: scale(1.05);
    background-color: var(--casino-oscuro);
}
.btn-tour-master.tour-running {
    background-color: #6c757d;
    box-shadow: none;
}

/* NAV ARROWS (MANUALES) */
.nav-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 55px; height: 55px; border-radius: 50%;
    background: white; border: 1px solid rgba(125,95,35,0.2);
    color: var(--casino-dorado); z-index: 100; display: none; /* Controladas por JS */
    justify-content: center; align-items: center; font-size: 1.4rem;
    cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s;
}
.nav-arrow:hover { background: var(--casino-dorado); color: white; }
.left-arrow { left: 40px; }
.right-arrow { right: 40px; }

/* Mute Button */
.mute-bg-btn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    border-radius: 50%; background: white; z-index: 998; display: none;
    justify-content: center; align-items: center; color: var(--casino-dorado);
    cursor: pointer; border: 1px solid rgba(125,95,35,0.2);
}

/* Responsive */
/* ==========================================================================
   Responsividad Móvil Corregida (Mantiene el Slider Horizontal)
   ========================================================================== */
/* ==========================================================================
   Responsividad Móvil Corregida (Fijación de Botones y Layout Horizontal)
   ========================================================================== */
@media(max-width: 768px) {
    /* Forzar el bloqueo de scroll vertical en el body */
    html, body { 
        overflow: hidden !important; 
        height: 100vh !important;
        position: relative;
    }

    /* Reducir dimensiones en el Hero para que todo quepa en pantallas cortas */
    .hero-slide h1 { 
        font-size: 2rem; 
        text-align: center;
    }
    .hero-slide p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .logo {
        width: 140px;
        height: 140px;
    }

    /* Ajustar el tamaño de la tarjeta para que quepa perfectamente en el viewport móvil */
    .card-service { 
        width: 80vw !important; 
        max-width: 310px !important;
        opacity: 0.15; 
        transform: scale(0.85);
        margin: 0 20px !important;
    }

    .card-service-img-wrapper { 
        height: 180px; /* Reducido para dar más espacio al texto inferior */
    }

    .card-body {
        padding: 20px !important;
    }

    .card-body h3 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .card-body p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* ELIMINAR EL CORTE ABAJO: Forzar que el botón de recorrido se quede ARRIBA en móviles */
    .btn-tour-master { 
        position: fixed !important;
        top: 20px !important; /* Lo movemos arriba para que nunca se pierda abajo */
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        width: 75% !important;
        max-width: 280px;
        text-align: center;
        display: flex !important;
        justify-content: center;
        align-items: center;
        z-index: 9999 !important; /* Forzar prioridad absoluta sobre Bootstrap */
    }
    
    .btn-tour-master:hover {
        transform: translateX(-50%) scale(1.02) !important;
    }

    /* CORRECCIÓN DE FLECHAS: Forzar alineación vertical exacta en el centro de la pantalla */
    .nav-arrow {
        position: fixed !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(125, 95, 35, 0.3) !important;
        z-index: 9998 !important; /* Justo debajo del botón maestro */
        display: flex !important; /* Asegurar que no se queden en 'none' */
        justify-content: center;
        align-items: center;
    }
    
    .left-arrow { 
        left: 8px !important; 
    }
    
    .right-arrow { 
        right: 8px !important; 
    }

    /* Ajustar el botón flotante de silencio en la esquina superior */
    .mute-bg-btn {
        bottom: auto !important;
        top: 75px !important; /* Abajo del botón de recorrido */
        right: 15px !important;
        width: 38px !important;
        height: 38px !important;
        position: fixed !important;
        z-index: 9999 !important;
    }
}