/* --- 1. CONFIGURACIÓN (VARIABLES) --- */
:root {
    --bg: #1A1A1A;       /* Carbón Profundo */
    --text: #EFEFEF;     /* Blanco Hueso */
    --accent: #FF8C00;   /* Ámbar Válvula */
    
    /* Fuentes del sistema Google Fonts */
    --font-tech: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-luxe: 'DM Serif Display', serif;
}

/* --- 2. RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    height: 100vh; /* Altura pantalla completa */
    overflow: hidden; /* Sin barras de desplazamiento */
}

/* --- 3. EFECTO RUIDO (NOISE) --- */
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* Generador de ruido SVG automático */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.06; /* Intensidad del grano */
    pointer-events: none; z-index: 99;
}

/* --- 4. HEADER --- */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 2rem 3rem;
    display: flex; justify-content: space-between;
    z-index: 100;
    mix-blend-mode: difference; /* Texto cambia color según fondo */
}

.logo {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.menu-items a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 5. GRID (PANTALLA PARTIDA) --- */
.grid-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.column {
    flex: 1; /* Las 3 columnas ocupan lo mismo */
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.1); /* Líneas finas divisorias */
    display: flex;
    align-items: flex-end; /* Texto abajo */
    padding: 3rem;
    text-decoration: none;
    color: var(--text);
    transition: flex 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* Animación suave */
    overflow: hidden;
}

/* Fondo de las columnas (Imagen) */
.bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    background-color: #222; /* Color de fondo por si no hay imagen */
    filter: grayscale(100%) brightness(0.4); /* Blanco y negro oscuro */
    transition: all 0.6s ease;
    z-index: -1;
}

/* Textos dentro de columnas */
.content { z-index: 2; width: 100%; }

.content h2 {
    font-family: var(--font-tech);
    font-size: 3.5vw; /* Tamaño adaptable */
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.serif-accent {
    font-family: var(--font-luxe);
    font-style: italic;
    text-transform: none; /* Liquid en minúscula se ve elegante */
    font-weight: 400;
}

.subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.line {
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s ease;
}

/* --- 6. INTERACCIÓN (HOVER) --- */
.column:hover {
    flex: 1.8; /* La columna crece */
}

.column:hover .bg-image {
    filter: grayscale(0%) brightness(1); /* Vuelve el color */
    transform: scale(1.05); /* Pequeño zoom */
}

.column:hover .line { width: 100%; } /* Línea decorativa se expande */
.column:hover h2 { color: #FFF; }

/* --- 7. MÓVIL --- */
@media (max-width: 768px) {
    .grid-container { flex-direction: column; }
    .column { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .content h2 { font-size: 2.5rem; }
    nav { padding: 1.5rem; }
}

/* --- ESTILOS DEL MENÚ DESPLEGABLE --- */
.overlay {
    height: 0%; /* Empieza cerrado */
    width: 100%;
    position: fixed;
    z-index: 999; /* Para que quede encima de todo */
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0, 0.95); /* Negro casi opaco */
    overflow-y: hidden;
    transition: 0.5s; /* Animación de medio segundo */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.overlay-content {
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
    font-family: var(--font-tech);
    text-transform: uppercase;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
    letter-spacing: 5px; /* Efecto de expansión al pasar el ratón */
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}