.content-us-1 {
    padding: 5em 2em;
}

.content-us-1 h2 {
    text-align: center;
    font-weight: bolder;
    font-size: 2.5em;
    text-transform: uppercase;
    color: #F98E2B;
    margin-bottom: 2em;
    margin-top: 0;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 5em;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

.grid-container::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: #FFFFFF;
}

/* Asignar orden a los elementos para pantalla grande */
.grid-container > *:nth-child(1) { order: 1; } /* Texto 1 */
.grid-container > *:nth-child(2) { order: 2; } /* Imagen 1 */
.grid-container > *:nth-child(3) { order: 3; } /* Imagen 2 */
.grid-container > *:nth-child(4) { order: 4; } /* Texto 2 */
.grid-container > *:nth-child(5) { order: 5; } /* Texto 3 */
.grid-container > *:nth-child(6) { order: 6; } /* Imagen 3 */

.text-info {
    color: #7e4115;
    font-size: 1.5em;
}

.text-info h1{
    font-weight: bold;
    color: #F98E2B;
    font-size: 1.6em;
    text-transform: uppercase;
}

.text-info h3 {
    font-weight: 500;
    margin-bottom: 1.5em;
    font-size: 1.2em;
    line-height: 1.6;
}

.text-info h3:last-child {
    margin-bottom: 0;
}

.image-info {
    position: relative;
    width: 100%;
    height: 350px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-info:hover {
    transform: translatex(-10px);
}

.image-front3,
.image-back3 {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-front3 {
    transform: translateX(0);
}

.image-back3 {
    transform: translateX(100%);
}

.image-info:hover .image-front3 {
    transform: translateX(-100%);
}

.image-info:hover .image-back3 {
    transform: translateX(0);
}

.image-front3-1,
.image-back3-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-front3-1 {
    transform: translateX(0);
}

.image-back3-1 {
    transform: translateX(100%);
}

.image-info:hover .image-front3-1 {
    transform: translateX(100%);
}

.image-info:hover .image-back3-1 {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-container {
        gap: 2em;
        padding: 0 2em;
    }
    
    .text-info {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .grid-container::before {
        display: none;
    }

    /* Reordenar elementos para móvil */
    .grid-container > *:nth-child(1) { order: 2; }  /* Texto 1 */
    .grid-container > *:nth-child(2) { order: 1; }  /* Imagen 1 */
    .grid-container > *:nth-child(3) { order: 3; }  /* Imagen 2 */
    .grid-container > *:nth-child(4) { order: 4; }  /* Texto 2 */
    .grid-container > *:nth-child(5) { order: 6; }  /* Texto 3 */
    .grid-container > *:nth-child(6) { order: 5; }  /* Imagen 3 */

    .content-us-1 {
        padding: 2em 1em;
    }

    .text-info {
        font-size: 1.1em;
        text-align: center;
    }

    .image-info {
        margin: 0 auto;
        max-width: 90%;
    }

    .content-us-1 h2 {
        font-size: 2em;
        margin-bottom: 1.5em;
    }
}

@media (max-width: 576px) {
    .content-us-1 h2 {
        font-size: 1.8em;
    }

    .text-info {
        font-size: 0.92em;
    }

    .image-info {
        height: 300px;
    }

    .image-info:hover .image-front3-1 {
        transform: translateX(-100%);
    }
    
    .image-info:hover .image-back3-1 {
        transform: translateX(0);
    }
}
/*-----------------------------------------------*/


/*------------------------------------------------*/
.content-us-2 {
    display: flex;
    justify-content: center;
    gap: 2em;
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.us-mission, .us-vision {
    flex: 1;
    padding: 2em;
    border-radius: 20px;
    transition: transform 0.3s ease;
    min-width: 250px;
    max-width: 500px;
    border: 1px solid white;
}

.us-mission:hover, .us-vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.us-mission h2, .us-vision h2 {
    color: #F98E2B;
    text-align: center;
    margin-bottom: 1em;
    line-height: 1.6;
    font-size: 2.5em;
    font-weight: bolder;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 0.5em;
    text-transform: uppercase;
}

.us-mission p, .us-vision p {
    color: #7e4115;
    text-align: center;
    margin: 0;
    font-size: 1.8em;
    font-weight: 500;
    line-height: 1.6;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .content-us-2 {
        flex-direction: column;
        align-items: center;
        padding: 1em;
        font-size: 0.61em;
    }

    .us-mission, .us-vision {
        width: 80%;
        margin-bottom: 1em;
    }
}

/*--------------------------------------------*/
/*values*/
.values {
    padding: 4em 2em;
    background-color: #feeddd;
}

.values-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.values-info h3 {
    color: #feeddd;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    padding: 1.5em;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.33% - 2em);
    min-width: 250px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Colores normales y hover para cada valor */
.values-info h3:nth-child(1) {
    background-color: #F98E2B;
}
.values-info h3:nth-child(1):hover {
    background-color: #aa0050;
}

.values-info h3:nth-child(2) {
    background-color: #aa0050;
}
.values-info h3:nth-child(2):hover {
    background-color: #3d1500;
}

.values-info h3:nth-child(3) {
    background-color: #638c1c;
}
.values-info h3:nth-child(3):hover {
    background-color: #8B4513;
}

.values-info h3:nth-child(4) {
    background-color: #3d1500;
    margin-top: 1em;
}
.values-info h3:nth-child(4):hover {
    background-color: #638c1c;
}

.values-info h3:nth-child(5) {
    background-color: #8B4513;
    margin-top: 1em;
}
.values-info h3:nth-child(5):hover {
    background-color: #F98E2B;
}

.values-info h3:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .values-info h3 {
        font-size: 1.2em;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .values {
        padding: 2em 1em;
    }

    .values-info {
        gap: 1.5em;
    }

    .values-info h3 {
        width: calc(50% - 1.5em);
        min-width: 180px;
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .values-info h3 {
        width: 100%;
        min-width: unset;
        margin-top: 0 !important;
        padding: 1.2em;
    }

    .values-info {
        gap: 1em;
    }
}

/*-------------------------------------*/
/*social commitment*/
.social-commitment {
    padding: 4em 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid white;
    border-radius: 20px;
}

.commitment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
    gap: 4em;
    position: relative;
}

/* Línea vertical divisoria */
.commitment-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #FFFFFF;
    transform: translateX(-50%);
}

.commitment-title h2 {
    color: #F98E2B;
    font-size: 2.5em;
    font-weight: bolder;
    line-height: 1.4;
    text-transform: uppercase;
}

.commitment-text {
    color: #7e4115;
    font-size: 1.5em;
    line-height: 1.6;
    font-weight: 500;
    text-align: right;
}

.commitment-text p {
    margin-bottom: 1.5em;
}

.commitment-text p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .commitment-title h2 {
        font-size: 2.2em;
    }

    .commitment-text {
        font-size: 1.2em;
    }

    .commitment-grid {
        gap: 3em;
    }
}

@media (max-width: 768px) {
    .social-commitment {
        padding: 3em 1.5em;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 0em;
    }

    .commitment-grid::before {
        display: none;
    }

    .commitment-title h2 {
        font-size: 2em;
        text-align: center;
        margin-bottom: 1em;
    }

    .commitment-text {
        font-size: 1.1em;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .social-commitment {
        padding: 2em 1em;
    }

    .commitment-title h2 {
        font-size: 1.7em;
    }

    .commitment-text {
        font-size: 1.1em;
    }
}

/*--------------------------------------------*/
/*team*/
.team-section {
    padding: 8em 2em;
    background-color: #feeddd;
}

.team-container {
    max-width: 1000px;
    margin: 0 auto;
}

.team-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4em;
    margin-bottom: 2em;
}

.team-header h2 {
    color: #F98E2B;
    font-size: 3em;
    font-weight: bolder;
    text-align: left;
}

.team-description {
    color: #7e4115;
    font-size: 1.5em;
    line-height: 1.6;
    text-align: right;
    font-weight: 500;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    position: relative;
    align-items: center;
}

.team-content::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #FFFFFF;
    transform: translateX(-50%);
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.member {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1em;
    padding: 1em;
    border-bottom: 1px solid white;
}

.member-name {
    color: #638c1c;
    font-size: 1.4em;
    font-weight: bold;
    text-transform: uppercase;
}

.member-title {
    color: #638c1c;
    font-size: 1.1em;
}

.team-image {
    position: relative;
    width: 90%;
    height: 350px; 
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.team-image:hover{
    transform: translateX(20px);
}

.image-front-t1, .image-back-t1 {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-front-t1 {
    transform: translateX(0);
}

.image-back-t1 {
    transform: translateX(-100%);
}

.team-image:hover .image-front-t1 {
    transform: translateX(100%);
}

.team-image:hover .image-back-t1 {
    transform: translateX(0);
}

/* Ajustes responsive */
@media (max-width: 992px) {
    .team-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .team-image {
        height: 250px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .team-image {
        height: 200px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .team-header h2 {
        font-size: 2.5em;
    }
    
    .team-description {
        font-size: 1.2em;
    }
    
    .member-name {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 3em 1.5em;
    }

    .team-header {
        grid-template-columns: 1fr;
        gap: 2em;
        text-align: center;
    }

    .team-header h2 {
        text-align: center;
    }

    .team-description {
        text-align: center;
    }

    .team-content {
        grid-template-columns: 1fr;
        gap: 3em;
    }

    .team-content::before {
        display: none;
    }

    .team-image {
        min-height: 300px;
        order: -1;
    }
}

@media (max-width: 576px) {
    .team-section {
        padding: 2em 1em;
    }

    .team-header h2 {
        font-size: 2em;
    }

    .team-description {
        font-size: 1.1em;
    }

    .member {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5em;
        padding-left: 0px;
    }

    .member-name {
        font-size: 1.2em;
    }

    .member-title {
        font-size: 1em;
    }
}