:root {
    --bg: #0a0a0c;
    --card-bg: #16161a;
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --text: #e0e0e0;
    --accent: #00ff88;
}

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

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

/* --- EFECTOS DE REVELACIÓN (GSAP Style) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* --- NAVEGACIÓN --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1e1e26 0%, #0a0a0c 100%);
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 120px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: inline-block;
    border-bottom: 4px solid var(--primary);
}

/* --- GRID DE SERVICIOS/SKILLS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* --- TIMELINE (Educación/Experiencia) --- */
.timeline-item {
    border-left: 2px solid var(--primary);
    padding-left: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
}

/* --- CONTACTO --- */

.btn {
    padding: 15px 30px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 50px;
    color: #555;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    nav {
        padding: 20px;
    }

    nav ul {
        display: none;
    }
}
