/* Configuration & Colors */
:root {
    --primary-green: #7AB800;
    --dark-navy: #262E44;
    --light-grey: #F8F9FA;
    --text-muted: #666666;
    --white: #FFFFFF;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-navy);
    margin: 0;
    padding: 0;
}

/* Header & Navigation */
.site-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.main-navigation li.current-menu-item a,
.main-navigation a:hover {
    color: var(--primary-green);
}

/* Dropdowns */
.main-navigation ul ul {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    min-width: 150px;
}

.main-navigation ul li:hover>ul {
    display: block;
}

.main-navigation ul ul a {
    padding: 8px 15px;
    display: block;
}


/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay for text readability */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background-color: var(--primary-green);
    color: white;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #6a9f00;
    color: white;
    transform: translateY(-2px);
}

/* Intro Section */
.intro-section {
    background-color: var(--white);
}

.green-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 0 auto;
}

.intro-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
}

.highlight-green {
    color: var(--primary-green);
}

.intro-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.btn-iniciativa {
    background-color: var(--primary-green);
    color: white;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

.btn-iniciativa:hover {
    background-color: #6a9f00;
    color: white;
    box-shadow: 0 4px 15px rgba(122, 184, 0, 0.3);
}

/* Timeline Page */
.timeline-container {
    padding: 40px 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-green);
    z-index: 1;
}

.timeline-row {
    position: relative;
    z-index: 2;
}

.timeline-year-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 0 8px white, 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.timeline-box {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.timeline-description p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-box:hover {
    transform: translateY(-5px);
}

.timeline-image img {
    width: 100%;
    object-fit: cover;
    max-height: 250px;
}

/* Timeline Gallery & Dots */
.timeline-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.timeline-gallery-grid.single-image {
    grid-template-columns: 1fr;
}

.timeline-gallery-grid.single-image .timeline-gallery-item img {
    max-height: 450px;
}


.timeline-gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-gallery-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-dot {
    width: 15px;
    height: 15px;
    background-color: var(--primary-green);
    border-radius: 50%;
    margin: 10px auto;
    box-shadow: 0 0 0 5px white, 0 2px 5px rgba(0, 0, 0, 0.1);
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }

    .header-flex {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background: #fdfdfd;
        display: block;
        /* Show submenus on mobile for simplicity */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .intro-text {
        font-size: 1.2rem;
    }

    .hero-section {
        height: 50vh;
    }
}

/* Responsive Timeline */
@media (max-width: 767px) {
    .timeline-line {
        left: 30px;
        transform: none;
    }

    .timeline-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 60px;
        margin-bottom: 30px !important;
    }

    .timeline-node-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 60px !important;
        justify-content: flex-start !important;
    }

    .timeline-dot {
        margin-left: 22px;
        margin-top: 12px;
    }

    .timeline-year-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
        box-shadow: 0 0 0 5px white, 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .timeline-content-wrapper,
    .timeline-image-wrapper {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .timeline-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer Proposal */
.site-footer {
    background-color: #F8F8F8;
    padding: 40px 0;
    border-top: 1px solid #EEEEEE;
}

.footer-text {
    font-size: 0.9rem;
    color: #999999;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.footer-social-link:hover {
    background-color: var(--primary-green);
    color: white;
}

/* La Iniciativa Template Styles */
.iniciativa-template {
    font-family: 'Montserrat', sans-serif;
    color: #555;
    background-color: #fff;
}

.max-width-800 {
    max-width: 800px;
}

.max-width-1000 {
    max-width: 1000px;
}

.gold-icon {
    font-size: 3rem;
    color: #d4a017;
}

.gold-text {
    color: #daa520;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

.objective-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.meta-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.iniciativa-card {
    background-color: #dfa837;
    border: none;
    transition: transform 0.3s ease;
}

.iniciativa-card:hover {
    transform: translateY(-5px);
}

.card-icon-circle {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dfa837;
    font-size: 1.8rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-description p {
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* FAQ Accordion Styles */
.faq-section .accordion-button {
    background-color: transparent;
    box-shadow: none;
    padding-left: 0;
}

.faq-section .accordion-button:not(.collapsed) {
    color: inherit;
    background-color: transparent;
}

.faq-section .accordion-item {
    border-bottom: 1px solid #eee !important;
}

.faq-section .accordion-button::after {
    display: none;
}


/* Enhanced 'La Iniciativa' Styles */
.gold-text-design {
    color: #daa520;
    font-size: 1.25rem;
    line-height: 1.4;
}

.bg-light-gray-design {
    background-color: #f5f6f7;
}

.meta-title-design {
    letter-spacing: 3px;
    font-size: 1rem;
    font-weight: 500;
}

.iniciativa-card-design {
    background-color: #dfa837;
    border: none;
    transition: transform 0.2s ease-in-out;
}

.iniciativa-card-design:hover {
    transform: scale(1.02);
}

.gold-icon-card {
    color: #dfa837;
    font-size: 1.5rem;
}

.card-icon-circle {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.x-small {
    font-size: 0.6rem;
}

.iniciativa-template .accordion-button:not(.collapsed) span {
    color: #333 !important;
}

.iniciativa-template .accordion-button i {
    transition: transform 0.2s;
}

.iniciativa-template .accordion-button:not(.collapsed) i {
    transform: scale(0.8);
}

/* FAQ Design Refinement */
.faq-icon-square {
    width: 24px;
    height: 24px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) .faq-icon-square {
    background-color: #dfa837;
}

.accordion-button .minus-icon {
    display: none;
}

.accordion-button:not(.collapsed) .plus-icon {
    display: none;
}

.accordion-button:not(.collapsed) .minus-icon {
    display: block;
}

.faq-section .accordion-button span {
    font-size: 1.1rem;
}

.faq-section .accordion-body {
    border-left: 1px solid #eee;
    margin-left: 12px;
}

/* Force FAQ display when 'show' class is present */
.iniciativa-template .accordion-collapse.show {
    display: block !important;
}

.iniciativa-template .accordion-collapse:not(.show) {
    display: none !important;
}

/* Custom Hero Title for 'La Iniciativa' */
.custom-hero-title-box {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 25px;
    display: inline-block;
}

.custom-hero-title-box .hero-title {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: none;
}

/* Seguimiento Template Accordion */
.seguimiento-template .accordion-collapse.show {
    display: block !important;
}

.seguimiento-template .accordion-collapse:not(.show) {
    display: none !important;
}

.seguimiento-accordion-section .accordion-button span {
    font-size: 1.1rem;
    color: #333;
}

.seguimiento-accordion-section .accordion-body {
    border-left: 1px solid #eee;
    margin-left: 12px;
    padding-top: 15px;
}

/* One Page Specific Styles */
.onepage-template section {
    scroll-margin-top: 80px;
    /* For anchor scrolling */
}

.hero-full {
    height: 100vh !important;
}

@media (max-width: 991px) {
    .onepage-template .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .onepage-template .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .onepage-template .hero-title {
        font-size: 1.8rem;
    }
}

.history-banner {
    background: linear-gradient(rgba(38, 46, 68, 0.8), rgba(38, 46, 68, 0.8)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.history-banner h2 {
    letter-spacing: 2px;
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    transform: translateY(-3px);
}

.site-branding img { max-height: 80px; width: auto; }
