/* ============================================================
   THE WALK - C-style.css (Zonas de Exposición) - REFORMADO
   ============================================================ */

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

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

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

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

#C-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.5;
}

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

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

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

/* ---------- BOTÓN DE SONIDO (estándar) ---------- */
#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);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.3);
    font-size: 48px;
    cursor: pointer;
    transition: all 0.6s ease;
    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;
    }
}

/* ---------- GRID DE ZONAS (enlaces a D) ---------- */
#zonas-grid {
    position: absolute;
    top: 30%;                     /* SUBIDO A 30% */
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    z-index: 20;                 /* POR ENCIMA DEL BOTÓN DE SONIDO */
    max-width: 800px;
    width: 90%;
    pointer-events: auto;
}

.zona-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    min-height: 100px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.zona-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
    color: #fff;
}

.zona-number {
    font-size: 24px;
    font-weight: 200;
    opacity: 0.5;
    letter-spacing: 2px;
}

.zona-name {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- NAV-BAR (indicador de progreso) ---------- */
#nav-bar {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0;
    transition: all 0.3s ease;
    cursor: default;
}

.nav-dot.active {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

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

/* ---------- 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); }
}

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

@keyframes overlayBreathe {
    0% { opacity: 0.2; }
    25% { opacity: 0.35; }
    50% { opacity: 0.2; }
    75% { opacity: 0.35; }
    100% { opacity: 0.2; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    #volver {
        width: 44px;
        height: 44px;
        font-size: 18px;
        top: 20px;
        left: 20px;
    }
    
    #zonas-grid {
        gap: 12px;
        max-width: 600px;
    }
    
    .zona-card {
        padding: 16px 12px;
        min-height: 80px;
    }
    
    .zona-number {
        font-size: 18px;
    }
    
    .zona-name {
        font-size: 10px;
    }
    
    #nav-bar {
        padding: 8px 20px;
        gap: 14px;
        bottom: 40px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    #zonas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 100%;
    }
    
    .zona-card {
        padding: 12px 8px;
        min-height: 60px;
    }
    
    .zona-number {
        font-size: 14px;
    }
    
    .zona-name {
        font-size: 8px;
    }
}
#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 */
}

/* Posicionar el contenido de la zona en el centro o donde quieras */
#zona-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra el texto exactamente en el medio */
    z-index: 2; /* Asegura que esté por encima del vídeo y del fondo */
    pointer-events: none; /* Para que no bloquee los clics en los botones de la cuadrícula */
    text-align: center;
    color: white; /* Asegura que se vea sobre el vídeo */
}

/* Opcional: Ocultar el texto de las zonas para que solo se vea cuando corresponda */
#zona-title, #zona-description {
    display: none; /* Los ocultamos por defecto si no quieres verlos siempre */
}
