/* SLIDER HOME */
.d-flex {
    display: flex;
    gap: 20px;
}

.d-flex div input {
    width: 100%;
}

.d-flex .floating-label-container {
    width: 50%;
}

.slider-home-container {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 728px;
    user-select: none;
}

.flex__vertical-center {
    display: flex;
    align-items: center;
}

.sliderHomeCustom {
    width: 100%;
    max-width: calc(555px + 25px);
    margin-left: auto;
}

.slideItemsCustom {
    display: flex;
    align-items: center;
    padding: 25px;
    background-color: #fff;
}

.slideItemsCustom h2 {
    font-size: 48px;
    margin-bottom: 35px;
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    color: black;
}

.slideItemsCustom p {
    margin-bottom: 35px;
}

.btn__slider {
    background-color: var(--main-color-primary);
    color: #fff;
    border-radius: 100px;
    display: flex;
    padding: 16px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 175px;
    position: relative;
    font-size: 14px;
    text-decoration: none;
    transition: linear 0.2s;
}

.btn__slider:hover {
    background-color: #004c7e;
    transition: linear 0.2s;
}

.btn__slider::after {
    content: url('data:image/svg+xml; utf8, <svg width="9" height="16" viewBox="0 0 9 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1 1L8 8L1 15" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg>');
    height: 16px;
}

.btn__slider:active,
.btn__slider:hover {
    color: #fff;
}

.sliderHomeCustom .swiper-pagination {
    position: relative;
    text-align: left;
    padding-left: 25px;
}

.sliderHomeCustom .swiper-pagination-bullet {
    width: 50px;
    height: 4px;
    border-radius: 0;
    background-color: #95B3D7;
}

.sliderHomeCustom .swiper-pagination-bullet-active {
    background-color: var(--main-color-primary);
}

.set-bgdinamico {
    background-color: var(--main-color-primary);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.set-bgdinamico-mobile {
    display: none;
}

/* SECCION NOSOTROS */
.nosotros-home-container {
    background-color: #F4F7FB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 56px;
}

.nosotros-home-container p {
    margin: 0;
    padding: 0;
}

.nosotros-content {
    width: 39%;
}

.nosotros-content h2 {
    font-size: 20px;
    line-height: 32px;
    font-weight: 400;
    letter-spacing: 4px;
    color: black;
}

.nosotros-content h3 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: black;
}

.list-nosotros--item {
    display: flex;
    font-size: 16px;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nosotros-image {
    width: 61%;
}

/* SECCION SERVICIOS */
.servicios-home-container {
    padding: 56px;
}

.servicios-home-container h2 {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 4px;
    color: black;
}

.servicios-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.servicios-content h3 {
    font-size: 48px;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
    color: black;
}

.link-servicios {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    gap: 10px;
}

.link-servicios:hover {
    text-decoration: underline;
    color: black;
}

.services-list {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item--container {
    width: calc(20% - 13px);
    ;
    text-decoration: none;
    transition: flex 0.3s ease, width 0.3s ease;
}

.service-item--container:hover {
    flex: 1 1 calc(60% - 13px);
}

.service-item--container:not(:hover) {
    flex: 1 1 calc(40% - 13px);
}

.service-item--container p {
    padding: 0;
    margin: 0;
}

.service-item-hover-info {
    background-color: #006AAF;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    height: 300px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 100%;
    padding: 24px;
}

.service-item-hover-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.service-item-hover-info p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 20px;
}

.ver-mas-service {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* SECCION ESPECIALISTAS */
.especialistas-home-container {
    display: flex;
}

.especialistas-banner--container {
    width: 40%;
}

.especialistas-banner--container img {
    height: 100%;
    width: 100%;
}

.especialistas-content--container {
    background-color: #1F1E21;
    color: white;
    width: 60%;
    padding: 80px;
}

.especialistas-content--container h3 {
    font-size: 32px;
    line-height: 48px;
    font-weight: 400;
    width: 550px;
    margin: 0;
    padding: 0;
}

.especialistas-numbers {
    display: flex;
    gap: 40px;
    margin-bottom: 45px;
}

.especialistas-numbers .number {
    font-size: 64px;
    line-height: 88px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.especialistas-numbers .number-info {
    margin: 0;
    padding: 0;
    width: 190px;
}

.link-especialistas {
    background-color: #006AAF;
    color: white;
    text-decoration: none;
    padding-top: 22px;
    padding-bottom: 22px;
    padding-inline: 40px;
    border-radius: 120px;
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 10px;
    transition: linear 0.2s;
}

.link-especialistas:hover {
    color: white;
    background-color: #004573;
    transition: linear 0.2s;
}

/* SECCION SECTORES */
.sectores-home-container {
    display: flex;
    padding: 56px;
}

.sectores-title--container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sectores-title--container h2 {
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 4px;
    font-weight: 400;
}

.sectores-title--container h3 {
    font-size: 48px;
    line-height: 63px;
    font-weight: 700;
    color: black;
}

.sectores-list--container {
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.sectores-item {
    width: 48%;
    border: 1px solid #C6C6C6;
    padding: 32px;
    color: black;
    text-decoration: none;
}

.sectores-item img {
    width: 40px;
    height: 40px;
}

.sectores-item:hover img {
    filter: invert(1);
}

.sectores-item:hover {
    background-color: #006AAF;
    border: 1px solid #006AAF;
    color: white;
    transition: linear 0.2s;
}

.sectores-list--container p {
    font-size: 24px;
    font-weight: 700;
}

/* section Certificaciones */
.tagsection__certificaciones {
    padding: 64px 56px;
}

.tagsection__certificaciones h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 4px;
    text-align: center;
    color: black;
}

.tagsection__certificaciones h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 63px;
    text-align: center;
    color: black;
    padding-inline: 150px;
}

.certificaciones-swiper {
    width: 80%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certificaciones-swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.certificaciones-swiper-slide img {
    /* Ajusta el tamaño máximo de las imágenes */
    max-width: 60%;
    object-fit: contain;
}

.certificaciones-swiper-button-prev,
.certificaciones-swiper-button-next {
    color: #000;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 15px;
    font-weight: bold !important;
}

/* SECCION CONTACTO */
.contacto-home-container {
    display: flex;
    background-color: #F4F7FB;
    padding-top: 64px;
    padding-bottom: 80px;
    padding-inline: 169px;
}

.contacto-info--container {
    width: 50%;
}

.contacto-form--container {
    width: 50%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: #80808061 0 0 10px 0;
    margin-left: 40px;
}

.contacto-info--container h2 {
    font-size: 56px;
    font-weight: 700;
    color: black;
    line-height: 72px;
    padding: 0;
    margin: 0;
    width: 445px;
}

.contacto-info--container p {
    padding: 0;
    margin: 0;
}

.country-item {
    display: flex;
    gap: 24px;
    align-items: center;
}

.country-item--text {
    width: 425px;
}

.country-item--text h3 {
    margin: 0;
    padding: 0;
    color: black;
}

.country-item--text p {
    margin: 0;
    padding: 0;
    color: black;
}

.contacto-countries {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
}

.cont-sub {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: gray;
    margin-top: 20px !important;
}

.cont-sub-mail {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: black;
}

.btn-forbis {
    text-align: center;
}

.btn_forbis {
    background-color: #006AAF !important;
    color: white !important;
    border: 0 !important;
    padding: 15px 60px 15px 60px !important;
    cursor: pointer;
    border-radius: 40px !important;
}

.form-contacto input,
.form-contacto select,
.form-contacto textarea {
    padding: 16px 12px;
    color: #777777;
    border: 1px solid #ECECEC;
    border-radius: 8px;
    font-size: 14px;
}

.terms {
    text-align: center;
}

.terms label {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.terms span {
    font-size: 12px;
}

.screen-reader-response {
    display: none;
}

.sede_forbis {
    width: 100%;
}

.wpcf7-response-output {
    display: none;
}

.wpcf7-not-valid-tip {
    display: none;
}

.error-general {
    justify-content: center;
    color: #D64040;
    font-size: 14px;
}

.thanks-message {
    text-align: center;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.thanks-message h3 {
    font-size: 32px;
    margin: 0;
    margin-bottom: 20px;
    color: #000;
}

.thanks-message p {
    margin: 0;
    font-size: 14px;
    color: #000;
}

.wpcf7 {
    transition: opacity 0.5s ease;
}

.wpcf7-list-item-label a {
    color: black;
}

/* ACTUALIZACION DEL FORMULARIO */
/* ACTUALIZACIÓN DE FLOATING LABELS */
.floating-label-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label-container .floating-label {
    position: absolute;
    top: 18px; /* Posición inicial ajustada */
    left: 12px;
    color: #777;
    font-size: 14px;
    transition: all 0.2s ease-out;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    z-index: 2; /* Asegura que está sobre el input */
    transform-origin: left center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 24px);
}

/* Ajuste para todos los campos */
.floating-label-container input:not([type=submit]),
.floating-label-container select,
.floating-label-container textarea {
    -webkit-appearance: none; /* Para Safari y Chrome */
    -moz-appearance: none;    /* Para Firefox */
    appearance: none;         /* Estándar */
    padding: 16px 12px !important;
    border: 1px solid #ECECEC;
    border-radius: 8px !important;
    background: white !important;
    position: relative;
    z-index: 1; /* Debajo del label */
}

/* Estados activos */
.floating-label-container:focus-within .floating-label,
.floating-label-container input:not(:placeholder-shown) + .floating-label,
.floating-label-container select:not([data-first-as-label=""]) + .floating-label,
.floating-label-container textarea:not(:placeholder-shown) + .floating-label {
    top: -8px !important; /* Posición final ajustada */
    transform: scale(0.85) !important;
}

/* Ajuste especial para selects */
.floating-label-container select[data-first-as-label=""]:not(:focus):invalid + .floating-label {
    top: 18px !important;
    transform: none !important;
}

/* Placeholder invisible */
.floating-label-container input::placeholder,
.floating-label-container textarea::placeholder {
    opacity: 0 !important;
}

/* Manejo de autocompletado */
.floating-label-container input:-webkit-autofill + .floating-label {
    top: -8px !important;
    transform: scale(0.85) !important;
}

/* Floating labels con clase active */
.floating-label-container.active .floating-label {
    max-width: 100%;
    top: -8px !important;
    right: auto;
    transform: scale(0.85) translateX(-4px) !important;
    z-index: 2;
}

.wpcf7-not-valid {
    color: #D64040 !important;
    border: 1px solid #D64040 !important;
}

.floating-label.error-label {
    color: #D64040 !important;
    /* animation: shake 0.3s ease-in-out; */
}

.invalid-label {
    color: #D64040 !important; /* Cambia el color del label a rojo */
}

/* ANIMACIONES */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        display: flex;
    }
}

@media (max-width:850px) {
    .d-flex {
        display: block;
    }

    .d-flex .floating-label-container {
        width: 100%;
    }

    .site-main {
        margin-top: 0;
    }

    /* SLIDER HOME */
    .slider-home-container {
        grid-template-columns: 100%;
        min-height: 548px;
        margin-top: 73px;
    }

    .items__nosotros:first-child h3 {
        font-size: 36px;
    }

    .items__nosotros {
        padding: 57px 24px;
    }

    .set-bgdinamico {
        min-height: 210px;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .set-bgdinamico-desktop {
        display: none;
    }

    .set-bgdinamico-mobile {
        display: block;
    }

    .slideItemsCustom h2 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .slideItemsCustom p {
        margin-bottom: 15px;
    }

    .sliderHomeCustom {
        max-width: initial;
    }

    .flex__vertical-center {
        align-items: start;
        order: 2;
    }

    .btn__slider {
        max-width: 170px;
    }

    .grid__descargas_contact {
        grid-template-columns: 1fr;
        gap: 30px 32px;
    }

    /* SECCION NOSOTROS */
    .nosotros-home-container {
        display: block;
        padding: 39px 32px;
    }

    .nosotros-image {
        width: 100%;
    }

    .nosotros-content {
        width: 100%;
    }

    .nosotros-content h2 {
        margin-top: 20px;
    }

    .nosotros-content h3 {
        font-size: 24px;
        line-height: 32px;
    }

    /* SECCION SERVICIOS */
    .servicios-home-container {
        padding: 48px 32px;
    }

    .servicios-content {
        display: block;
    }

    .servicios-content h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .link-servicios {
        margin-bottom: 30px;
    }

    .services-list {
        display: block;
    }

    .service-item--container {
        margin-bottom: 20px;
    }

    .service-item-hover-info {
        display: none !important;
    }

    /* SECCION ESPECIALISTAS */
    .especialistas-home-container {
        display: block;
        background-color: #1F1E21;
    }

    .especialistas-banner--container {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 41px;
    }

    .especialistas-banner--container img {
        width: 275px;
        height: 193px;
        border-radius: 15px;
    }

    .especialistas-content--container {
        width: 100%;
        padding: 41px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: transparent;
    }

    .especialistas-content--container h3 {
        font-size: 24px;
        line-height: 32px;
        width: 100%;
        text-align: center;
        margin-bottom: 50px;
    }

    .especialistas-numbers {
        display: block;
        text-align: center;
        margin-bottom: 0;
    }

    .especialistas-numbers .number {
        font-size: 48px;
        line-height: 64px;
    }

    .item--especialista {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    /* SECCION SECTORES */
    .sectores-home-container {
        display: block;
        padding: 32px;
    }

    .sectores-title--container {
        width: 100%;
    }

    .sectores-title--container h3 {
        font-size: 24px;
        line-height: 32px;
        margin: 0;
        padding: 0;
        margin-bottom: 40px;
    }

    .sectores-list--container {
        width: 100%;
    }

    .sectores-list--container p {
        font-size: 16px;
        line-height: 24px;
    }

    .sectores-item {
        padding: 16px;
        width: 46%;
    }

    .tagsection__certificaciones {
        padding: 44px 32px;
    }

    .tagsection__certificaciones h2 {
        font-size: 24px;
        line-height: 32px;
        padding-inline: 0;
        text-align: left;
    }

    .tagsection__certificaciones h3 {
        text-align: left;
    }

    /* SECCION CERTIFICACIONES */
    .certificaciones-swiper-slide img {
        max-width: 60%;
    }

    .certificaciones-swiper {
        width: 100%;
    }

    /* SECCION CONTACTO */
    .contacto-info--container {
        width: 100%;
        margin-bottom: 50px;
    }

    .contacto-home-container {
        display: block;
        padding: 56px 32px;
    }

    .contacto-info--container h2 {
        font-size: 24px;
        line-height: 32px;
        width: 100%;
    }

    .cont-sub-mail {
        font-size: 16px;
        line-height: 24px;
        width: 100%;
    }

    .country-item--text h3 {
        font-size: 20px;
    }

    .country-item--text p {
        font-size: 14px;
        line-height: 20px;
    }

    .contacto-form--container {
        width: 100%;
        padding: 0;
        margin-left: 0;
        box-shadow: none;
    }

    /* FORMULARIO DE CONTACTO */
    .form-contacto {
        padding: 20px;
    }

    .terms span {
        text-align: left;
    }
}

@media (max-width:300px) {
    .tagsection__certificaciones h3 {
        font-size: 15px;
    }

    .cont-sub-mail {
        font-size: 13px;
    }
}