body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    background-color: #ffffff;
    color: #000000;
    font-family: 'PMingLiU-ExtB', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Capa de datos de fondo masiva */
.data-layer {
    position: fixed;
    top: 40px;
    left: 40px;
    width: calc(100vw - 80px);
    color: rgba(0, 0, 0, 0.07);
    font-size: 5.5vw;
    line-height: 1.1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    text-align: left;
    word-break: break-word;
    font-weight: bold;
    transition: opacity 0.4s ease;
}

.data-layer.hidden {
    opacity: 0;
}

/* Ambos menús comparten la misma clase estética */
#menu-superior, #menu-superior-imagen {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    display: none;
    justify-content: center;
    gap: 50px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    z-index: 50;
}

.item-menu {
    cursor: pointer;
}

.item-menu:hover {
    color: #777777;
}

/* Contenedor de Imagen Central */
#contenedor-imagen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: none;
    pointer-events: none;
    width: 250px;
    height: 180px;
}

#contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Grilla AVVVI */
.contenedor-grilla {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 80%;
    max-width: 1200px;
    z-index: 10;
    position: relative;
}

.letra {
    font-size: 4rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.1s, color 0.1s;
}

.letra.selected {
    background-color: #000000;
    color: #ffffff;
}

/* Caja de selección dinámica */
#selection-box {
    position: absolute;
    border: 1px dashed #000000;
    background-color: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 999;
    display: none;
}

/* --- EFECTO DAGUERROTIPO UNIVERSAL --- */
.daguerreotype-filter {
    filter: invert(100%) grayscale(100%) contrast(200%);
    mix-blend-mode: multiply;
    opacity: 0.85;
    transition: filter 4s cubic-bezier(0.25, 1, 0.5, 1),
                mix-blend-mode 4s ease,
                opacity 4s ease;
    cursor: pointer;
    user-select: none;
}

.daguerreotype-filter.revealed {
    filter: invert(0%) grayscale(0%) contrast(100%);
    mix-blend-mode: normal;
    opacity: 1;
}

/* --- VISTA DE MÚSICA --- */
#vista-musica {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.music-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('Imagenes/Fondo_MUSICA.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 101;
    pointer-events: none;
    transition: opacity 0.1s linear;
}

.constelacion-puntos {
    position: relative;
    width: 500px;
    height: 300px;
    z-index: 102;
}

.hotspot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 103;
    transition: transform 0.1s ease;
}

.hotspot:hover {
    background-color: #777777;
    transform: translate(-50%, -50%) scale(1.4);
}

#spot-1 { top: 20%; left: 20%; }
#spot-2 { top: 20%; left: 80%; }
#spot-3 { top: 20%; left: 50%; }
#spot-4 { top: 50%; left: 35%; }
#spot-5 { top: 50%; left: 65%; }
#spot-6 { top: 80%; left: 30%; }
#spot-7 { top: 80%; left: 70%; }

.reproductor-panel {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    z-index: 102;
}

#audio-status {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 8px;
    text-align: center;
    color: #000000;
}

#audio-status:hover {
    color: #666666;
}

.progress-container {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: #000000;
    transition: width 0.1s linear;
}

#audio-times {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #666666;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.volume-container {
    width: 100%;
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

#volume-slider {
    width: 100%;
    height: 3px;
    background-color: var(--slider-track-bg, #e0e0e0);
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.1s linear;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    background-color: var(--slider-thumb-bg, #000000);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s linear;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.bandcamp-link {
    margin-top: 35px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 102;
    color: #000000;
}

.bandcamp-link a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.1s ease;
}

.bandcamp-link a:hover {
    color: #777777;
}

/* Botón Global Volver */
.btn-volver {
    position: fixed;
    top: 30px;
    left: 40px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 105;
    color: #000000;
}

.btn-volver:hover {
    color: #777777;
}

#btn-volver-sobremim {
    transition: color 4s ease;
    color: #000000;
}

#vista-sobremim:has(.daguerreotype-filter.revealed) #btn-volver-sobremim {
    color: #ffffff;
}

.btn-volver-inmersivo {
    color: #ffffff;
    mix-blend-mode: difference;
    font-weight: bold;
}

.btn-volver-inmersivo:hover {
    color: #cccccc;
}

/* --- VISTAS SCROLLABLES --- */
#vista-aovivo, #vista-cinema, #vista-analog, #vista-digital {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: none;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- VISTA SOM AO VIVO --- */
.doodle-block {
    width: 100vw;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12vw;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid #eeeeee;
}

.doodle-text {
    width: 55%;
    color: #000000;
    z-index: 2;
}

.doodle-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.doodle-company {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.doodle-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #111111;
}

.doodle-desc strong {
    color: #000000;
    font-weight: bold;
}

.doodle-img {
    width: 35%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    z-index: 1;
}

/* --- VISTA CINEMA --- */
.exp-block {
    width: 100vw;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10vw;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.bg-daguerreotype {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.exp-text-container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 50px;
    border-radius: 8px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.exp-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.exp-company {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.exp-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ffffff;
}

.exp-desc strong {
    color: #ffffff;
    font-weight: bold;
}

.video-block {
    width: 100vw;
    min-height: 100vh;
    background-color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    box-sizing: border-box;
}

.video-info-container {
    max-width: 1000px;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    background-color: #000000;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- VISTA VIDEO (Grid YouTube 4x2) --- */
#vista-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: none;
    z-index: 100;
}

.video-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 25vw);
    grid-template-rows: repeat(2, 50vh);
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    gap: 0;
}

.video-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    filter: brightness(0.9);
}

.video-thumb-link:hover .video-thumb {
    transform: scale(1.04);
    filter: brightness(1);
}

/* --- VISTAS ANALOG Y DIGITAL (Grillas Fotográficas) --- */
#vista-analog, #vista-digital {
    background-color: #111111;
}

.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 80px 40px 40px 40px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.gallery-thumb:hover {
    transform: scale(1.02);
    filter: brightness(1);
}

/* --- LIGHTBOX (Visor de Galerías) --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#lightbox.hidden {
    display: none;
    opacity: 0;
}

#lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: color 0.2s ease;
}

.lightbox-nav:hover {
    color: #777777;
}

#lightbox-prev {
    left: 5vw;
}

#lightbox-next {
    right: 5vw;
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

#lightbox-close:hover {
    color: #777777;
}

#lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #777777;
    font-size: 1rem;
    letter-spacing: 2px;
}


/* --- VISTA SOBRE MIM --- */
#vista-sobremim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: none;
    z-index: 100;
}

.sobremim-container {
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    position: relative;
}

.sobremim-content-wrapper {
    display: grid;
    grid-template-columns: 1.215fr 1fr;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.sobremim-img-col {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.sobremim-text-col {
    padding: 10vh 7vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
}

.lang-selector {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #000000;
}

.lang-btn {
    cursor: pointer;
    color: #888888;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: #000000;
}

.lang-btn.active {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
}

.sobremim-header {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sobremim-texto {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.sobremim-texto a {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.1s ease;
}

.sobremim-texto a:hover {
    color: #777777;
}

.bio-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    object-fit: cover;
}

@media (max-width: 900px) {
    .sobremim-content-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        position: relative;
    }
    .sobremim-img-col {
        width: 100%;
        height: 50vh;
        position: relative;
    }
    .sobremim-text-col {
        padding: 4vh 5vw;
        height: auto;
    }
    .doodle-block {
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        padding: 12vh 8vw;
    }
    .doodle-text {
        width: 100%;
    }
    .doodle-img {
        width: 80%;
        max-width: 300px;
    }
    .video-grid-container {
        grid-template-columns: repeat(2, 50vw);
        grid-template-rows: repeat(4, 25vh);
    }
    .gallery-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 80px 20px 20px 20px;
    }
}