/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    color: #003366;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #B39B59;
}

.bg-light {
    background-color: #ffffff;
}

.text-white {
    color: #fff !important;
}

/* Header & Navigation */
.site-header {
    background-color: #003366;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0;
}

.logo span {
    font-size: 0.9rem;
    color: #B39B59;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: #B39B59;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.7)), url('https://source.unsplash.com/random/1920x1080/?politics,justice') no-repeat center center/cover;
    /* Fallback background color if image fails */
    background-color: #002244;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 40px 20px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-col-left {
    width: 70%;
    padding-right: 30px;
    text-align: left;
}

.hero-col-right {
    width: 30%;
    display: flex;
    justify-content: center;
}

.hero-col-right img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    background-color: #B39B59;
    color: #fff;
    border: 2px solid #B39B59;
}

.btn-primary:hover {
    background-color: transparent;
    color: #B39B59;
}

/* Biography Section */
.bio-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.bio-text {
    flex: 2;
    font-size: 1.1rem;
    text-align: justify;
}

.bio-text p {
    margin-bottom: 20px;
}

.bio-details {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #003366;
}

.bio-details h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.bio-details li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.bio-details strong {
    color: #003366;
    display: block;
}

/* Education Section */
.formacion-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.formacion-col-left {
    width: 30%;
    display: flex;
    justify-content: center;
}

.formacion-col-left img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.formacion-col-right {
    width: 70%;
}

.timeline {
    position: relative;
    max-width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #B39B59;
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #003366;
    border-radius: 50%;
}

.timeline-item h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.timeline-item .date {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-item .institution {
    font-style: italic;
    color: #555;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.experience-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #B39B59;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.experience-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    min-height: 50px;
    /* Align heights */
}

.experience-card .location {
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.experience-card .date {
    color: #888;
    font-size: 0.9rem;
}

/* Achievements List */
.achievements-list {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.achievements-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.achievements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #B39B59;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    background-color: #003366;
    color: #fff;
    text-align: center;
}

.contact-section .section-title::after {
    background-color: #fff;
}

.contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    flex: 1;
    min-width: 250px;
}

.contact-item h3 {
    color: #B39B59;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: #002244;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 5px 0;
}

/* Responsive Styles */
@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: static;
        /* Removes sticky positioning on mobile */
    }

    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-container,
    .formacion-container {
        flex-direction: column;
    }

    .hero-col-left {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .formacion-col-left,
    .formacion-col-right {
        width: 100%;
    }

    .formacion-col-left {
        margin-bottom: 30px;
    }

    .hero-col-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-col-right img {
        max-width: 250px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .bio-content {
        flex-direction: column;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-item::before {
        left: 1px;
    }

    .section-title {
        font-size: 2rem;
    }
}