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

:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

header h1 {
    font-size: 2.4em;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.tagline {
    font-size: 1em;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Nav */
nav {
    background: var(--white);
    padding: 16px 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Sections */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background: var(--white);
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 24px;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

section p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 1.05em;
}

/* Skills */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.skill {
    background: var(--bg);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.skill h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: var(--primary);
}

.skill p {
    font-size: 0.95em;
}

/* Timeline */
.timeline {
    margin-top: 24px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-date {
    min-width: 100px;
    font-weight: 600;
    color: var(--accent);
    padding-top: 4px;
}

.timeline-content h3 {
    font-size: 1.2em;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-content .company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Contact */
#contacto {
    text-align: center;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s, transform 0.3s;
    margin-top: 16px;
}

.btn:hover {
    background: #c73650;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 24px 0;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 50px 0 40px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .avatar {
        width: 90px;
        height: 90px;
        font-size: 32px;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.9em;
    }

    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    section {
        padding: 40px 0;
    }
}
