/* 🎨 Definir variables de colores */
:root {
    --primary-color: #1e75bb;
    --secondary-color: #424143;
    --light-blue: #5698cc;
    --error-color: red;
    --text-light: white;
}

/* Fonts */

.jost {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    /* Puedes cambiarlo a 100, 300, 500, 700, etc. */
    font-style: normal;
}

/* 🎯 Estilos globales */
section {
    position: relative;
}

.s-100vh {
    height: 100vh;
}

.s-50vh {
    height: 50vh;
}

@media screen and (max-width: 768px) {
    /* Estilos específicos para móviles */
    .s-100vh {
        height: auto;
    }
    
    .s-50vh {
        height: auto;
    }

    .logo {
        width: 300px;
    }

    .phone-landing {
        display: none;
    }

    .ilus {
        display: none !important;
    }

    .cont-home {
        --bs-gutter-x: 0;
    }
}

.text-shadow {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Logo */

.l-medium {
    width: 140px;
    height: 140px;
}

/* navbar */

.navbar {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

.navbar::before {
    display: relative;
    width: 20px;
    height: 800px;
    background-color: violet;
}

.navbar-brand {
    background-color: white;
    padding: 0;
    margin: 0;
}


.nav-link {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 20px;
    transition: all 0.5s ease-in-out;
}

.nav-link:hover {
    color: white;
    border-bottom: 1px solid white;
}

.fix {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url('images/menu/menu-left.jpg');
    background-repeat: no-repeat;
    height: 80px;
}

/* Botones */
.btn {
    border: 2px solid transparent;
    /* Evita saltos al cambiar el color */
    border-radius: 4px 16px 4px 16px;
}

.btn-white {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    transition: background-color 0.5s ease-in-out,
        border-color 0.5s ease-in-out,
        color 0.3s ease-in-out;
}

.btn-white:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sección CTA */
.cta {
    color: var(--text-light);
    text-align: center;
}

/* Tarjetas de módulos */
.module-card {
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

.module-card:hover {
    transform: translateY(-5px);
}

/* Inputs inválidos */
.form-control.ng-invalid.ng-touched {
    border-color: var(--error-color);
}

/* Clases de colores */

.black2-bg {
    background-color: black;
}

.bdark-bg {
    background-color: var(--primary-color);
}

.bdark-color {
    color: var(--primary-color);
}

.black-bg {
    background-color: var(--secondary-color);
}

.black-color {
    color: var(--secondary-color);
}

.blight-bg {
    background-color: var(--light-blue);
}

.blight-color {
    color: var(--light-blue);
}

.image-landing {
    background-image: url('images/landing.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.phone-landing {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40vw;
    height: 40vw;
    background-image: url('images/phone2.png');
    background-size: cover;
}

/*  */

.sec-heading {
    position: relative;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

/* transicion */

.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.slot {
    position: relative;
    background-color: transparent;
    border: 1px solid #3498db;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    color: white;
    text-align: start;
    padding: 30px;
    flex: 1;
    height: 100%;
}

.slot2 {
    position: relative;
    background-color: transparent;
    border: 2px solid #3498db;
    border-top: 10px solid #3498db;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    text-align: center;
    font-size: 20px;
    border-radius: 0 0 8px 8px;
    color: white;
    text-align: start;
    padding: 30px;
    flex: 1;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.slot2:hover {
    transform: translateY(-4px) !important;
}

.slot2:hover i, .slot2:hover p {
    color: #3498db;
}

.slot2 i {
    font-size: 2.4rem;
    transition: color 0.5s ease-in-out;
}

.slot2 p {
    transition: color 0.5s ease-in-out;
}

.slot-cont {
    width: 30%;
}

.call-text {
    font-size: 4rem;
    line-height: 4.4rem;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .slot-cont {
        width: 100%;
    }

    .call-text {
        font-size: 3rem;
        line-height: 3.4rem;
    }

    .lead {
        display: none;
    }

    #text1 {
        font-size: 1.4rem;
    }

    #text2 {
        display: none;
    }

    #description {
        height: 100vh;
    }

    #confian {
        height: 50vh;
    }

}

/* 🔹 Capa de relleno */
.fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3498db;
    transform: scaleX(0);
    /* Inicialmente invisible */
    transform-origin: left;
    transition: transform 0.4s ease-in-out;
}

/* 🔹 Efecto al hacer hover */
.slot:hover .fill {
    transform: scaleX(1);
    /* Se llena de izquierda a derecha */
}

/* 🔹 Efecto al quitar hover */
.slot:not(:hover) .fill {
    transform-origin: right;
    /* Se vacía de derecha a izquierda */
    transform: scaleX(0);
}

.slot:hover .slot-icon {
    color: white;
    transform: translateY(-2px);
}

.link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.5s ease-in-out;
}

.link-icon {
    display: inline-block;
    color: #3498db;
    vertical-align: -2px;
    /* Asegura que el icono pueda moverse */
    transition: all 0.5s ease-in-out;
    /* Suaviza la animación */
}

.slot:hover .link {
    color: white;
}

.slot:hover .link-icon {
    color: white;
    transform: translateX(10px);
}

.slot-content {
    z-index: 1;
}

.slot-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #3498db;
    display: inline-block;
    /* Asegura que el icono pueda moverse */
    transition: color 0.5s ease-in-out, transform 0.3s ease-in-out;
    /* Suaviza la animación */
}

/* backgrounds */

.corner-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 180px;
    background-image: url('images/bg/top-left.png');
    background-size: cover;
}

.corner-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 246px;
    height: 126px;
    background-image: url('images/bg/bottom-right.png');
    background-size: cover;
}

@media screen and (max-width: 768px) {
    .corner-top-left {
        width: 60px;
        height: 90px;
    }
    
    .corner-bottom-right {
        width: 123px;
        height: 63px;
    }
}

/* Social icons */

.social-icon {
    font-size: 1.2rem;
    color: var(--light-blue);
    margin-right: 10px;
    transition: all 0.5s ease-in-out;
}

.social-icon:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.info-link {
    text-decoration: none;
    color: white;
    transition: color 0.5s ease-in-out;
}

.info-link:hover {
    color: var(--light-blue);
}

/* Contenedor general */
.module-container {
    display: flex;
    width: 200%;
    /* Se duplica el ancho para la animación */
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.overflow-hidden {
    overflow: hidden;
}

/* Lista de módulos */
.module-list {
    width: 50%;
    flex-shrink: 0;
}

/* Área de detalles */
.module-details {
    width: 50%;
    flex-shrink: 0;
    background-color: #1e75bb;
    padding: 50px;
    transition: opacity 0.4s ease-in-out;
}

/* Desplazamiento más suave */
.module-container.show-details {
    transform: translateX(-50%);
}

/* Suavizar la entrada del contenido */
.module-details {
    opacity: 0;
}

/* Cuando la clase está activa, aparece el contenido */
.show-details .module-details {
    opacity: 1;
    transition-delay: 0.3s;
    /* Retraso para evitar parpadeos */
}

/* Services */

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Empresas */

.emp-cont {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#confian {
    display: flex;
    height: auto;
}

@media screen and (max-width: 768px) {
    .emp-cont {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

.emp-logo {
    width: 100px;
    height: auto;
}

.circ {
    border-radius: 50%;
}

.s-box {
    text-align: center;
}

.s-box i {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.linkmobile {
    color: white;
    text-decoration: none;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.t1 {
    font-size: 1.4rem;
}

.t2 {
    font-size: 1.2rem;
}