/* --- Reseteo Básico y Variables --- */
:root {
    --color-primario: #00FFFF; /* Cyan Eléctrico */
    --color-fondo: #0a0a0c; /* Un negro más profundo */
    --color-fondo-secundario: #1a1a1a;
    --color-texto: #eaeaea;
    --color-texto-secundario: #a0a0a0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--color-texto); line-height: 1.6; background-color: var(--color-fondo); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; } h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; } p { font-size: 1.1rem; }
a { color: var(--color-primario); text-decoration: none; }
.content-section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }
.dark-bg { background-color: #121212; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background-color: rgba(10, 10, 12, 0.7); backdrop-filter: blur(10px); position: fixed; top: 0; width: 100%; z-index: 1000; }
.nav-brand a { font-size: 1.5rem; font-weight: 700; color: var(--color-texto); }
.nav-links { display: flex; list-style: none; } .nav-links li { margin-left: 2rem; } .nav-links a { color: var(--color-texto-secundario); font-weight: 400; transition: color 0.3s ease; } .nav-links a:hover { color: var(--color-primario); }
.hero-section { height: 100vh; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; overflow: hidden; background-color: var(--color-fondo); }
#interactive-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 3; padding: 2rem; pointer-events: none; }
.hero-content h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 0 15px rgba(0, 255, 255, 0.3); }
.hero-content p { font-size: 1.5rem; color: var(--color-texto-secundario); margin-bottom: 2rem; }
.cta-button { background-color: transparent; color: var(--color-primario); padding: 0.8rem 2rem; border: 2px solid var(--color-primario); border-radius: 5px; font-size: 1.1rem; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 0 10px rgba(0, 255, 255, 0.3); margin-top: 3rem; display: inline-block; pointer-events: auto; }
.cta-button:hover { background-color: var(--color-primario); color: var(--color-fondo); box-shadow: 0 0 25px rgba(0, 255, 255, 0.7); transform: translateY(-3px); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 8px; display: block; border: 2px solid transparent; transition: border-color 0.4s ease, box-shadow 0.4s ease; background-size: cover; background-position: center center; background-repeat: no-repeat; height: 280px; }
.portfolio-hover { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10, 10, 12, 0.95), transparent); padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; transform: translateY(100%); opacity: 0; transition: transform 0.4s ease-out, opacity 0.4s ease-out; }
.portfolio-item:hover { border-color: var(--color-primario); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
.portfolio-item:hover .portfolio-hover { transform: translateY(0); opacity: 1; }
#reel .content-section { max-width: 1000px; } #reel h2 { margin-bottom: 1rem; } #reel p { text-align: center; color: var(--color-texto-secundario); margin-bottom: 3rem; }
.video-player-main { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); border: 1px solid rgba(0, 255, 255, 0.2); margin: 0 auto; max-width: 900px; transition: opacity 0.3s ease-in-out; }
.video-fading-out { opacity: 0; } .video-player-main iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-playlist { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.video-track-item { background-color: var(--color-fondo-secundario); border: 2px solid #333; color: var(--color-texto-secundario); padding: 0.8rem 1.5rem; border-radius: 50px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.video-track-item:hover { background-color: var(--color-primario); color: var(--color-fondo); border-color: var(--color-primario); }
.video-track-item.playing { background-color: var(--color-primario); color: var(--color-fondo); border-color: var(--color-primario); box-shadow: 0 0 15px rgba(0, 255, 255, 0.5); }
footer { text-align: center; padding: 2rem; background-color: #000; color: var(--color-texto-secundario); margin-top: 4rem; position: relative; z-index: 10; }
.global-audio-controls { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1001; display: flex; align-items: center; gap: 1rem; background-color: rgba(26, 26, 26, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.75rem 1.5rem; border-radius: 50px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); opacity: 1; transition: transform 0.6s ease-in-out, left 0.6s ease-in-out, opacity 0.3s ease-in-out; }
.global-audio-controls.controls-relocated { left: calc(100% - 2rem); transform: translateX(-100%); }
.global-audio-controls.controls-fading { opacity: 0.4; pointer-events: none; }
#audio-toggle-btn { background-color: var(--color-primario); color: var(--color-fondo); border: none; font-size: 1.2rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; line-height: 1; transition: all 0.3s ease; }
#audio-toggle-btn:hover { background-color: #fff; transform: scale(1.1); }
#volume-slider { appearance: none; -webkit-appearance: none; width: 150px; height: 6px; background: rgba(0, 0, 0, 0.5); border-radius: 5px; outline: none; transition: opacity 0.2s; }
#volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--color-primario); border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); border: 0; }
#volume-slider::-moz-range-thumb { width: 18px; height: 18px; background: var(--color-primario); border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }


/* =================================================== */
/* NUEVO: Estilos del Modal de Desbloqueo de Audio     */
/* =================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* El efecto de fondo */
    background-color: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Para Safari */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    z-index: 2000; /* Por encima de todo */
    
    /* Lógica de ocultar/mostrar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-fondo-secundario);
    padding: 2.5rem 3.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Animación de entrada */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cuando el modal está activo, el contenido aparece */
.modal-backdrop.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content h2 {
    color: var(--color-texto);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-content p {
    color: var(--color-texto-secundario);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Reutilizamos el estilo .cta-button pero le quitamos el margen superior */
#start-audio-btn {
    margin-top: 0;
    font-size: 1.2rem;
    padding: 0.9rem 2.5rem;
}