/* Variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f5f5f4;
    --text-main: #1c1917;
    --text-muted: #57534e;
    --white: #ffffff;
    --glass-bg: rgba(245, 245, 244, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* Utilidades Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Header & Navegación (Glassmorphism) */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all var(--transition-speed);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    display: none;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-contact:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .btn-contact {
        display: inline-block;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--card-shadow);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
    color: var(--primary-color);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Tarjetas (Cards) */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Habilidades y Chart */
.chart-container {
    position: relative;
    width: 100%;
    height: 350px;
}

.skills-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-muted);
}
.skills-list li:last-child {
    border-bottom: none;
}
.skills-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Timeline (Experiencia) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 3px solid rgba(37, 99, 235, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.65rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-desc {
    list-style: none;
    padding-left: 1rem;
}

.timeline-desc li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}
.timeline-desc li::before {
    content: '-';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-main);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer p {
    color: #a8a29e;
    margin-bottom: 2rem;
}

.footer .btn-contact {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.footer-copy {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #78716c;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Ajustes Responsive Especiales */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .card { padding: 1.5rem; }
}
