/*
Theme Name: Federico Portfolio V2
Theme URI: https://federicoflores.com
Author: Federico Flores
Description: Tema optimizado sin librerías, diseño algorítmico y gestión de contenido sencilla.
Version: 2.0
*/

:root {
    --bg-deep: #0B0B0D;
    --bg-card: #121217;
    --bg-card-hover: #1a1a21;
    --neon-cyan: #00FFE1;
    --neon-gold: #FFD500;
    --text-main: #E6E7E9;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', system-ui, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- BACKGROUND CANVAS --- */
#network-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 1; pointer-events: none;
}

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(11, 11, 13, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem; font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 225, 0.3);
}

nav ul { display: flex; gap: 2rem; }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-main); position: relative; }
nav a:hover { color: var(--neon-cyan); }
nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--neon-gold); transition: var(--transition);
}
nav a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 8rem 5% 5rem; position: relative;
    gap: 4rem;
}

.hero-content { flex: 1; max-width: 650px; z-index: 2; }

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
.text-neon {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold));
    -webkit-background-clip: text; color: transparent;
}

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

.btn-group { display: flex; gap: 1rem; }
.btn {
    padding: 12px 30px; border-radius: 8px; font-weight: 600; cursor: pointer;
    font-size: 1rem; transition: var(--transition); border: 1px solid transparent;
}
.btn-primary {
    background: var(--neon-cyan); color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 225, 0.2);
}
.btn-primary:hover { 
    box-shadow: 0 0 30px rgba(0, 255, 225, 0.5); 
    transform: translateY(-2px);
    background: var(--neon-gold);
}
.btn-outline {
    background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1);
}
.btn-outline:hover { 
    border-color: var(--neon-gold); 
    transform: translateY(-2px);
    color: var(--neon-gold);
}

/* --- SECTIONS GLOBAL --- */
section { padding: 6rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; font-weight: 700; display: inline-block; position: relative; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px; 
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold));
    margin: 15px auto 0;
}

/* --- ABOUT ME (Con Tags) --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }
.skills-container { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.skill-tag {
    padding: 6px 16px; background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50px;
    font-size: 0.85rem; color: var(--text-main); transition: var(--transition);
}
.skill-tag:hover { 
    border-color: var(--neon-gold); 
    color: var(--neon-gold); 
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 213, 0, 0.3);
}

/* --- SERVICES GRID --- */
.grid-auto {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem;
}
.card {
    background: var(--bg-card); padding: 2.5rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03); transition: var(--transition);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(255, 213, 0, 0.2);
    box-shadow: 0 10px 30px rgba(255, 213, 0, 0.1);
}
.card:hover::before { transform: scaleX(1); }

.card-icon { 
    font-size: 2rem; 
    color: var(--neon-cyan); 
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.card:hover .card-icon {
    color: var(--neon-gold);
    transform: scale(1.1);
}
.card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- PROJECTS (Estilo Imagen Image_73a3ed) --- */
.project-card { padding: 0; display: flex; flex-direction: column; }
.project-visual {
    height: 180px; background: #1a1a2e; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 255, 225, 0.1), rgba(255, 213, 0, 0.1));
}
.project-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.project-tags { margin-top: auto; display: flex; gap: 0.5rem; padding-top: 1.5rem; flex-wrap: wrap; }
.p-tag {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px; 
    background: rgba(255, 213, 0, 0.15); 
    color: var(--neon-gold);
    transition: var(--transition);
}
.p-tag:hover {
    background: rgba(255, 213, 0, 0.25);
    transform: translateY(-2px);
}

/* --- EXPERIENCE TIMELINE (Estilo Imagen Image_73a0e3) --- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 2px; height: 100%; 
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-gold));
}
.timeline-item { display: flex; justify-content: center; padding-bottom: 3rem; position: relative; }
.timeline-dot {
    width: 16px; height: 16px; background: var(--bg-deep); 
    border: 2px solid var(--neon-gold);
    border-radius: 50%; position: absolute; left: 50%; top: 0; 
    transform: translate(-50%, 5px); z-index: 2;
    box-shadow: 0 0 10px var(--neon-gold);
    transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
    background: var(--neon-gold);
    box-shadow: 0 0 20px var(--neon-gold);
    transform: translate(-50%, 5px) scale(1.2);
}
.timeline-content { width: 45%; padding: 0 2rem; position: relative; }
.timeline-date {
    width: 45%; text-align: right; padding: 0 2rem; 
    color: var(--neon-gold); 
    font-weight: 700; font-size: 0.9rem;
}

/* Alternancia Izquierda/Derecha */
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-item:nth-child(even) .timeline-date { text-align: left; }
.timeline-item:nth-child(even) .timeline-content { text-align: right; }

.timeline-role { 
    font-size: 1.3rem; font-weight: 700; margin-bottom: 0.2rem; display: block;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold));
    -webkit-background-clip: text; color: transparent;
}
.timeline-company { 
    font-size: 1rem; color: #fff; margin-bottom: 1rem; display: block; font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .about-grid { grid-template-columns: 1fr; }
    
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { 
        flex-direction: column; align-items: flex-start; margin-left: 20px; 
        border-left: 2px solid transparent; 
    }
    .timeline-dot { left: 20px; transform: translate(-50%, 0); top: 0; }
    .timeline-date, .timeline-content, 
    .timeline-item:nth-child(even) .timeline-date, 
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%; text-align: left; padding: 0 0 0 1.5rem;
    }
    .timeline-date { margin-bottom: 0.5rem; }
}