/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #0f1115; /* El color oscuro de la referencia */
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --accent-primary: #6366f1; /* Indigo neón */
    --accent-secondary: #ec4899; /* Pink neón */
    --accent-teal: #14b8a6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- BACKGROUND ABSTRACTO (La clave del diseño) --- */
.background-effects {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Luces difusas (Blobs) */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}
.glow-1 { top: -10%; right: -5%; width: 500px; height: 500px; background: var(--accent-primary); }
.glow-2 { bottom: 10%; left: -10%; width: 400px; height: 400px; background: var(--accent-secondary); animation-delay: -2s; }
.glow-3 { top: 40%; right: 20%; width: 200px; height: 200px; background: var(--accent-teal); opacity: 0.2; animation-delay: -5s; }

/* Anillos geométricos (Líneas finas) */
.ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.ring-1 {
    top: -200px; right: -200px;
    width: 800px; height: 800px;
    animation: spin 60s linear infinite;
}
.ring-2 {
    bottom: -100px; left: -100px;
    width: 600px; height: 600px;
    border-color: rgba(255, 255, 255, 0.03);
    animation: spin 40s linear infinite reverse;
}

@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(30px, 50px); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- LAYOUT GENERAL --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.spacer { padding-top: 8rem; padding-bottom: 2rem; }

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* Ajuste para el logo de imagen */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px; /* Ajustá este valor según qué tan grande querés que se vea */
    width: auto;  /* Mantiene la proporción correcta */
    display: block;
}

/* Opcional: Si en celular lo querés un poquito más chico */
@media (max-width: 768px) {
    .logo-img {
        height: 100px;
    }
}

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.95rem; color: var(--text-gray); font-weight: 500; }
.nav-links a:hover { color: var(--text-white); }

.btn-contact {
    background: var(--text-white);
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .btn-contact{
        color: whites;
    }
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh; /* Ocupa casi toda la pantalla */
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.hero-content { max-width: 700px; }

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.cta-group { display: flex; gap: 1.5rem; align-items: center; }
.btn-primary {
    background: white; color: black;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
}
.btn-link { font-weight: 600; border-bottom: 1px solid transparent; }
.btn-link:hover { border-bottom-color: white; }

/* --- SECTION: ABOUT (QUIÉN SOY) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 900px) {
    .about-grid { grid-template-columns: 0.8fr 1.2fr; }
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.profile-pic { width: 100%; display: block; filter: grayscale(20%); transition: 0.5s; }
.about-img-wrapper:hover .profile-pic { filter: grayscale(0%); scale: 1.05; }

.tech-badge {
    position: absolute;
    bottom: 20px; right: -20px;
    background: var(--accent-primary);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.sub-heading { color: var(--accent-teal); margin-bottom: 1.5rem; font-weight: 600; }
.about-text p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 1.05rem; }

.stats-row { display: flex; gap: 3rem; margin-top: 2rem; border-top: 1px solid var(--glass-border); padding-top: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat .number { font-size: 2rem; font-weight: 800; color: white; }
.stat .label { font-size: 0.8rem; color: var(--text-gray); text-transform: uppercase; }

/* --- GRID SYSTEM (BLINDADO) --- */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* --- CARDS (Glassmorphism) --- */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: 0.3s;
}
.card:hover { 
    background: rgba(255,255,255,0.05); 
    border-color: rgba(255,255,255,0.2); 
    transform: translateY(-5px);
}
.icon-box { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-gray); font-size: 0.9rem; }

/* --- PROJECT CARDS --- */
.project-card {
    display: block;
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.project-card:hover .project-img img { transform: scale(1.05); }

.project-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.tag {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.7); color: white;
    padding: 4px 10px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.project-info { padding: 1.5rem; }
.project-info h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.project-info p { color: var(--text-gray); font-size: 0.9rem; }

/* --- CONTACTO --- */
.contact-box {
    max-width: 800px; margin: 0 auto;
    background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid var(--glass-border);
    padding: 4rem 2rem;
    border-radius: 24px;
}
.text-center { text-align: center; }
.contact-desc { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 2rem; }

.buttons-row { display: flex; justify-content: center; gap: 1rem; }
.btn-outline {
    border: 1px solid var(--glass-border);
    color: white; padding: 1rem 2.5rem;
    border-radius: 100px; font-weight: 700;
}
.btn-outline:hover { background: var(--glass-bg); border-color: white; }

footer { margin-top: 5rem; color: var(--text-gray); font-size: 0.9rem; }

/* --- ANIMACIONES DE ENTRADA (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid { gap: 2rem; }
    .buttons-row { flex-direction: column; }
}

/* --- ESTILOS RESPONSIVE DEL NAVBAR --- */

/* 1. Estilo del botón Hamburguesa (oculto en PC) */
.hamburger {
    display: none; /* Por defecto no se ve */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* 2. Cuando la pantalla es menor a 768px (Celulares/Tablets chicas) */
/* --- CORRECCIÓN FINAL MENU MÓVIL --- */

/* 1. Aseguramos que la barra entera esté siempre encima de las luces y el contenido */
.navbar {
    position: relative; 
    z-index: 9999; /* Número alto para que nada lo tape */
    background: transparent; /* Fondo transparente en la barra misma */
}

/* 2. Ajustes para celulares */
@media (max-width: 768px) {
    
    .hamburger {
        display: flex;
        z-index: 10000; /* El botón siempre clickeable */
    }

    .nav-links {
        position: absolute;
        top: 100%; /* Justo debajo de la barra */
        left: 0;
        width: 100%;
        
        /* FONDO SÓLIDO: Importante para que no se mezcle con lo de atrás */
        background-color: #000000a6; 
        border-bottom: 1px solid rgb(255, 255, 255);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 3rem 0; /* Espacio arriba y abajo */
        gap: 2rem;
        
        /* Animación */
        transform: translateY(-100%); /* Se esconde arriba */
        opacity: 0;
        transition: 0.4s ease-in-out;
        z-index: 9998; /* Justo debajo del botón */
        visibility: hidden; /* Para que no moleste cuando está cerrado */
    }

    /* CLASE ACTIVE: Cuando el JS lo activa */
    .nav-links.active {
        transform: translateY(0); /* Baja */
        opacity: 1;
        visibility: visible;
    }

    /* Letras más grandes y blancas para celular */
    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: rgb(0, 0, 0) !important;
    }
}