:root {
    --bg-color: #0022FF; 
    --text-color: #FFFFFF;
    --accent: #CCFF00; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0; padding: 0;
    height: 100vh; width: 100vw;
    overflow: hidden; /* Esto bloquea el fondo */
    position: relative;
    cursor: auto; 
}

a { color: inherit; text-decoration: none; }

/* Selector de Idioma */
.lang-switch {
    position: fixed; top: 20px; right: 20px;
    color: var(--text-color); text-decoration: none;
    font-weight: bold; border: 1px solid var(--text-color);
    padding: 5px 10px; z-index: 100; border-radius: 20px;
    font-size: 0.9rem; transition: all 0.3s;
}

.lang-switch:hover { background: var(--accent); color: var(--bg-color); border-color: var(--accent); }

/* Centro */
.center-piece {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); text-align: center;
    z-index: 10; pointer-events: none; 
}

h1 {
    font-size: 3.5rem; font-weight: 700; letter-spacing: -2px;
    margin: 0; line-height: 0.9; text-transform: uppercase;
}

.role {
    font-family: 'Courier New', monospace; font-size: 1.1rem;
    margin-top: 15px; display: block; opacity: 0.8;
}

/* --- BOTONES --- */
.orbiter {
    background: transparent; color: var(--text-color);
    border: 1px solid var(--text-color); padding: 12px 24px;
    border-radius: 50px; font-size: 1.2rem; text-transform: uppercase;
    font-weight: 500; cursor: pointer; text-decoration: none;
    transition: all 0.3s ease; 
    white-space: nowrap; 
    animation: float 6s ease-in-out infinite;
}

.orbiter:hover {
    background: var(--accent); color: var(--bg-color); border-color: var(--accent);
    transform: scale(1.1); z-index: 50;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- POSICIONAMIENTO LATERAL --- */
#btn-writing, #btn-research, #btn-art, #btn-about { position: absolute; }
#btn-writing { top: 20%; left: 20%; animation-delay: 0s; }
#btn-research { top: 20%; right: 20%; animation-delay: 1s; }
#btn-art { bottom: 20%; left: 20%; animation-delay: 2s; }
#btn-about { bottom: 20%; right: 20%; animation-delay: 3s; }


/* --- WRAPPERS CENTRALES --- */
.center-wrapper {
    position: absolute; left: 50%; transform: translateX(-50%); 
    z-index: 20; width: auto; display: flex; justify-content: center;
}
#wrap-workshops { top: 15%; }
#wrap-email { bottom: 10%; }
#btn-workshops { animation-delay: 0.5s; }
#btn-email { border-style: dashed; animation-delay: 4s; }


/* --- MODALES (Escritorio) --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0, 34, 255, 0.95);
    z-index: 200; 
    justify-content: center; align-items: center; 
}

.modal-content {
    background: transparent; width: 90%; max-width: 600px;
    text-align: left; position: relative;
    max-height: 85vh; 
    overflow-y: auto; 
    padding-right: 10px;
}

.modal-content::-webkit-scrollbar { width: 5px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

.close-btn {
    position: absolute; top: 0; right: 0;
    font-size: 2rem; cursor: pointer; color: var(--accent); z-index: 201;
}

.modal-content h2 {
    font-size: 2rem; border-bottom: 2px solid var(--accent);
    padding-bottom: 10px; margin-bottom: 30px; color: var(--accent); text-transform: uppercase;
    margin-top: 0;
}

.category-title {
    color: var(--accent); font-weight: bold; text-transform: uppercase;
    font-size: 0.9rem; margin-top: 25px; margin-bottom: 10px;
    font-family: 'Courier New', monospace; border-bottom: 1px dashed rgba(204, 255, 0, 0.3);
    display: inline-block;
}

.item-list a {
    display: block; color: #FFF; text-decoration: none;
    font-size: 1.3rem; margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 5px; transition: color 0.3s;
}

.item-list a:hover { color: var(--accent); padding-left: 10px; }

.meta { display: block; font-size: 0.8rem; opacity: 0.7; font-family: 'Courier New', monospace; margin-top: 3px; }

.skills-block { font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.6; color: #eee; }

/* ARTE OVERLAY */
#art-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #B46400; z-index: 9999; display: none;
}
#art-meta {
    position: absolute; bottom: 30px; left: 30px; color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px; line-height: 1.4; pointer-events: none; opacity: 0.8; z-index: 10000;
    transition: opacity 1.5s ease-in-out;
}
#art-close {
    position: absolute; top: 20px; right: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px; color: white; border: 1px solid white; padding: 5px 10px;
    cursor: pointer; z-index: 10001; text-transform: uppercase;
    background: rgba(0,0,0,0.5); transition: opacity 1.5s ease-in-out;
}
#art-close:hover { background: white; color: black; }
.fade-out { opacity: 0 !important; pointer-events: none; }

/* Cursores */
#art-overlay canvas { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="black"/></svg>') 10 10, auto; }
.cursor-epiphany { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23FFD700"/></svg>') 10 10, auto !important; }

/* --- RESPONSIVE--- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .orbiter { padding: 8px 16px; font-size: 0.9rem; }
    
    /* POSICIONES */
    #wrap-workshops { top: 12%; } 
    #btn-writing { top: 22%; left: 5%; }
    #btn-research { top: 28%; right: 5%; }
    #btn-art { top: 68%; left: 5%; bottom: auto; }
    #btn-about { top: 74%; right: 5%; bottom: auto; }
    #wrap-email { bottom: 5%; }
    
    /* SCROLL MÓVIL */
    .modal-overlay {
        display: none; 
        

        align-items: flex-start; 
        overflow-y: scroll; 
        -webkit-overflow-scrolling: touch; 
        

        position: fixed;
        top: 0; left: 0; bottom: 0; right: 0;
    }

    .modal-content { 
  
        max-height: none; 
        height: auto;
        overflow: visible;


        margin-top: 60px;
        margin-bottom: 100px; 
        
    
        min-height: calc(100vh + 1px); 
    }
}
