/* === HISTORIA PAGE SPECIFIC STYLES === */

:root {
    --vintage-gold: #d4af37;
    --vintage-brown: #8b4513;
    --vintage-cream: #f4f1e8;
    --vintage-text: #5a4a3a;
}

/* === HERO SECTION HISTORIA === */
.hero.historia-hero {
    background: linear-gradient(rgba(212, 175, 55, 0.9), rgba(139, 69, 19, 0.8)), 
                url('../images/historia-background.svg');
    min-height: 70vh;
    margin-top: 70px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-years {
    font-size: 4rem;
    font-weight: 900;
    color: var(--vintage-gold);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

/* === TIMELINE SECTION === */
.timeline-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--vintage-gold), var(--vintage-brown));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
    text-align: left;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
    background: linear-gradient(45deg, var(--vintage-gold), var(--vintage-brown));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-text {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

.timeline-highlight {
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(139, 69, 19, 0.1));
    border-left: 4px solid var(--vintage-gold);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-style: italic;
}

/* === MILESTONE STYLING === */
.milestone {
    background: linear-gradient(135deg, var(--vintage-gold), var(--vintage-brown));
}

.milestone .timeline-content {
    background: linear-gradient(135deg, #fff8e7, #faf7f0);
    border: 2px solid var(--vintage-gold);
}

.milestone .timeline-title {
    color: var(--vintage-brown);
}

.milestone .timeline-year {
    background: linear-gradient(45deg, var(--vintage-brown), #654321);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
    font-size: 1.2rem;
    padding: 10px 25px;
}

/* === CURRENT SECTION === */
.current-section {
    padding: 80px 0;
    background: var(--white);
}

.current-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.current-section .stat-card {
    /* background: linear-gradient(135deg, var(--primary-color), #f1f6f7); */
    background: linear-gradient(135deg, var(--vintage-gold), var(--vintage-brown));
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.current-section .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.current-section .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.current-section .stat-label {
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* === BACK BUTTON === */
.back-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 126, 34, 0.6);
}

/* === ANIMATION DELAYS === */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }

/* === ACTIVE NAV LINK === */
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* === RESPONSIVE DESIGN FOR HISTORIA === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-years {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
    }

    .current-stats {
        grid-template-columns: 1fr;
    }

    .back-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .current-section .stat-card {
        padding: 1.5rem;
    }

    .timeline-year {
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-text {
        font-size: 0.9rem;
    }
}

/* === SPECIAL EFFECTS === */
.timeline-content::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--vintage-gold);
    border: 3px solid var(--white);
    border-radius: 50%;
    top: 25px;
    box-shadow: 0 0 0 3px var(--vintage-gold);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -7.5px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -7.5px;
}

.milestone .timeline-content::before {
    background: var(--vintage-brown);
    box-shadow: 0 0 0 3px var(--vintage-brown);
    width: 20px;
    height: 20px;
}

.milestone.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.milestone.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

@media (max-width: 768px) {
    .timeline-content::before {
        left: -37.5px !important;
        right: auto !important;
    }
    
    .milestone .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }
}