/* ==========================================================================
   ojos de ópalo - SISTEMA DE ESTILOS CREATIVOS E INTERACTIVOS (MINIMALISTA)
   Diseñado por: Antigravity
   ========================================================================== */

/* Importar tipografía experimental y geométrica de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700&family=Syne:wght@700;800&family=Lexend+Deca:wght@300;400;500&display=swap');

:root {
    --bg-color: #ffffff; /* Inicia en blanco */
    --text-color: #000000;
    --font-bauhaus: 'Syne', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-body: 'Lexend Deca', sans-serif;
}

/* Reset de página */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.1s ease;
}

/* ==========================================================================
   TEXTO CENTRAL FIJO (IBM Plex Mono / Estático / Sube al scroll)
   ========================================================================== */
.title-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    pointer-events: none; /* Deja pasar los clics y hovers a los ojos de abajo */
    user-select: none;
    mix-blend-mode: difference; /* Efecto artístico premium al pasar ojos por detrás */
    transition: top 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-container.scrolled-top {
    top: 3.5rem;
    transform: translate(-50%, 0);
}

.main-title {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(1.4rem, 4.2vw, 3.8rem);
    letter-spacing: -2px;
    line-height: 1;
    color: #ffffff; /* Fijo en blanco: con mix-blend-mode difference, se ve negro en fondo blanco y blanco sobre negro */
    text-transform: lowercase; /* Respetar minúsculas del usuario */
    white-space: nowrap; /* Asegura lectura en una sola línea */
}

/* ==========================================================================
   LIENZO DE OJOS Y CONTENEDOR
   ========================================================================== */
.eyes-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Contenedor del ojo interactivo */
.eye-wrapper {
    position: absolute;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Permitir interacción */
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Estilo del SVG del Ojo */
.eye-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* --- TRANSICIONES DE ELEMENTOS SVG --- */

/* 1. Círculo negro del estado normal */
.normal-circle {
    fill: #000000;
    stroke: #ffffff;
    stroke-width: 2.5;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    transform-origin: 100px 100px;
    opacity: 1;
    transform: scale(1);
}

/* 2. Estrella / Starburst del estado interactivo */
.starburst-path {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, fill 0.4s ease;
    transform-origin: 100px 100px;
    opacity: 0;
    transform: scale(0.5) rotate(-25deg);
}

/* 3. Contorno del lente (ojo blanco) */
.lens-path {
    fill: #ffffff;
    stroke: #000000;
    stroke-width: 4.5;
    transition: all 0.3s ease;
}

/* 4. Grupo de la pupila (rastreo de cursor) */
.pupil-group {
    transition: transform 0.08s ease-out;
}

/* 5. Anillos del iris interactivo */
.iris-outer {
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.4s ease;
    transform-origin: 100px 100px;
    opacity: 0;
    transform: scale(0.5);
    stroke: #000000;
    stroke-width: 2.5;
}

.iris-inner {
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.4s ease;
    transform-origin: 100px 100px;
    opacity: 0;
    transform: scale(0.5);
    stroke: #000000;
    stroke-width: 2;
}

.iris-center {
    fill: #000000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: 100px 100px;
}

/* --- ESTADOS INTERACTIVOS (HOVER) --- */
.eye-wrapper:hover .normal-circle {
    opacity: 0;
    transform: scale(0.5);
}

.eye-wrapper:hover .starburst-path {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.eye-wrapper:hover .iris-outer {
    opacity: 1;
    transform: scale(1);
}

.eye-wrapper:hover .iris-inner {
    opacity: 1;
    transform: scale(1);
}

.eye-wrapper:hover .iris-center {
    transform: scale(0.68); /* Se reduce para dar espacio a los anillos de color */
}

/* --- ETIQUETA INFORMATIVA DEL PROYECTO RADIAL (01 - 08) --- */
.project-tag-radial {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    fill: #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.eye-wrapper:hover .project-tag-radial {
    opacity: 0.85;
}

/* ==========================================================================
   INTERFAZ DE USUARIO COMPLEMENTARIA
   ========================================================================== */
.footer-info {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999999;
    z-index: 100;
    pointer-events: none;
}

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999999;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background-color: #cccccc;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    animation: scrollAnim 2s infinite ease-in-out;
}

@keyframes scrollAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- COLORES INVERTIDOS PARA LOS OJOS MUSICALES DECORATIVOS --- */
.musical-eye .normal-circle {
    fill: #ffffff;
    stroke: #000000;
    stroke-width: 2.5;
}

.musical-eye .lens-path {
    fill: #000000;
    stroke: #ffffff;
    stroke-width: 4.5;
}

.musical-eye .iris-center {
    fill: #ffffff;
}

/* --- VERSION LITE PARA DISPOSITIVOS MÓVILES --- */
@media (max-width: 768px) {
    /* Texto central fijo hasta arriba */
    .title-container {
        top: 2.2rem !important;
        transform: translate(-50%, 0) !important;
    }

    .main-title {
        font-size: 1.45rem !important;
        letter-spacing: -0.5px;
    }
    
    /* Adaptar y reducir tamaño de los ojos para móviles */
    .eye-wrapper {
        transform: scale(0.62) !important;
    }
    
    .eye-wrapper:hover {
        transform: scale(0.72) !important;
    }
    
    /* Pie de página y scroll ajustados */
    .footer-info {
        left: 1rem;
        bottom: 1rem;
        font-size: 0.65rem;
    }
    
    .scroll-indicator {
        right: 1rem;
        bottom: 1rem;
        font-size: 0.65rem;
    }
}
