/* Loader */

.loader {
    background-color: #fefefe;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99555555999;
    clip-path: circle(150% at 100% 0);
    -webkit-clip-path: circle(150% at 100% 0);
    transition: clip-path 2s ease-in-out;
    -webkit-transition: clip-path 2s ease-in-out;
}

.loader_close {
    clip-path: circle(0% at 100% 0);
    -webkit-clip-path: circle(0% at 100% 0);

}

.loader .gif {
    position: relative;
}

.loader img {
    width: 250px;
}

.loader .gif::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2rem;
    width: 100%;
    background-color: #fff;
}

.hero {
    background-color: var(--main-color);
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero img {
    max-width: 400px;
}

/* Home */

.home {
    padding-top: 8rem;
    background: linear-gradient(122deg, rgba(30, 35, 66, 1) 0%, rgba(11, 5, 23, 1) 31%, rgba(11, 5, 23, 1) 73%, rgb(32, 30, 66) 100%);
}

.home::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    background-color: #fff;
    bottom: 0;
}

.home .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.home .column-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
}

.home .title,
.home .title-sm {
    color: var(--light-one);
    margin: 0;
    padding: 0;
}

.home .title {
    font-size: 4.5rem;
}

.home .text {
    color: #f5f5f5;
    margin: 0;
}

.home .column-3 img {
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    transition: .5s all;
}

.home .column-3 button {
    position: absolute;
    /* conservamos absolute */
    background-color: #ffffff5d;
    backdrop-filter: blur(2rem);
    -webkit-backdrop-filter: blur(2rem);
    font-size: 3rem;
    color: var(--light-one);
    border-radius: 60rem;
    height: 6.5rem;
    width: 6.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    overflow: visible;
}

.home .column-3 .title-video {
    position: absolute;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(8, 1, 1, 0) 100%);
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home .column-3 .title-video h3 {
    font-size: 2.5rem;
    max-width: 600px;
}

/* Elemento halo dentro del botón */
#openVideoModalBtn .halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.25) 40%,
            rgba(255, 255, 255, 0.0) 70%);
}

.home .column-3 img {
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    transition: .5s all;
    z-index: 1;
    /* por debajo del botón */
}


.home .column-3:hover img {
    transform: scale(1.1);
}

.home .skills {
    display: flex;
    margin-top: 2rem;
    color: #fff;
}

.home .skills .card:nth-child(2) {
    margin: 0 3.5rem;
}

.home .skills .title-sm {
    font-size: 2.5rem;
}

.home .skills .text {
    color: #fff;
}

.home .skills .title-sm span {
    color: var(--main-color);
}

.home .title span {
    background: linear-gradient(160deg, #079ce6 0%, #d359ff 100%);
    -webkit-background-clip: text;
    color: transparent;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background-color: #000;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

/* Botón de Cerrar */
.modal-close-btn {
    position: absolute;
    top: -3rem;
    right: 0;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    transition: background-color 0.2s;
}

.modal-close-btn:hover {
    background-color: #b91c1c;
}

/* Contenedor Responsivo para el Video */
.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}


/* about */

.about .section-header {
    display: block;
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 650px;
}

.about .section-header .text {
    margin: 1rem auto 0;
}

.about .about-bg {
    border-radius: 1rem;
    max-height: 750px;
    object-fit: cover;
}

.about .data-about {
    position: relative;
}

.about .data-about .grid {
    position: absolute;
    padding: 0rem 1rem 1rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    bottom: 0;
}

.about .data-about .card {
    background-color: var(--light-two);
    border-radius: 1rem;
    padding: 2rem 1rem;
    display: flex;
}

.about .card img {
    max-width: 50px;
    max-height: 50px;
    margin-right: 1rem;
}

.about .data-about .card h3 {
    color: var(--dark-one);
}


/* productos */

.productos .section-header .btn {
    position: relative;
    align-items: center;
    box-shadow: 0 0 0 0 rgba(90, 129, 212, 0.694);
    /* Cambié el color para ser más específico */
    animation: pulse-salud 1.5s infinite;
}

@keyframes pulse-salud {
    0% {
        transform: scale(0.9);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(90, 153, 212, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(90, 153, 212, 0);
    }
}

.productos .card {
    width: 100%;
    overflow: hidden;
}

.productos .card .image-header {
    position: relative;
    margin-bottom: 1rem;
}

.productos .swiper-slide {
    width: auto;
    /* deja que Swiper calcule el ancho */
}

.productos .card .actions {
    position: absolute;
    right: 1rem;
    top: 1rem;
    gap: .5rem;
}

.productos .card img {
    width: 100%;
    border-radius: 1rem;
}

.productos .btn-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.5rem;
    width: 3.5rem;
    font-size: 1.5rem;
    border-radius: 5rem;
    color: var(--dark-one);
    background-color: var(--light-one);
    border: 1px solid #33333317;
    transition: .3s all;
}

.productos .btn-arrow:hover {
    background-color: var(--main-color);
    color: var(--light-one);
}

.productos .info-product {
    margin-top: 1rem;
}

.productos .info-product .text {
    margin: .5rem 0 0 0;
}

.custom-arrow {
    transform: translateY(-3rem);
    z-index: 10;
    background-color: var(--light-one, #fff);
    color: var(--dark-one, #333);
    padding: 1.5rem;
    border-radius: 100%;
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.3s;
}

.custom-arrow:hover {
    background-color: var(--main-color);
    color: var(--light-one);
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* Asegúrate de que los botones no se estiren */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* Video de salud */

.video-salud {
    padding-top: 0;
}

.video-salud .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-salud .video-miniatura {
    position: relative;
    width: 100%;
    display: flex;
}

.video-salud .video-miniatura::after {
    position: absolute;
    content: '';
    background: linear-gradient(360deg, rgb(0, 8, 36) 0%, rgba(0, 106, 255, 0) 100%);
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    left: 0;
    top: 0;
}

.video-salud img {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 1rem;
}

.video-salud h2 {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    width: 90%;
    color: white;
}

.video-salud button {
    position: absolute;
    background-color: #ffffff92;
    backdrop-filter: blur(2rem);
    -webkit-backdrop-filter: blur(2rem);
    font-size: 3rem;
    color: var(--light-one);
    border-radius: 60rem;
    height: 6.5rem;
    width: 6.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    overflow: visible;
    animation: pulse 2.5s ease-in-out infinite;
}

@media (max-width: 890px) {
    .video-salud h2 {
        font-size: 1.8rem;
    }

    .video-salud button {
        height: 4.5rem;
        width: 4.5rem;
        font-size: 2rem;
    }
}

@media (max-width: 440px) {
    .video-salud button {
        top: 4rem;
    }

    .video-salud h2 {
        font-size: 1.3rem;
        bottom: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

/* Proceso */

.process .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.process .steps {
    margin-top: 2rem;
}

.process .steps .card {
    margin: 1.5rem 0;
}

.process .steps h5 {
    display: inline-block;
    padding: .5rem;
    color: var(--main-color);
    background-color: var(--light-two);
    text-transform: uppercase;
    font-size: 1rem;
    border-radius: .5rem;
}

.process .steps .title-sm {
    margin: .5rem 0;
}

.process .column-2 {
    position: relative;
}

.process .column-2 img {
    border-radius: 1.5rem;
    min-height: 650px;
    object-fit: cover;
}

.process .column-2 a {
    border-radius: 20rem;
    position: absolute;
    bottom: 0;
    right: 0;
    display: block;
    z-index: 3;
}

.process .column-2::after {
    position: absolute;
    bottom: 0;
    right: 0;
    content: '';
    background-color: #ffffff;
    height: 4.5rem;
    width: 13rem;
    border-radius: 1rem 0 0 0;
}

@media (max-width: 1280px) {
    .process .column-2::after {
        height: 4rem;
        width: 11rem;
    }
}


/* Hire */

/* Layout seguro */
.hire {
    position: relative;
    background-color: var(--dark-one);
    overflow-x: clip;
    /* evita scroll lateral en móviles */
}

.hire .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: min(92rem, 100vw);
    padding-inline: clamp(1rem, 4vw, 4rem);
    margin: 0 auto;
    box-sizing: border-box;
}

/* Evita que el contenido empuje el grid */
.hire .column-1,
.hire .column-2 {
    min-width: 0;
}

/* Imagen responsiva */
.hire .column-2 {
    position: relative;
    height: auto;
}

.hire .column-2 img {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 15px;
    right: auto;
}

.hire-glow {
    display: inline-block;
    background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 20%, #ffb561 50%, #ffc247 80%, #ffffff 100%);
    background-size: 300% 100%;
    background-position: 0% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    will-change: background-position;
}


/* Texto seguro */
.hire .title,
.hire .text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hire .text {
    margin: 2rem 0;
}

/* Botón */
.hire .btn.primary {
    background: #00b822;
}

.hire .btn.primary::before {
    background: linear-gradient(135deg, #0d8c01, #23e800);
}

.hire .btn.primary::after {
    background: linear-gradient(135deg, #23e800, #0d8c01);
}

.hire .btn.primary:hover::after {
    opacity: 1;
}

.hire .btn.primary:hover::before {
    opacity: 0;
}

.hire a i {
    margin-left: .5rem;
    font-size: 1.1rem;
}

.hire .column-2 {
    position: relative;
    height: 500px;
}

.hire .column-2 img {
    position: absolute;
    max-width: 500px;
    border-radius: 15px;
    right: 0;
}

/* simulador */

.simulador {
    padding-left: 1rem;
    padding-right: 1rem;
}

.simulador .container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background: #1e2342;
    background: linear-gradient(122deg, rgba(30, 35, 66, 1) 0%, rgba(11, 5, 23, 1) 31%, rgba(11, 5, 23, 1) 73%, rgb(32, 30, 66) 100%);
    border-radius: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.simulador .title {
    color: var(--light-one);
}

.simulador .text {
    margin: 2rem 0;
    color: var(--light-one);
}

.simulador .buttons {
    display: flex;
    gap: 1.5rem;
}

/* Testimonios */

.testimonials {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

.testimonials .section-header {
    text-align: center;
    justify-content: center;
}

.testimonials .container {
    overflow: hidden;
    padding: 0;
}

.testimonials .swiper-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--light-two);
    border-radius: 1rem;
    padding: 2rem;
    align-items: center;
    width: 100%;
    height: 100%;
}

.testimonials .column-1 {
    padding: 2rem;
}

.testimonials .column-1 i {
    background: linear-gradient(160deg, #2D6BFF 0%, #8A3CFF 100%);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 4.5rem;
}

.testimonials .column-1 .title {
    margin-bottom: 1.5rem;
}

.testimonials .column-2 {
    position: relative;
}

.testimonials .column-2 .data-testi {
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.744) 0%, rgba(8, 1, 1, 0) 100%);
    padding: 2rem;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 1rem;
}

.testimonials .column-2 img {
    border-radius: 1rem;
    max-height: 500px;
    object-fit: cover;
    object-position: top;
    height: 500px;
    object-fit: cover;
}

.testimonials .column-2 .title-sm,
.testimonials .column-2 .text {
    color: var(--light-one);
}

/* Boton flotante de whatsapp */

.btn-whts a {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: var(--light-one);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5rem;
    width: 5rem;
    border-radius: 50rem;
    font-size: 2rem;
    z-index: 50;
    transition: .3s all;
}

.btn-whts a:hover {
    background-color: var(--main-color);
    transform: scale(.9);
}

/* footer */

footer {
    background: #1e2342;
    background: linear-gradient(122deg, rgba(30, 35, 66, 1) 0%, rgba(11, 5, 23, 1) 31%, rgba(11, 5, 23, 1) 73%, rgb(32, 30, 66) 100%);
}

footer.section {
    padding-bottom: 3rem;
}

footer .title,
footer .title-sm {
    color: var(--light-one);
}

footer .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .top a {
    margin-left: 1rem;
}

footer .center {
    margin: 3rem 0;
    padding-top: 3rem;
    border-top: 1px solid #f5f5f52f;
    display: flex;
    justify-content: space-between;
}

footer .center .column-1 p {
    max-width: 400px;
    color: var(--light-one);
    margin: 2rem 0;
}

footer .center .column-1 ul {
    display: flex;
}

footer .center .column-1 ul a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 10rem;
    color: var(--light-one);
    font-size: 1.5rem;
    border: 1px solid var(--light-one);
    margin-right: 1rem;
    transition: .3s all;
}

footer .center .column-1 ul a:hover {
    background-color: var(--light-one);
    color: var(--dark-one);
}

footer .center .column-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

footer .center .title-sm {
    margin-bottom: 2rem;
}

footer .center .column-2 a {
    display: flex;
    margin: 1.5rem 0;
    color: #f5f5f5a3;
    max-width: 160px;
    line-height: 1.6;
}

footer .center .column-2 a:hover {
    color: var(--light-one);
}

footer .bottom {
    color: var(--light-one);
    text-align: center;
}

footer .bottom a {
    color: var(--main-color);
}

@media (max-width: 980px) {
    .home .container {
        grid-template-columns: 1fr;
    }

    .about .data-about .card {
        padding: 1rem;
        display: block;
    }

    .process .container {
        grid-template-columns: 1fr;
    }

    .process .column-2 img {
        min-height: 0;
    }

    .simulador .container {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
        background-color: var(--dark-one);
        border-radius: 2rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        align-items: center;
    }

    footer .center {
        display: block;
    }

    footer .center .column-2 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        margin: 3rem 0 0 0;
    }
}

@media (max-width: 890px) {
    .testimonials .swiper-slide {
        grid-template-columns: 1fr;
    }

    .testimonials .column-2 img {
        height: 100%;
    }
}

@media (max-width: 760px) {
    .home .column-3 .title-video h3 {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .about .data-about .grid {
        position: relative;
        padding: 0rem;
        margin-top: 1.5rem;
        grid-template-columns: 1fr;
    }

    .about .data-about .card {
        padding: 2rem 1.5rem;
        display: flex;
    }

    .hire {
        padding: 4rem 0;
    }

    .hire .container {
        grid-template-columns: 1fr;
    }

    .hire .column-2 {
        margin-top: 2rem;
    }
}

@media (max-width: 560px) {
    .home .title {
        font-size: 3.5rem;
    }

    .home .column-3 button {
        font-size: 2rem;
        height: 4.5rem;
        width: 4.5rem;
    }

    .home .column-3 .title-video h3 {
        font-size: 1rem;
    }

    .simulador .buttons {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .simulador .buttons a {
        width: 100%;
        text-align: center;
    }

    .testimonials .container {
        padding: 1rem;
    }

    .testimonials .column-1 {
        padding: 1rem;
    }

    .testimonials .swiper-slide {
        padding: 1rem;
    }

    .btn-whts a {
        bottom: 1rem;
        right: 2rem;
        height: 4.5rem;
        width: 4.5rem;
        font-size: 2rem;
    }

    footer .top {
        display: block;
    }

    footer .top a {
        margin: 1rem 0 0;
    }

    footer .center .column-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .home::after {
        height: 20%;
    }

    .home .title {
        font-size: 3rem;
    }

    .testimonials .column-1 {
        padding: 0rem;
    }

}