/* Historia Page Styles */
:root {
    --timeline-line-color: var(--brand-blue);
    --timeline-dot-color: var(--brand-blue);
    --timeline-date-bg: var(--brand-blue);
    --timeline-content-bg: white;
    --section-padding: 80px 0;
}

/* Hero Section */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(29, 29, 27, 0.6) 0%, rgba(50, 50, 117, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 76px; /* Space for navbar */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/quienes_somos/alunasa3.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(10%) saturate(110%);
    opacity: 0.5;
    z-index: 0;
    animation: subtle-zoom 20s infinite alternate;
}

@keyframes subtle-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(50, 50, 117, 0.9) 0%, rgba(42, 59, 143, 0.9) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.page-hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hero-scroll-indicator:hover {
    color: white;
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Main Content */
.historia-content {
    padding: var(--section-padding);
}

/* Introduction Section */
.intro-section {
    margin-bottom: 60px;
}

.section-title {
    color: var(--brand-blue);
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--brand-blue), rgba(50, 50, 117, 0.3));
    border-radius: 2px;
}

.intro-text {
    color: var(--brand-gray);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 80px;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, 
        rgba(50, 50, 117, 0), 
        rgba(50, 50, 117, 0.8) 10%, 
        rgba(50, 50, 117, 0.8) 90%, 
        rgba(50, 50, 117, 0)
    );
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 70px;
    display: flex;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--timeline-dot-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(50, 50, 117, 0.1);
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 100px;
    top: -60px;
}

.timeline-date .year {
    background: var(--timeline-date-bg);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.date-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #4a4a9e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 3;
}

.timeline-content {
    width: 45%;
    background: var(--timeline-content-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-width: 0 1px 1px 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 1px 0 0 1px;
}

.timeline-title {
    color: var(--brand-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-text {
    color: var(--brand-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.timeline-item:hover .date-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(50, 50, 117, 0.25);
}

/* Legacy Section */
.legacy-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(50, 50, 117, 0.03) 0%, rgba(50, 50, 117, 0.08) 100%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.legacy-text {
    color: var(--brand-gray);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #4a4a9e 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(50, 50, 117, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(50, 50, 117, 0.3);
    background: linear-gradient(135deg, #4a4a9e 0%, var(--brand-blue) 100%);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .page-hero {
        margin-top: 0;
        height: 50vh;
    }
    .page-hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
        display: none; /* Hide timeline dots on mobile */
    }
    
    .timeline-date {
        left: 30px;
        transform: translateX(0);
        top: -55px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -10px !important;
        border-width: 1px 0 0 1px !important;
        right: auto !important;
    }
    
    .timeline-item {
        margin-bottom: 80px;
    }
}

@media (max-width: 767px) {
    .page-hero {
        margin-top: 0;
        height: 40vh;
        min-height: 400px;
    }
    
    .page-hero-title {
        font-size: 2.2rem;
    }
    
    .page-hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .intro-text, .legacy-text {
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-text {
        font-size: 0.95rem;
    }
    
    .date-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-date .year {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .timeline-date {
        top: -50px;
        width: auto;
    }
    
    .timeline-item {
        margin-bottom: 70px;
    }
    
    .legacy-section {
        padding: 40px 20px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .page-hero-title {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .page-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .timeline {
        margin: 30px auto;
        padding: 10px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 15px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .timeline-date {
        left: 20px;
        top: -45px;
    }
    
    .timeline-item {
        margin-bottom: 60px;
    }
    
    .date-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .timeline-date .year {
        font-size: 0.75rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    
    .timeline-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .timeline-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .intro-section,
    .timeline-section {
        margin-bottom: 50px;
    }
    
    .historia-content {
        padding: 50px 0;
    }
}
