/* about.css - Estilos específicos para la página Nosotros */

/* Hero Section */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), 
                url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center;
    background-size: cover;
    color: var(--dark);
    text-align: center;
    padding: 100px 0;
    margin-top: 80px;
}

.about-hero .section-pretitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block; /* Para que la línea solo tenga el ancho del texto */
}

.about-hero .section-pretitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.about-hero .section-title {
    color: var(--secondary);
    text-shadow: none;
}

.about-hero .section-title::after {
    display: none; /* Elimina la línea debajo del título */
}

.about-hero .section-subtitle {
    color: var(--gray);
    max-width: 700px; /* Limita el ancho para mejor legibilidad */
    margin-left: auto;
    margin-right: auto; /* Centra el elemento */
    padding: 0 20px; /* Añade padding en móviles */
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Intro */
.about-intro {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-intro-content {
    flex: 1;
}

.about-intro-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-intro:hover .about-intro-image img {
    transform: scale(1.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
}

.timeline-year {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-year {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
}

.timeline-content h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Team */
.team-section {
    background-color: var(--light);
    padding: 80px 0;
}

.team-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.team-member {
    flex: 0 0 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: auto;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-position {
    margin: 10px 0;
    color: var(--primary);
    font-weight: 600;
}

.member-bio {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .about-intro {
        flex-direction: column;
    }
    
    .about-intro-image {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        right: auto;
        transform: none;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .about-hero {
        height: auto;
        padding: 100px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}