/* Estilos para la sección Nosotros */
:root {
    --color-primario: #333333;
    --color-secundario: #555555;
    --color-acento: #F20784;
    --color-fondo: #ffffff;
    --color-texto: #333333;
    --color-texto-claro: #777777;
    --blanco: #ffffff;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nosotros-section {
    padding: 2rem 5% 4rem;
    background-color: var(--blanco);
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.nosotros-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Contenedor del título */
.nosotros-title-container {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

/* Contenedor de la descripción */
.nosotros-description-container {
    flex: 2;
    min-width: 300px;
}

/* Estilos base para el título */
.section-title {
    color: var(--color-primario);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--color-acento);
    border-radius: 4px;
}

.section-description {
    color: var(--color-secundario);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    text-align: left;
    text-justify: inter-word;
    hyphens: auto;
}

/* Estilos para resaltar texto */
.highlight-text {
    color: #F20784;
    font-weight: 600;
}

/* Estilos para la sección del equipo */
.team-section {
    padding: 0;
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 0px;
}

.team-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-section .section-title {
    text-align: center;
    width: 100%;
    margin: 20px auto 30px;
    position: relative;
    font-size: 2.8rem;
    color: var(--color-primario);
    padding: 0 20px;
    z-index: 2;
    font-weight: 600;
}

.team-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-acento);
    border-radius: 2px;
}

.team-carousel {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 80px;
}

.team-carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.team-slide {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    opacity: 0;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
    top: 0;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.team-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.1s;
}

.team-slide.next {
    transform: translateX(110%);
    opacity: 0;
}

.team-slide.prev {
    transform: translateX(-110%);
    opacity: 0;
}

.team-slide.active.next,
.team-slide.active.prev {
    transform: translateX(0);
    opacity: 1;
}

.team-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding-top: 30px;
}

.team-image {
    flex: 0 0 350px;
    max-width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    margin-right: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 0;
}

.team-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.team-info {
    flex: 2 1 400px;
    padding: 2rem 0;
    background: transparent;
    box-shadow: none;
    padding: 20px;
    margin-top: 60px;
}

.team-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.team-position {
    color: var(--color-acento);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.team-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
}

.carousel-control:hover {
    background: var(--color-acento);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Media Queries - Ordenadas de mayor a menor */
@media (max-width: 1200px) {
    .section-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .nosotros-section {
        padding: 4rem 5%;
    }
    
    .nosotros-section .container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 3.5rem;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 910px) {
    .team-carousel {
        padding: 0 !important;
        margin: 0;
        max-width: 100%;
        overflow: visible;
    }
    
    .team-slide {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0;
        margin: 0;
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .team-slide:not(.active) {
        display: none;
    }
    
    .team-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    .team-image img {
        width: 100% !important;
        height: auto;
        max-height: none !important;
        object-fit: contain;
        object-position: top center;
        display: block;
    }
    
    .carousel-control {
        top: 40%;
    }
    
    .carousel-control.prev {
        left: 15px;
    }
    
    .carousel-control.next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .nosotros-section {
        padding: 2rem 5% 3rem;
        min-height: auto;
        padding-bottom: 80px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .team-section .section-title {
        font-size: 2.2rem;
        margin: 25px auto 5rem;
    }

    .team-carousel {
        margin: 0 auto 2rem;
        padding: 0 15px;
    }

    .team-content {
        padding: 1rem 0;
        margin-top: 0;
    }

    .team-info {
        margin-top: 20px;
        padding: 15px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--color-acento);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        opacity: 1 !important;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-control.prev {
        left: 5px !important;
    }

    .carousel-control.next {
        right: 5px !important;
    }
    
    .team-slide {
        margin-bottom: 2rem;
    }
    
    .team-content {
        padding: 0.5rem 1rem 1.5rem;  
        margin-top: -1rem;  
        padding-top: 0 !important;
    }
    
    .section-description {
        font-size: 1.1rem;
        line-height: 1.7;
        color: #444;
        text-align: left;
        padding: 0 5px;
    }
    
    .team-info h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--color-primario);
    }
    
    .team-position {
        font-size: 1rem;
        color: var(--color-acento);
        font-weight: 600;
        margin-bottom: 1rem;
        display: block;
    }
    
    .team-description {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
        text-align: left;
        margin-top: 1rem;
    }
    
    .team-info {
        margin-top: 0.5rem;  
    }
    
    .team-image {
        margin-top: -2rem;  
        margin-bottom: 0.5rem;
    }
    
    .highlight-text {
        color: var(--color-acento);
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .team-section .section-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) {
    .team-section {
        padding-bottom: 80px;
    }
}