/* Estilos específicos para la página Acerca de Nosotros */

/* Sección de Hero con Parallax */
.about-hero {
    position: relative;
    background-image: url('/static/img/about-hero.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 8rem 1rem;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.about-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1.2s ease both;
}

.about-subtitle {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease both;
    animation-delay: 0.3s;
}

.about-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 1.5s ease both;
    animation-delay: 0.6s;
}

/* Sección de Estadísticas */
.stats-section {
    background-color: white;
    padding: 3rem 0;
    margin-top: -70px;
    position: relative;
    z-index: 3;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Estilos del encabezado de sección */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

.title-separator {
    width: 80px;
    height: 3px;
    margin: 0.5rem auto 1.5rem;
    background-color: var(--primary-color);
    position: relative;
    display: flex;
    justify-content: center;
}

.title-separator span {
    height: 8px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: -2.5px;
}

/* Estilos de la sección principal "Acerca de" */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    width: 110px;
    height: 110px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

/* Sección de línea de tiempo */
.timeline {
    margin-top: 2rem;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    top: 6px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Sección de misión y visión */
.mission-vision-section {
    padding: 5rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.mission-vision-section:before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background-color: rgba(52, 152, 219, 0.04);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    z-index: 0;
}

.mission-vision-section:after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: rgba(46, 204, 113, 0.04);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    z-index: 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.mission-box, .vision-box {
    background-color: white;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.box-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.vision-box .box-icon {
    color: var(--secondary-color);
}

.mission-box h2, .vision-box h2 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Sección de valores */
.values-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.value-item:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    top: 0;
    left: 0;
    right: 0;
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.value-item:hover .value-icon i {
    color: white;
    transform: rotateY(180deg);
}

.value-item h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Sección de testimonios */
.testimonials-section {
    padding: 5rem 0;
    background-color: white;
}

.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-content {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 5%;
    width: 30px;
    height: 30px;
    background-color: var(--light-bg);
    transform: rotate(45deg);
    box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-rating {
    margin-top: 1rem;
    color: #f39c12;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.1);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.author-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-prev, .testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.testimonial-prev:hover, .testimonial-next:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Sección del equipo */
.team-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.member-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.social-icon {
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.member-title:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.team-member:hover .member-title:after {
    width: 80px;
}

.member-bio {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Sección de clientes */
.clients-section {
    padding: 5rem 0;
    background-color: white;
}

.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 10px;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Sección de contacto */
.contact-cta-section {
    position: relative;
    padding: 5rem 0;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    overflow: hidden;
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.overlay-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0.8;
    transform: skewY(-3deg);
    transform-origin: top right;
    z-index: 1;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases de animación para elementos al hacer scroll */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.revealed {
    opacity: 1;
    transform: translate(0);
}

/* Media queries */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .about-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .clients-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .about-main-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .clients-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}