/* GENERAL STYLES & RESET */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    color: #554596;
    font-size: 1em;
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #f9f9fa;
}

body b {
    color: #be0169;
}

/* BARRA DE NAVEGACIÓN */
nav {
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    position: relative;
    height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: 0.75s ease-in-out;
}

.logo {
    margin-left: 30px; /* Margen izquierdo para pantallas grandes */
}

.logo img {
    height: 60px; /* Tamaño del logo para pantallas grandes */
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li {
    list-style-type: none;
    text-transform: uppercase;
    font-size: 0.85em;
}

nav ul li a {
    text-decoration: none;
    color: #554596;
}

nav ul li a:hover {
    color: #E6007E;
}

.specialItem {
    padding: 10px 15px;
    border: 1px solid #554596;
}

.specialItem:hover {
    border: 1px solid #E6007E;
}

.hamburguer {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #554596;
}

/* SECCIÓN HERO (JUMBOTRON) */
.jumbotron {
    background-image: url('IMAGES/jumbotron.jpg');
    background-size: cover;
    background-attachment: fixed;
    height: 800px;
    position: relative;
    overflow: hidden;
}

.logoJumbo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 120px;
    z-index: 10;
    opacity: 0;
    animation: logo-fade-in 3s ease-out forwards,
               logo-slide-up-after-fade 2s ease-out 2.5s forwards;
}

.jumbo-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 80%;
    color: #554596;
}

#jumbo-heading {
    opacity: 0;
    animation: text-zoom-out 2.5s ease-out forwards 3s,
               fade-out-and-hide 1.5s ease-out 5.5s forwards;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: -100px;
}

#jumbo-subheading {
    opacity: 0;
    animation: text-zoom-out 2s ease-out forwards 7s;
    font-size: 2.5em;
    font-weight: bold;
    color: #554596;
    margin-bottom: -100px;
}

.nextSection {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E6007E;
    padding: 15px 35px;
    text-transform: uppercase;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 575;
    letter-spacing: 0.75px;
    opacity: 0;
    z-index: 5;
    animation: button-rotate-in 2s ease-out forwards;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.nextSection:hover {
    background-color: white;
    border: solid 1px #E6007E;
    color: #E6007E;
}

/* BOTONES GENERALES */
.seeMore {
    margin-top: 30px;
    background-color: #E6007E;
    padding: 15px 35px;
    text-transform: uppercase;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 575;
    letter-spacing: 0.75px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-in-out, transform 1.1s ease-in-out;
}

.seeMore:hover {
    background-color: white;
    outline: solid 1px #E6007E;
    color: #E6007E;
}

.seeMore.animate {
    opacity: 1;
    transform: translateY(0);
}

/* SECCIÓN WHO WE ARE (PÁGINA DE INICIO) */
section .col-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.15em;
    line-height: 1.75;
    padding: 50px;
    margin-bottom: 50px;
}

.col-1-Who p {
    font-size: 2.3em;
}

.scroll-animation {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animationPara {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.scroll-animationPara.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Nueva clase para deshabilitar temporalmente las transiciones */
.no-transition-initial {
    transition: none !important;
}

/* SECCIÓN SERVICES WE OFFER */
.sectionWithBackground {
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
    min-height: 950px;
    padding: 50px 0;
}

.sectionWithBackground::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('IMAGES/servicesWeOffer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -1;
}

.sectionWithBackground::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(85, 69, 150, 0.4);
    z-index: 0;
}

.sectionWithBackground .col-1 {
    position: relative;
    z-index: 1;
}

.cardsTop {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    font-size: 1.15em;
}

.cardBig {
    flex: 25%;
    padding: 10px;
    box-sizing: border-box;
    min-width: 250px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.cardBig p {
    margin-bottom: 10px;
}

.cardBig h1 {
    font-size: 2em;
    text-align: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #554596;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.cardBig-1.animate {
    animation: slideInFromBottom 1.5s ease-out forwards;
}

.cardBig-2.animate {
    animation: slideInFromBottom 1.5s ease-out 0.20s forwards;
}

.cardBig-3.animate {
    animation: slideInFromBottom 1.5s ease-out 0.40s forwards;
}

.cardBig-4.animate {
    animation: slideInFromBottom 1.5s ease-out 0.60s forwards;
}

.cardsTop p {
    font-size: 0.9em;
    width: 100%;
    margin-bottom: 50px;
}

/* Ajustes para el párrafo "We offer our services..." */
.paraAnimate {
    margin-bottom: 80px; /* Valor por defecto para desktop */
    opacity: 1 !important; /* Asegura que esté visible por defecto */
    visibility: visible !important; /* Asegura que esté visible por defecto */
    position: relative; /* Necesario para que z-index funcione */
    z-index: 2; /* Asegura que esté por encima de otros elementos */
    min-height: 50px; /* Asegura un espacio mínimo */
    /* animation: slideInFromLeft 1.5s ease-out 0.20s forwards; /* Deshabilitado temporalmente */
}

/* .paraAnimate.animate {
    animation: slideInFromLeft 1.5s ease-out 0.20s forwards; /* Deshabilitado temporalmente */
} */

.specialBold {
    color: white;
}

#servicesWeOffer .col-1 {
    padding-top: 5px;
}

.cardSmall.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
}

.cardSmall.onTheLeft {
    flex: 0 0 8%;
    display: flex;
    font-size: 2em;
    padding-top: 30px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.cardSmall.onTheRight {
    flex: 0 0 23%;
    text-align: left;
    font-size: medium;
    margin-left: -40px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.cardSmall.onTheRight.animate {
    animation: slideInFromBottom 1.5s ease-out forwards;
}

.cardSmall.onTheLeft.animate {
    animation: slideInFromBottom 1.5s ease-out 0.20s forwards;
}

.cardSmall .sub-list {
    list-style-type: disc;
    margin-left: -10px;
}

.icon-container {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background-color: #554596;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.icon-container.animate {
    animation: slideInFromBottom 1.5s ease-out 0.00s forwards;
}

.cardAlternative {
    display: none; /* Hidden by default on desktop */
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
}

.onTheLeftHalf {
    flex: 0 0 10%;
    display: none; /* Hidden by default on desktop */
    font-size: 1.5em;
    padding-top: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.onTheLeftHalf.animate {
    animation: slideInFromBottom 1.5s ease-out 0.00s forwards;
}

.onTheRightHalf {
    flex: 0 0 40%;
    text-align: left;
    font-size: 0.8em;
    margin-left: 0px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.onTheRightHalf.animate {
    animation: slideInFromBottom 1.5s ease-out 0.00s forwards;
}

/* SECCIÓN HOW WE WORK */
.imageHowWeWork {
    max-width: 100%;
    display: block;
    padding: 40px;
    height: 1200px;
}

.imageHowWeWork.animate {
    animation: fadeIn 2s ease-in-out forwards, 5s forwards;
}

/* SECCIÓN WHY CHOOSE US / CONTACT US */
#whyChooseUs {
    background-color: #efedf8;
    display: grid;
    justify-content: space-evenly;
    grid-template-areas: "twoColumnsLeft twoColumnsRight";
    grid-column-gap: 0px;
    text-align: center;
    min-height: 680px;
}

#whyChooseUs h1 {
    font-size: 2.5em;
    color: #E6007E;
}

.col-2 {
    margin-top: 30px;
    padding: 20px;
}

.twoColumnsRight {
    grid-area: right;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.twoColumnsRight.animate {
    animation: slideInFromRight 1s ease-out 0.00s forwards;
}

.twoColumnsLeft {
    grid-area: left;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.twoColumnsLeft.animate {
    animation: slideInFromLeft 1s ease-out 0.00s forwards;
}

.twoColumnsLeft .sub-list {
    list-style: none;
    margin-top: 100px;
    padding: 0;
    font-size: 1.35em;
}

.twoColumnsLeft .sub-list li {
    position: relative;
    margin-bottom: 80px;
    padding-left: 60px;
    text-align: left;
    margin-top: 50px;
}

.twoColumnsLeft .sub-list li.iconProfessionals::before {
    content: "\e235";
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    position: absolute;
    left: 0;
    top: -3px;
    font-size: 1.5em;
    color: #E6007E;
}

.twoColumnsLeft .sub-list li.iconQuality::before {
    content: "\f5a2";
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    position: absolute;
    left: 0;
    top: -3px;
    font-size: 1.5em;
    color: #E6007E;
}

.twoColumnsLeft .sub-list li.iconCustomer::before {
    content: "\e595";
    font-family: "Font Awesome 6 Pro";
    font-style: normal;
    position: absolute;
    left: 0;
    top: -3px;
    font-size: 1.5em;
    color: #E6007E;
}

.myForm {
    min-height: 500px;
    text-align: left;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.myForm.animate {
    animation: slideInFromRight 1s ease-out 0.00s forwards;
}

.rowForm {
    display: flex;
    justify-content: space-between;
    width: 110%;
    margin: 0 auto;
}

.rowForm .name,
.rowForm .email {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: 49%;
}

.myForm .subject,
.myForm .message {
    width: 110%;
    margin: 0 auto;
}

.myForm input::placeholder,
.myForm textarea::placeholder {
    color: #b0b0b0;
}

.myForm input:focus,
.myForm textarea:focus {
    outline: solid 1px #E6007E;
    border: solid 2px #E6007E;
}

.myForm input,
.myForm textarea {
    padding: 15px;
    font-size: 0.8em;
    margin-bottom: 20px;
    resize: none;
}

#email,
#name,
#subject {
    width: 100%;
    height: 50px;
    font-size: 1.1em;
    border: 1px solid rgb(224, 224, 224);
}

#message {
    width: 100%;
    font-size: 1.3em;
    border: 1px solid rgb(224, 224, 224);
}

.message button {
    background-color: #E6007E;
    text-transform: uppercase;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 575;
    letter-spacing: 0.75px;
    display: block;
    width: 200px;
    height: 50px;
    margin: 10px auto 0;
    padding: 15px 35px;
}

.contactUs:hover {
    background-color: white;
    border: solid 1px #E6007E;
    color: #E6007E;
}

/* FOOTER */
.footer {
    position: relative;
    padding: 40px 20px;
}

.col-4 {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.itemInFooter {
    flex: 0 0 22%;
    padding: 0 1%;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center; /* Asegura que el contenido dentro de cada itemInFooter se alinee en el centro */
}

.itemInFooter img {
    display: block;
    height: 60px;
    width: auto;
}

.itemInFooter p {
    line-height: 1.6;
    color: #554596;
    margin: 10px 0;
    max-width: 250px;
}

.footerSublist {
    padding: 0;
    margin: 0; /* Elimina el margen izquierdo para una mejor alineación */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Asegura que la lista se alinee a la izquierda dentro de su contenedor */
}

.footerNav {
    margin-bottom: 8px;
    text-align: left;
}

.footerNav a {
    color: #554596;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 2px 5px;
}

.footerNav a:hover {
    color: #E6007E;
    transform: translateY(-1px);
}
/* SCROLL TO TOP BUTTON */
.fa-arrow-up {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #E6007E;
    color: white !important;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.fa-arrow-up:hover {
    transform: translateY(-5px);
    background-color: #be0169;
}

/* ANIMACIONES (KEYFRAMES) */
@keyframes logo-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes logo-slide-up-after-fade {
    0% {
        top: 50%;
    }
    100% {
        top: 40%;
    }
}

/* Nueva animación para el desplazamiento del logo en móviles */
@keyframes logo-slide-up-after-fade-mobile {
    0% {
        top: 44%; /* Posición inicial del logo en móvil */
    }
    100% {
        top: 30%; /* Posición final del logo en móvil (30% menos desplazamiento) */
    }
}

@keyframes button-rotate-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) rotateX(0deg);
    }
}

/* Modificado para efecto "zoom reverso" (aparecer desde pequeño y transparente) */
@keyframes text-zoom-out {
    0% {
        opacity: 0;
        transform: scale(0.5); /* Inicia más pequeño */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* Termina en tamaño normal */
    }
}

@keyframes fade-out-and-hide {
    0% {
        opacity: 1;
        visibility: visible;
    }
    99% {
        opacity: 0;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

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

@keyframes backgroundZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.25);
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(75%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* MEDIA QUERIES */

/* Para pantallas más pequeñas que 1200px (ej. tablets en horizontal) */
@media all and (max-width: 1200px) {
    /* SECCIÓN SERVICES WE OFFER */
    .cardSmall.container {
        display: none; /* Oculta el diseño de 3 columnas para servicios */
    }
    .cardAlternative {
        display: flex; /* Muestra el diseño alternativo de 2 columnas */
    }
    .onTheLeftHalf {
        display: flex; /* Muestra el icono en el diseño alternativo */
    }
}

/* Para pantallas más pequeñas que 1044px (ej. tablets en vertical y móviles) */
@media all and (max-width: 1044px) {
    /* BARRA DE NAVEGACIÓN */
    nav {
        width: 100%;
    }
    .logo {
        position: absolute;
        top: 50%; /* Centrado vertical */
        left: 20px; /* Posición a la izquierda */
        right: auto; /* Elimina la posición derecha anterior */
        transform: translateY(-50%); /* Ajuste para centrado vertical perfecto */
        margin-left: 0; /* Elimina el margen izquierdo para móviles */
    }
    .logo img {
        height: 40px; /* Hace el logo más pequeño en móviles */
    }
    .hamburguer {
        display: block;
        position: absolute;
        top: 50%; /* Centrado vertical */
        right: 20px; /* Posición a la derecha */
        left: auto; /* Elimina la posición izquierda anterior */
        transform: translateY(-50%); /* Ajuste para centrado vertical perfecto */
    }
    /* Corrección para el desplazamiento del aspa de la hamburguesa */
    .hamburguer.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburguer.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburguer.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    nav ul {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        background: white;
        gap: 0;
        overflow: hidden;
    }
    nav ul li {
        padding: 20px;
        padding-top: 20px;
    }
    #menuList {
        list-style: none;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.75s ease-in-out;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0px;
        background-color: white;
        z-index: 100;
    }

    /* SECCIÓN HERO (JUMBOTRON) - Ajustes para móviles */
    .jumbotron {
        height: auto; /* Altura automática para adaptarse al contenido */
        min-height: calc(60vh + 150px); /* Aumenta la altura mínima en 10px más */
        padding: 80px 20px 40px; /* Padding para dar espacio al contenido */
        position: relative; /* Asegura que los hijos absolutos se posicionen con respecto a este */
        overflow: hidden; /* Mantiene el overflow oculto */
    }

    .logoJumbo {
        height: 56px; /* Tamaño del logo ajustado (53px * 1.05) */
        position: absolute; /* Usar posicionamiento absoluto para que las animaciones funcionen */
        top: 44%; /* Posición inicial del logo en móvil */
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        animation: logo-fade-in 2s ease-out 0s forwards, /* Duración de 2s, sin retraso */
                   logo-slide-up-after-fade-mobile 2s ease-out 3s forwards; /* Inicia 1s después de que termine la anterior (2s + 1s = 3s) */
    }

    .jumbo-text-container {
        position: absolute;
        top: 44%; /* Ajuste para que esté debajo del logo */
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
        width: 80%;
        color: #554596;
    }

    #jumbo-heading {
        opacity: 0; /* Asegura que el texto esté inicialmente oculto */
        animation: text-zoom-out 2.5s ease-out 3s forwards, /* Duración de 2.5s, comienza con el desplazamiento del logo */
                   fade-out-and-hide 1.5s ease-out 7.5s forwards; /* Desaparece después de 1.5s, comienza cuando termina el zoom-out */
        font-size: 1.2em;
        font-weight: bold;
        position: absolute; /* Para que se solapen */
        width: 100%;
        top: -25px;
    }

    #jumbo-subheading {
        opacity: 0; /* Asegura que el texto esté inicialmente oculto */
        animation: text-zoom-out 2.5s ease-out 8.5s forwards; /* Duración de 2.5s, comienza con el desplazamiento del logo */
        font-size: 1.2em;
        font-weight: bold;
        position: absolute; /* Para que se solapen */
        width: 100%;
        top: -25px;
    }

    .nextSection {
        position: absolute; /* Usar posicionamiento absoluto para que las animaciones funcionen */
        top: 55%; /* Ajuste de posición para el botón debajo del logo */
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        padding: 11.4px 23.75px; /* Reducir padding del botón en un 5% */
        font-size: 0.855em; /* Reducir tamaño de fuente del botón en un 5% */
        opacity: 0; /* Vuelve a 0 para que la animación de fade-in funcione */
        animation: button-rotate-in 2s ease-out 0s forwards; /* Duración de 2s, sin retraso */
    }


    /* SECCIÓN WHO WE ARE (PÁGINA DE INICIO) */
    .col-1 {
        padding: 20px !important; /* Reducir padding interno */
    }
    .col-1-Who p {
        font-size: 1.5em; /* Ajuste el tamaño de la fuente para móviles */
    }


    /* SECCIÓN SERVICES WE OFFER */
    .sectionWithBackground {
        min-height: auto; /* Altura automática según el contenido */
        padding: 40px 0; /* Aumentar padding en móviles para la sección completa */
    }

    #servicesWeOffer .col-1 {
        padding-top: 20px !important; /* Aumentado el padding superior */
        padding-bottom: 20px !important; /* Aumentado el padding inferior */
    }

    /* Ajustes para el párrafo "We offer our services..." */
    .paraAnimate {
        margin-bottom: 20px !important; /* REDUCIDO el margen inferior para más espacio */
        padding-bottom: 0px; /* Mantener sin padding inferior */
        opacity: 1 !important; /* FORZADO A VISIBLE */
        visibility: visible !important; /* FORZADO A VISIBLE */
        position: relative; /* Necesario para que z-index funcione */
        z-index: 2; /* Asegurar que esté por encima de otros elementos */
        min-height: 50px; /* Asegura un espacio mínimo */
    }

    .cardsTop {
        flex-direction: column; /* Apilar elementos verticalmente */
        align-items: center; /* Centrar elementos */
        gap: 15px; /* Reducir espacio vertical entre cardsTop items */
        margin-top: 0px; /* Asegurar que no haya margen negativo */
        margin-bottom: 15px; /* Reducir espacio después de las tarjetas grandes */
    }
    .cardsTop p {
        text-align: center; /* Centrar el texto */
        margin-bottom: 0px; /* Elimina el margen inferior para el párrafo dentro de cardsTop */
    }
    .cardBig {
        flex: 100%; /* Ocupar todo el ancho */
        min-width: auto; /* Eliminar ancho mínimo */
        width: 80%; /* Ancho del 80% para no pegarse a los bordes */
        margin: 0 auto 0px; /* Centrar y añadir margen inferior */
    }
    .cardBig-2.animate {
        animation: slideInFromBottom 1s ease-out forwards;
    }
    .cardBig-3.animate {
        animation: slideInFromBottom 1s ease-out forwards;
    }
    .cardBig-4.animate {
        animation: slideInFromBottom 1s ease-out forwards;
    }
    .imageHowWeWork {
        height: 740px;
    }
    .cardSmall.container {
        display: flex;
        flex-direction: column;
        margin-top: 0px; /* Resetear el margen negativo problemático */
        margin-bottom: 15px; /* Espacio después de cada bloque de cardSmall.container */
        width: 80%; /* Ancho del 80% para consistencia */
        margin-left: auto; /* Centrar */
        margin-right: auto; /* Centrar */
    }
    .cardSmall.onTheLeft {
        display: flex; /* Asegurar que se muestre */
        text-align: center;
        justify-content: center; /* Centrar el icono */
        padding-top: 0; /* Eliminar padding superior si causa problemas */
        margin-bottom: 0px; /* Eliminar espacio entre el icono y el texto */
    }
    .cardSmall.onTheRight {
        display: block; /* Asegurar que se muestre */
        text-align: center; /* Centrar el texto para móviles */
        margin-left: auto; /* Centrar */
        margin-right: auto; /* Centrar */
        margin-bottom: 25px; /* Aumentado el margen inferior para más espacio entre elementos */
    }
    .cardSmall.onTheRight ul {
        list-style-position: inside;
        padding-left: 0; /* Eliminar padding por defecto de la lista */
    }
    .cardSmall.onTheRight li {
        text-align: center; /* Centrar los elementos de la lista */
        margin-left: auto; /* Centrar */
        margin-right: auto; /* Centrar */
    }
    .icon-container {
        /* Asegurar que el icono esté centrado en su propio contenedor */
        margin: 0 auto;
    }
    .cardAlternative {
        display: none; /* Oculta el diseño alternativo en esta resolución si no es necesario */
    }
    .onTheLeftHalf {
        display: none; /* Oculta el icono en el diseño alternativo en esta resolución si no es necesario */
    }

    /* SECCIÓN HOW WE WORK */
    .imageHowWeWork {
        height: 500px; /* Ajusta la altura de la imagen en móviles */
    }

    /* SECCIÓN WHY CHOOSE US / CONTACT US */
    #whyChooseUs {
        grid-template-areas:
            "twoColumnsLeft"
            "twoColumnsRight"; /* Apila las columnas verticalmente */
        min-height: auto; /* Altura automática */
    }
    .twoColumnsLeft .sub-list {
        margin-top: 50px; /* Ajusta el margen superior */
    }
    .twoColumnsLeft .sub-list li {
        margin-bottom: 40px; /* Reduce el espacio entre elementos de la lista */
    }
    .myForm {
        width: 90%; /* Ajusta el ancho del formulario */
        min-width: 280px; /* Ancho mínimo para pantallas muy pequeñas */
    }
    .rowForm {
        flex-direction: column; /* Apila los campos de nombre y email */
        width: 100%; /* Ocupa todo el ancho disponible */
    }
    .rowForm .name,
    .rowForm .email {
        width: 100%; /* Cada campo ocupa todo el ancho */
        margin-bottom: 20px; /* Espacio entre ellos */
    }
    .myForm .subject,
    .myForm .message {
        width: 100%; /* Asegura que estos también ocupen todo el ancho */
    }

    /* FOOTER */
    .col-4 {
        flex-direction: column;
        align-items: center;
    }
    .itemInFooter {
        flex: 0 0 100%;
        margin-bottom: 30px;
        max-width: 300px;
        text-align: center;
        align-items: center;
    }
    .itemInFooter p {
        max-width: none;
    }
    .our-company {
    margin-left: 0px;
    }
    .footerSublist {
        margin: 0;
        align-items: center;
    }
    .footerNav {
        text-align: center;
    }
    .fa-arrow-up {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        font-size: 1em;
    }
}

/* Para pantallas más pequeñas que 900px (ej. móviles grandes) */
@media all and (max-width: 900px) {
    /* SECCIÓN WHO WE ARE (PÁGINA WhoWeAre.html) - Si aplicable, si no, se puede mover a style2.css */
    .jumboWhoWeAre {
        height: 60vh;
        margin-top: -60px;
        padding-top: 60px;
    }
    .jumboWhoWeAre h1 {
        font-size: 2em; /* Ajuste para pantallas más pequeñas */
        padding: 0 20px;
    }
    .mission-vision-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .mv-card {
        width: 90%;
    }
    .values-container {
        padding: 20px;
        gap: 30px;
    }
    .value-pair {
        flex-direction: column;
        align-items: stretch;
    }
    .value-name-card {
        width: 100%;
        border-radius: 10px 10px 0 0;
    }
    .value-description-card {
        border-radius: 0 0 10px 10px;
    }
}
