:root {
    --color-primary: #59398e;
    --color-secondary: #a989d9;
    --color-text: #3a3a3a;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', display;
    font-weight: normal;
    text-transform: capitalize;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vw;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
}

.logo {
    font-family: 'Bebas Neue', display;
    font-size: 28px;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-left: 24px;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}


.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(89, 57, 142, 0.8), rgba(89, 57, 142, 0.8)), url('imagen-fondo-biografia.png') no-repeat center center;
    background-size: cover;
    color: var(--color-white);
    text-align: center;
    width: 100vw;
    min-width: 320px;
    aspect-ratio: 1920/600;
    height: auto;
    min-height: 180px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    margin-bottom: 2vw;
    padding-left: 8vw;
    padding-right: 2vw;
    text-align: left;
    width: 100%;
    word-break: break-word;
}
.hero-title {
    text-align: center;
    font-family: 'Bebas Neue', 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0 auto 2vw auto;
    padding: 0 5vw;
    max-width: 900px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        padding: 0 3vw;
        max-width: 98vw;
    }
    .hero {
        aspect-ratio: 16/7;
        min-height: 120px;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(1.2rem, 10vw, 2rem);
        padding: 0 2vw;
        margin-bottom: 4vw;
    }
    .hero {
        aspect-ratio: 16/9;
        min-height: 80px;
        margin-bottom: 24px;
    }
}
.hero-title {
    text-align: center;
}

/* Content Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
}

.column {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 19/20;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 6px 32px 0 rgba(89,57,142,0.12), 0 1.5px 6px 0 rgba(0,0,0,0.08);
    border: 4px solid #fff;
    background-color: #e0e0e0;
    transition: box-shadow 0.3s, transform 0.3s;
    display: block;
    margin: 0 auto;
    max-height: 60vw;
}
.profile-image:hover {
    box-shadow: 0 12px 48px 0 rgba(89,57,142,0.18), 0 3px 12px 0 rgba(0,0,0,0.12);
    transform: scale(1.03);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--color-light);
    border-radius: 6px;
    position: relative;
}

.timeline-year {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 3vw;
    }
    .hero-title {
        padding-left: 4vw;
    }
    .two-column {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        background: linear-gradient(rgba(89, 57, 142, 0.8), rgba(89, 57, 142, 0.8)), url('imagen-fondo-biografia.png') no-repeat center center;
        background-size: cover;
        width: 100vw;
        min-width: 320px;
        aspect-ratio: 1920/600;
        height: auto;
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .profile-image {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 24px;
        margin: 0 auto 24px auto;
        display: block;
        background: #fff;
        box-sizing: border-box;
        aspect-ratio: unset !important;
        transform: none !important;
        rotate: 0deg !important;
        max-height: 60vw;
    }
    html, body {
        width: 100vw;
        overflow-x: hidden;
    }
    .container {
        padding: 0 4vw;
        box-sizing: border-box;
    }
    .two-column {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
@media (max-width: 480px) {
    .container {
        padding: 0 2vw;
    }
    .hero-title {
        font-size: 1.5rem;
        padding-left: 2vw;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .profile-image {
        max-width: 98vw !important;
        max-height: 40vw;
    }
    .timeline-content {
        padding: 10px;
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    .hero-title {
        font-size: 4rem;
    }
}
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100vw;
        background-color: var(--color-white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 999;
        margin: 0;
        border-radius: 0 0 18px 18px;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }
    .menu-toggle {
        display: block;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }
    .timeline-item:nth-child(odd)::after {
        right: auto;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}