/* Historia Page Styles */

.historia-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.historia-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.historia-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.historia-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.6;
}

/* Timeline Section */
.historia-timeline {
    padding: 80px 0;
    position: relative;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-line {
    display: none; /* Oculto en desktop donde los elementos alternan */
}

@media (max-width: 768px) {
    .timeline-line {
        display: block; /* Visible solo en móvil donde todo está alineado */
        position: absolute;
        left: 30px;
        top: 30px;
        bottom: 30px;
        width: 3px;
        background: linear-gradient(180deg, rgba(0, 102, 255, 0.6) 0%, rgba(0, 102, 255, 0.3) 100%);
        z-index: 1;
        border-radius: 2px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .marker-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.6);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.3);
}

.timeline-year {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0066ff;
    background: rgba(0, 102, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.timeline-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 102, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.highlight-tag i {
    color: #0066ff;
    font-size: 0.75rem;
}

.timeline-item-present .marker-icon {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6f 100%);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 255, 136, 0.7);
    }
}

/* Values Section */
.historia-values {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.3);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Timeline line styles moved above */

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
        margin: 0;
        width: 50px;
        height: 50px;
    }

    .marker-icon {
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .historia-hero {
        padding: 100px 0 60px;
    }

    .historia-timeline {
        padding: 60px 0;
    }

    .historia-values {
        padding: 60px 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .marker-icon {
        font-size: 1rem;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-highlights {
        flex-direction: column;
    }
}

