/* ============================================================
   THE WALK - B-style.css (Puerta de Elección)
   Basado en Mapa.css
   ============================================================ */

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #dadada10;
    font-family:system-ui, -apple-system, Ubuntu, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,  Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}



/* ---------- CONTENEDOR ---------- */
#B-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #dadada1a;
}


/* ---------- FONDO ---------- */
#B-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#B-background img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.6;
}

#B-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.075);
    pointer-events: none;
}

/* ---------- BOTÓN VOLVER ---------- */
#volver {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

#volver:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

/* ---------- BOTÓN SONIDO (centrado) ---------- */
#sonido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    font-size: 48px;
    cursor: pointer;
    transition: all 0.6s ease;
    backdrop-filter: blur(4px);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sonido:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%) scale(1.05);
}

#sonido.active {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(105, 170, 93, 0.3);
    background: rgba(105, 170, 93, 0.1);
}

#sonido.silence {
    color: rgba(255, 255, 255, 0.2);
}

/* ---------- CONTADOR DE ZONAS ---------- */
#zona-counter {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 300;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- ESTADO DE SONIDO ---------- */
#sound-status {
    position: absolute;
    bottom: 100px;
    right: 40px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.15);
    font-size: 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- ZONAS GRID ---------- */
#zonas-grid {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-end;
}

.zona-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.4;
    animation: cardAppear 0.8s ease forwards;
    padding: 12px 8px;
    border-radius: 8px;
    min-width: 60px;
}

@keyframes cardAppear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 0.4; transform: translateY(0); }
}

.zona-card:hover {
    opacity: 0.8 !important;
    transform: translateY(-4px) scale(1.05);
}

.zona-card.visited {
    opacity: 0.7;
}

.zona-card.visited .zona-status {
    color: #69aa5d;
}

.zona-card .zona-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.zona-card:hover .zona-icon {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.zona-card.visited .zona-icon {
    border-color: rgba(105, 170, 93, 0.3);
    background: rgba(105, 170, 93, 0.1);
}

.zona-label {
    color: rgba(255, 255, 255, 0.2);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.zona-status {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    transition: color 0.3s ease;
}

/* ---------- CONTROLES ---------- */
#controls-bar {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 24px;
    align-items: center;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.25);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.control-btn.inactive {
    opacity: 0.3;
}

#reset-btn:hover {
    transform: rotate(180deg);
}

/* ---------- RESPIRACIÓN ---------- */
.breath {
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0% { opacity: 0.6; transform: scale(1); }
    25% { opacity: 0.9; transform: scale(1.02); }
    50% { opacity: 0.6; transform: scale(1); }
    75% { opacity: 0.9; transform: scale(1.02); }
    100% { opacity: 0.6; transform: scale(1); }
}

#B-overlay.breath {
    animation: overlayBreathe 8s ease-in-out infinite;
}

@keyframes overlayBreathe {
    0% { opacity: 0.15; }
    25% { opacity: 0.25; }
    50% { opacity: 0.15; }
    75% { opacity: 0.25; }
    100% { opacity: 0.15; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    #zonas-grid {
        gap: 20px;
        bottom: 140px;
    }
    
    .zona-card .zona-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .zona-label {
        font-size: 7px;
        letter-spacing: 1px;
    }
    
    #sonido {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    #volver {
        top: 20px;
        left: 20px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    #controls-bar {
        gap: 16px;
        bottom: 30px;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    #zona-counter {
        bottom: 80px;
        font-size: 10px;
    }
    
    #sound-status {
        bottom: 80px;
        right: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #zonas-grid {
        gap: 12px;
        bottom: 120px;
    }
    
    .zona-card .zona-icon {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .zona-label {
        font-size: 6px;
        letter-spacing: 0.5px;
    }
    
    #sonido {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}
/* ---------- MODO DE SONIDO ---------- */
#sound-mode-container {
    position: absolute;
    bottom: 100px;
    right: 40px;
    z-index: 10;
}

#sound-mode {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sound-mode:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

#sound-mode.active {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(105, 170, 93, 0.2);
    background: rgba(105, 170, 93, 0.05);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    #sound-mode-container {
        bottom: 80px;
        right: 20px;
    }
    
    #sound-mode {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
/* ---------- MODO DE SONIDO ---------- */
#sound-mode-container {
    position: absolute;
    z-index: 10;
}

/* Posiciones específicas por página */
#umbral-container #sound-mode-container {
    bottom: 40px;
    right: 40px;
}

#B-container #sound-mode-container {
    bottom: 100px;
    right: 40px;
}

#C-container #sound-mode-container {
    top: 30px;
    right: 30px;
}

#D-container #sound-mode-container {
    top: 30px;
    right: 30px;
}

#E-container #sound-mode-container {
    top: 30px;
    right: 30px;
}

#sound-mode {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#sound-mode:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

#sound-mode.active {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(105, 170, 93, 0.2);
    background: rgba(105, 170, 93, 0.05);
}

@media (max-width: 768px) {
    #sound-mode {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    #umbral-container #sound-mode-container {
        bottom: 30px;
        right: 30px;
    }
    
    #B-container #sound-mode-container {
        bottom: 80px;
        right: 20px;
    }
    
    #C-container #sound-mode-container,
    #D-container #sound-mode-container,
    #E-container #sound-mode-container {
        top: 20px;
        right: 20px;
    }
}
/* ---------- BOTÓN DE SONIDO (estándar en todas las páginas) ---------- */
#sonido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    font-size: 48px;
    cursor: pointer;
    transition: all 0.6s ease;
    backdrop-filter: blur(4px);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

#sonido:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%) scale(1.05);
}

#sonido.active {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(105, 170, 93, 0.3);
    background: rgba(105, 170, 93, 0.1);
}

#sonido.silence {
    color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    #sonido {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    #sonido {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* No permite interacción con el vídeo */
}

#image-link {
    position: fixed;
    top: 0;
    left: 70px;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
    text-decoration: none;
    cursor: pointer;
    opacity: 1.0;
}

#bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* o contain, según el nodo */
    opacity: 1.0; /* valor ajustable por nodo */
    pointer-events: none; /* el clic lo captura el <a> */
}

#sonido {
    z-index: 10; /* siempre por encima de todo */
}