/* ============================================================
   THE WALK - D-style.css (Exposición)
   ============================================================ */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#D-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* ---------- FONDO NEGRO ---------- */
#D-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 0;
}

/* ---------- SEMILLA ---------- */
#D-semilla {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

#D-semilla img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

/* ---------- CONTENIDO (imagen linkable) ---------- */
#D-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    max-width: 900px;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
}

#content-link:hover {
    transform: scale(1.02);
}

#content-image {
    width: 100%;
    height: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
}

#content-link:hover #content-image {
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.05);
}

/* ---------- BOTÓN SONIDO ---------- */
#sonido {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    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: 24px;
    cursor: pointer;
    transition: all 0.6s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sonido:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

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

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

/* ---------- NAVEGACIÓN ---------- */
#nav-bar {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-dot {
    color: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nav-dot:hover {
    color: rgba(255, 255, 255, 0.3);
}

.nav-dot.active {
    color: rgba(255, 255, 255, 0.5);
}

.nav-dot.visited {
    color: rgba(105, 170, 93, 0.3);
}

/* ---------- 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.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.2);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

#volver:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

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

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    #D-content {
        width: 90%;
        max-height: 60vh;
    }
    
    #content-image {
        max-height: 60vh;
    }
    
    #sonido {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 70px;
    }
    
    #volver {
        top: 20px;
        left: 20px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    #nav-bar {
        gap: 14px;
        bottom: 30px;
    }
    
    .nav-dot {
        font-size: 8px;
    }
    
    #D-semilla img {
        max-width: 90vw;
        max-height: 70vh;
    }
}
/* ---------- 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: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

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

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