:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --bg: #050508;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* NAVBAR */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 10%; position: fixed; width: 100%; top: 0;
    backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); z-index: 1000;
}

.logo { font-family: 'JetBrains Mono'; font-weight: bold; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: #aaa; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.menu-toggle { display: none; }

/* HERO */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 10%;
}

.status-badge {
    background: rgba(0, 255, 136, 0.1); color: #00ff88; padding: 8px 20px;
    border-radius: 50px; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 30px; border: 1px solid rgba(0, 255, 136, 0.2);
}

.dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 10px #00ff88; }

h1 { font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
h1 span { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { font-family: 'JetBrains Mono'; color: #888; font-size: 1rem; margin-bottom: 40px; }

.header-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }

.btn-glow {
    background: var(--primary); color: #000; padding: 12px 30px; border-radius: 8px;
    text-decoration: none; font-weight: bold; box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.social-hero { display: flex; gap: 15px; }
.social-hero a { color: white; font-size: 1.4rem; transition: 0.3s; }
.social-hero a:hover { color: var(--primary); }

/* SECCIONES */
.container { padding: 80px 10%; text-align: center; }
.section-title { margin-bottom: 50px; font-size: 1.8rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 10px; }

.skills-grid, .contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px;
}

.skill-card, .contact-card {
    background: var(--card-bg); border: 1px solid var(--border); padding: 35px;
    border-radius: 15px; transition: 0.4s; text-decoration: none; color: white;
}

.skill-card:hover, .contact-card:hover { border-color: var(--primary); transform: translateY(-8px); background: rgba(0, 242, 255, 0.02); }
.skill-card i, .contact-card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; }

.project-card-v4 {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.5) 100%);
    padding: 50px 30px; border-radius: 20px; border: 1px solid var(--border);
}

.btn-outline {
    display: inline-block; margin-top: 25px; padding: 10px 25px; border: 1px solid var(--primary);
    color: var(--primary); text-decoration: none; border-radius: 5px; transition: 0.3s;
}
.btn-outline:hover { background: var(--primary); color: #000; }

.footer { padding: 30px; text-align: center; color: #444; font-size: 0.8rem; border-top: 1px solid var(--border); }

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    nav { padding: 15px 5%; }
    .menu-toggle { display: block; font-size: 1.4rem; cursor: pointer; color: var(--primary); }

    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 65px; left: 0; width: 100%; background: rgba(5, 5, 8, 0.98);
        padding: 30px 0; border-bottom: 1px solid var(--border); gap: 20px; text-align: center;
    }

    .nav-links.active { display: flex !important; animation: fadeIn 0.3s; }
    .container { padding: 60px 5%; }
    .header-actions { flex-direction: column; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
