/* HEADER (OurServices) */
.jumboServices {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -136px;
    padding-top: 80px;
    z-index: -1;
}

.jumboServices::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('IMAGES/services-jumbo.jpg'); /*  */
    background-size: cover;
    background-position: top 20% center;
    filter: blur(3px);
    transform: scale(1.05);
    animation: backgroundZoom 30s infinite alternate ease-in-out;
    z-index: -1;
}

.jumboServices::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.jumboServices h1 {
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards 0.5s;
}

/* SECCIÓN Dossier preparation */
.dossier-assembly-section {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 80px auto; /* Margen para separar de otras secciones */
    padding: 20px;
    gap: 40px;
    background-color: #f9f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px; /* Añadido border-radius para consistencia */
    overflow: hidden;
    opacity: 0; /* Inicialmente oculto para animación */
    transform: translateY(50px); /* Ligeramente desplazado para animación */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.dossier-assembly-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.dossier-image-container {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.dossier-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}
.dossier-text-container {
    flex: 1;
    max-width: 50%;
    padding: 20px;
}
.dossier-text-container h2 {
    font-size: 2.2em;
    color: #554596;
    margin-bottom: 20px;
    line-height: 1.2;
}

.dossier-text-container h3 {
    font-size: 1.5em;
    color: #be0169;
    margin-top: 30px;
    margin-bottom: 15px;
}

.dossier-text-container p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #554596;
}

.dossier-text-container ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.dossier-text-container ul li {
    font-size: 1em;
    margin-bottom: 10px;
    color: #554596;
}

.dossier-text-container ul li i {
    color: #be0169; /* Color de los iconos */
    margin-right: 10px;
    font-size: 1.2em;
}

/* SECCIÓN Our main areas of expertise*/
.homeH1 scroll-animation{
    padding: 20px;
}
.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;
}

#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: The key areas of work of any Medical Translation Agency */
.services-intro {
    background-color: #f9f9fa;
    padding: 10px 10px;
    text-align: center;
    max-width: 1000px;
    margin: 80px auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.services-intro.animate {
    opacity: 1;
    transform: translateY(0);
}

.intro-text-container h2 {
    font-size: 2.2em;
    color: #554596;
    margin-bottom: 20px;
}

.intro-text-container p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #554596;
}
.service-categories-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se envuelvan en pantallas pequeñas */
    justify-content: center; /* Centra las tarjetas horizontalmente */
    gap: 40px; /* Espacio entre las tarjetas */
    max-width: 1500px;
    margin: 0px auto 0px auto; /* Margen para separar de otras secciones, reducido el inferior */
    padding: 20px;
}
.service-card {
    flex: 1 1 30%; /* Permite que las tarjetas crezcan y se encojan, con un tamaño base del 30% */
    min-width: 300px; /* Ancho mínimo para evitar que se aplasten demasiado */
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Transición para el efecto de zoom */
    opacity: 0; /* Inicialmente oculto para animación */
    transform: translateY(50px); /* Ligeramente desplazado para animación */
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: scale(1.03); /* Efecto de zoom al pasar el ratón */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada al hacer hover */
}

.service-icon-wrapper {
    font-size: 3.5em; /* Tamaño del icono */
    color: #be0169; /* Color del icono */
    margin-bottom: 20px;
}

.service-card h2 {
    font-size: 1.8em;
    color: #554596;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #554596;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left; /* Alinea la lista a la izquierda dentro de la tarjeta */
}

.service-card ul li {
    font-size: 0.95em;
    margin-bottom: 8px;
    color: #554596;
}

.service-card ul li i {
    color: #be0169; /* Color de los checkmarks */
    margin-right: 10px;
    font-size: 1em;
}
/* Botón de Contacto en OurServices*/
.contact-button-container {
    text-align: center; /* Centra el botón */
    margin-top: 30px; /* Margen superior para acercarlo a la sección de arriba */
    margin-bottom: 80px; /* Margen inferior para separar del footer */
}

/* ANIMACIONES GENERALES */
@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 */
@media all and (max-width: 1200px) {
    /* SECCIÓN ÁREAS DE EXPERIENCIA */
    .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 */
    }
}

@media all and (max-width: 900px){
    /* Header */
    .jumboServices {
        height: 50vh;
        margin-top: -60px;
        padding-top: 60px;
    }
    .jumboServices h1 {
        font-size: 2em;
        padding: 0 20px;
    }

    /* Sección de Armado de Dossier */
    .dossier-assembly-section {
        flex-direction: column;
        margin: 40px 15px;
        padding: 15px;
        gap: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .dossier-image-container,
    .dossier-text-container {
        max-width: 100%;
        padding: 0;
    }
    .dossier-text-container h2,
    .dossier-text-container h3 {
        text-align: center;
        font-size: 1.8em;
    }
    .dossier-text-container p,
    .dossier-text-container ul li {
        font-size: 0.95em;
        text-align: center; /* Centrar texto en móvil */
    }
    .dossier-text-container ul {
        padding-left: 20px; /* Añadir padding para viñetas */
        text-align: left; /* Asegurar que la lista se alinee a la izquierda */
    }

    /* Sección Áreas de Experiencia */

    .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 */
    }
}
