/* Estilos modernos para la sección Sobre Nosotros */
.about-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #f9f9f9;
}

/* Decoración de fondo */
.about-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
}

.about-shape {
    position: absolute;
    border-radius: 50%;
}

.about-shape-1 {
    top: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
}

.about-shape-2 {
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--primary-orange);
}

.about-shape-3 {
    top: 20%;
    right: 20%;
    width: 150px;
    height: 150px;
    background: var(--secondary-yellow);
}

/* Encabezado con estilo moderno */
.about-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.about-subtitle {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 15px;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
    position: relative;
}

.about-title-decoration {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    border-radius: 2px;
    margin: 0 auto;
}

.about-intro {
    max-width: 800px;
    margin: 30px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Historia con timeline */
.about-history {
    position: relative;
    margin: 80px 0;
    z-index: 1;
}

.history-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--black);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-orange));
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    padding: 0 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary-orange);
    top: 0;
    box-shadow: 0 0 15px rgba(233, 79, 16, 0.5);
}

.timeline-item:nth-child(odd)::before {
    right: -14px;
}

.timeline-item:nth-child(even)::before {
    left: -14px;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    max-width: 400px;
    display: inline-block;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: right;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.timeline-title {
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-text {
    color: #555;
    line-height: 1.6;
}

/* Tarjetas de características */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: -40px auto 20px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-orange));
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.feature-content {
    padding: 0 30px 30px;
    text-align: center;
}

.feature-title {
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Contadores de estadísticas */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 80px 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    padding: 60px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 20px;
    position: relative;
    flex: 1 1 auto;
    min-width: 150px;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    display: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-text {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Equipo de trabajo */
.about-team {
    margin: 80px 0;
    position: relative;
    z-index: 1;
}

.team-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--black);
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-member {
    width: 300px;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-name {
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-position {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.team-bio {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--primary-blue);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Testimonios */
.about-testimonials {
    margin: 80px 0;
    position: relative;
    z-index: 1;
}

.testimonials-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--black);
}

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

.testimonial-item {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 20px 10px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--black);
    font-size: 1.1rem;
}

.testimonial-company {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.testimonial-rating {
    margin: 15px 0;
    color: #FFD700;
    font-size: 1.2rem;
}

/* Animaciones con scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

.fadeInUp-delay-1 {
    animation-delay: 0.2s;
}

.fadeInUp-delay-2 {
    animation-delay: 0.4s;
}

.fadeInUp-delay-3 {
    animation-delay: 0.6s;
}

.fadeInUp-delay-4 {
    animation-delay: 0.8s;
}

/* Adaptaciones para dispositivos móviles */
@media (max-width: 992px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        float: none;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        width: 100%;
    }
    
    .stat-item::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 0.9rem;
    }
    
    .about-intro {
        font-size: 1rem;
    }
    
    .history-title, 
    .team-title, 
    .testimonials-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .about-title {
        font-size: 1.8rem;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
    
    .about-stats {
        grid-template-columns: repeat(1, 1fr);
    }
}
