/* --- VARIABLES Y FUNDAMENTOS MUV™ --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&family=JetBrains+Mono&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #fdfdfd;
    --text-dark: #0a0a0a;
    --text-light: #ffffff;
    --border-thickness: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    cursor: none; /* Escondemos el cursor por defecto */
    overflow-x: hidden;
}

/* --- GRANO CINEMATOGRÁFICO --- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* --- NAVEGACIÓN --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-thickness) solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
}

/* --- BLOQUES ATMOSFÉRICOS (Spotlight dinámico) --- */
.bg-dark-section {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), #181818 0%, #0a0a0a 60%) !important;
    color: var(--text-light) !important;
}

.bg-light-section {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), #ffffff 0%, #ebebeb 60%) !important;
    color: var(--text-dark) !important;
}

/* --- CURSOR MAGNÉTICO (Minimalista y sin lag) --- */
*, *::before, *::after {
    cursor: none !important; /* Forzamos la desaparición del cursor del sistema */
}

#cursor {
    position: fixed;
    top: 0; 
    left: 0;
    width: 12px; /* Un punto un poco más presente */
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none; /* Vital para poder hacer click */
    z-index: 10000;
    mix-blend-mode: difference;
    /* La transición solo afecta al tamaño y color, NO a la posición para evitar lag */
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                border 0.3s ease;
}

/* Efecto cuando pasa por un enlace, botón o proyecto */
#cursor.active { 
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    backdrop-filter: blur(2px);
}

/* --- BOTONES MUV™ --- */
.btn-primary {
    border: var(--border-thickness) solid currentColor;
    padding: 1.2rem 3rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    position: relative;
}

.btn-primary:hover {
    background: currentColor;
    color: var(--bg-dark);
    transform: translateY(-3px); /* Pequeño levante táctil */
}

/* --- PROYECTOS --- */
.project-card {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card img {
    filter: grayscale(1) brightness(0.85);
    transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

::-webkit-scrollbar { display: none; }