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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER FIJO */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #3b82f6;
}

.btn-lab {
    background: #3b82f620;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Hamburguesa (móvil) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1e293b;
    margin: 3px 0;
    transition: 0.3s;
}

/* HERO */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* Secciones */
.section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: #f1f5f9;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Card Sobre mí */
.card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Timeline experiencia */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #2563eb;
}

.date {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.9rem;
}

.timeline-item h3 {
    margin: 0.5rem 0;
}

.skill-card span {
    display: block;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.25rem;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.skill-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: #cbd5e1;
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        left: 0;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .footer-content {
        justify-content: center;
        flex-direction: column;
    }
}
