﻿/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    /* Colores base */
    --fondo-principal: #050505;
    --texto-principal: #e0e0e0;
    --texto-secundario: #888;
    --texto-blanco: #fff;
    /* Colores de acento */
    --acento-primario: #00ffcc;
    --acento-hover: #00e6b8;
    --acento-rgb: 0, 255, 204;
    /* Tarjetas */
    --tarjeta-bg: rgba(17, 17, 17, 0.8);
    --borde-tarjeta: #222;
    --borde-tarjeta-hover: #333;
    /* Tipografía */
    --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================================
   ESTILOS GENERALES
   ========================================= */
body, html {
    margin: 0;
    padding: 0;
    background-color: var(--fondo-principal);
    background-image: radial-gradient(at 20% 30%, rgba(var(--acento-rgb), 0.03) 0px, transparent 40%), radial-gradient(at 80% 80%, rgba(255, 255, 255, 0.02) 0px, transparent 40%), radial-gradient(at 50% 50%, rgba(var(--acento-rgb), 0.02) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--texto-principal);
    font-family: var(--fuente-principal);
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--acento-primario);
}

.contenedor-horizontal {
    display: flex;
    width: 500vw;
    height: 100vh;
}

.panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.contenido {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
}

/* =========================================
   PERFIL
   ========================================= */
.foto-perfil {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--acento-primario);
    box-shadow: 0 0 15px rgba(var(--acento-rgb), 0.2);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

    .foto-perfil:hover {
        box-shadow: 0 0 30px rgba(var(--acento-rgb), 0.6);
    }

.contacto {
    color: var(--texto-secundario);
}

.enlaces a {
    color: var(--acento-primario);
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

    .enlaces a:hover {
        color: var(--texto-blanco);
        text-shadow: 0 0 8px var(--acento-primario);
    }

/* =========================================
   TARJETAS
   ========================================= */
.grid-perfil,
.grid-proyectos {
    display: flex;
    gap: 20px;
    justify-content: center;
    text-align: left;
    margin-top: 1.5rem;
}

.grid-habilidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.perfil-card,
.proyecto-card,
.habilidad-card {
    background-color: var(--tarjeta-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--borde-tarjeta);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.perfil-card,
.proyecto-card {
    padding: 1.5rem;
    flex: 1;
}

.habilidad-card {
    padding: 1rem;
    text-align: center;
}

    /* Hover */
    .perfil-card:hover,
    .habilidad-card:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(var(--acento-rgb), 0.15);
    }

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(var(--acento-rgb), 0.15);
}

/* =========================================
   BOTONES
   ========================================= */
.acciones {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    flex: 1;
}

.btn-primario {
    background-color: var(--acento-primario);
    color: var(--fondo-principal);
}

    .btn-primario:hover {
        background-color: var(--acento-hover);
    }

.btn-secundario {
    border: 1px solid var(--acento-primario);
    color: var(--acento-primario);
}

/* =========================================
   EDUCACIÓN
   ========================================= */
.item-educacion {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-utn {
    width: 100px;
}

/* =========================================
   NAVEGACIÓN
   ========================================= */
.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--texto-principal);
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .nav-btn:hover {
        color: var(--acento-primario);
    }

#nav-izq {
    left: 30px;
}

#nav-der {
    right: 30px;
}

#estela-puntero {
    position: fixed;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient( circle, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70% );
    transform: translate(-50%, -50%);
    z-index: 50;
    filter: blur(8px);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    body, html {
        overflow-y: auto;
    }

    .contenedor-horizontal {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .grid-proyectos,
    .grid-perfil {
        flex-direction: column;
    }

    .nav-btn {
        display: none;
    }
}
/* =========================================
   ANIMACIONES DE ENTRADA
   ========================================= */
.oculto {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}
