@import "colors-telemedic.css";
@import "fonts-telemedic.css";
@import "nav-style2.css";

/* -------------------------------
   General
--------------------------------- */
a {
    cursor: pointer;
}

h1,
h2 {
    font-weight: bold;
}

#como-lo-hacemos .step-icon-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #38d9ca; /* o el color que ya estás usando */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#como-lo-hacemos .step-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* -------------------------------
   Navbar
--------------------------------- */
.navbar-nav .nav-link:not(.disabled) {
    color: white;
}

.navbar-nav .nav-link:hover:not(.disabled) {
    background-color: var(--telemedic-primary) !important;
}

img.logo {
    width: 300px;
}

.navbar-light .navbar-nav .nav-link:hover:not(.disabled) {
    background-color: var(--telemedic-primary) !important;
}

/* -------------------------------
   Home / Background
--------------------------------- */
#homev2telemedic {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

#background-video {
    position: absolute;
    transform: translate(-50%, -50%); /* Centra el video perfectamente */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    pointer-events: none;
}

/* Seccion: homev2telemedic */
#homev2telemedic .whatsapp-button {
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
#homev2telemedic .whatsapp-button:hover {
    background-color: #20c057;
}
#homev2telemedic .whatsapp-button img {
    width: 25px;
    height: auto;
    margin-right: 10px;
}

/* -------------------------------
   Sección: Clientes
--------------------------------- */
#clientes .container-web {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#clientes img {
    max-height: 125px;
}

/* -------------------------------
   Sección: Nosotros
--------------------------------- */
#nosotros {
    color: var(--primary);
}

/* -------------------------------
   Sección: Nosotros2
--------------------------------- */
#nosotros2 {
    background-color: var(--telemedic-primary);
    position: relative;
}

#nosotros2 .container-web {
    padding-bottom: 150px; /* Espacio extra en la parte inferior */
}

#nosotros2 .benefit-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#nosotros2 .benefit-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 80%;
    margin-right: auto;
}

/* Imagen extra en Nosotros2 (posición absoluta) */
#nosotros2 .logo-extra {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 22%;
    height: auto;
}

/* En pantallas grandes */
@media (min-width: 768px) {
    #nosotros2 .benefit-title {
        font-size: 3rem;
    }
    #nosotros2 .benefit-description {
        font-size: 1.5rem;
    }
}

/* -------------------------------
   Sección: Servicios
--------------------------------- */
#servicios h2 {
    font-weight: normal;
}

#servicios .service-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    #servicios .service-title {
        font-size: 4rem;
    }
}

#servicios .service-box {
    box-sizing: border-box;
    border: 2px solid #51e1e5;
    border-radius: 65px;
    padding: 10px;
    background-color: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    margin-bottom: 1rem;
}

#servicios .service-box,
#servicios .service-box * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#servicios .service-icon {
    width: 30%;
    height: auto;
    margin-right: 15px;
}

#servicios .service-box-title {
    font-size: 1rem;
    color: #002360;
    margin: 0;
    word-break: break-word;
}

#servicios .service-text {
    width: 70%;
}

@media (min-width: 768px) {
    #servicios .service-box-title {
        font-size: 1rem;
    }
}

.column-services {
    margin-top: 2rem;
}

.offset-column {
    margin-top: 130px; /* Ajusta según necesidad */
}

/* Botón WhatsApp en Servicios */
#servicios .whatsapp-button {
    background-color: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#servicios .whatsapp-button:hover {
    background-color: #20c057;
}

#servicios .whatsapp-button img {
    width: 25px;
    height: auto;
    margin-right: 10px;
}

/* -------------------------------
   Sección: Como lo Hacemos
--------------------------------- */
#como-lo-hacemos {
    background-color: var(--telemedic-primary, #051249);
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

/* Título de la sección */
#como-lo-hacemos .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

/* Columna de la imagen principal */
#como-lo-hacemos .image-col {
    text-align: center;
    margin-top: 5rem; /* Baja la imagen hasta la altura deseada (ajusta este valor) */
}

/* Imagen principal */
#como-lo-hacemos .section-image {
    width: 100%;
    max-width: 1000px; /* En pantallas grandes la imagen se agranda hasta 1000px */
    height: auto;
    
}

/* Cada paso */
#como-lo-hacemos .step-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    /* En pantallas medianas y superiores, usar grid de 3 columnas en cada paso:
     1: Ícono circular, 2: Número, 3: Texto */
    #como-lo-hacemos .step-row {
        display: grid;
        grid-template-columns: auto auto 1fr;
        grid-gap: 1rem;
        align-items: center;
    }
}

/* Ícono circular */
#como-lo-hacemos .icon-circle {
    background-color: var(--telemedic-primary);
    border-radius: 50%;
    display: inline-block;
    padding: 20px;
    margin-bottom: 0.5rem;
}

/* Ícono del paso */
#como-lo-hacemos .step-icon {
    width: 80px; /* Tamaño del ícono, puedes ajustar */
    height: auto;
}

/* Número del paso */
#como-lo-hacemos .step-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: bold;
    color: var(--telemedic-secondary);
}

/* Texto del paso: título y descripción */
#como-lo-hacemos .step-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: bold;
    color: #51e1e5;
    margin: 0.2rem 0;
}

#como-lo-hacemos .step-desc {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #ffffff;
    font-weight: normal;
    line-height: 1.6;
}

#como-lo-hacemos .extra-text span {
    display: block;
    width: 65%;
    margin: auto;
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: bold;
    color: #fff;
    text-align: center;
}

/* Botón WhatsApp en Como lo Hacemos */
#como-lo-hacemos .whatsapp-button {
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

#como-lo-hacemos .whatsapp-button:hover {
    background-color: #20c057;
}

#como-lo-hacemos .whatsapp-button img {
    width: 25px;
    height: auto;
    margin-right: 10px;
}

/* -------------------------------
   Sección: Inline Contact Form (si aplica)
--------------------------------- */
#inline-contact-form {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#inline-contact-form .form-control {
    font-size: 1.5rem;
}

/* -------------------------------
   Otras Reglas (modifica según tus necesidades)
--------------------------------- */
.container-web {
    width: 90%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Reglas para Modal, Elevate, Rounded-img, etc. */
.modal .modal-body img {
    max-width: 280px;
    width: 100%;
}

.modal .modal-body h5 {
    border-left: solid 5px var(--telemedic-secondary);
}

.elevate {
    transition: all 0.2s ease-in-out;
}

.elevate:hover {
    transform: scale(0.95);
}

.close {
    font-family: Arial, Helvetica, sans-serif;
}

.btn {
    font-weight: bold;
    padding: 10px 16px;
    color: var(--primary);
    white-space: normal;
}

.rounded-img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

/* Responsive ajustes para pantallas pequeñas */
@media only screen and (max-width: 405px) {
    img.logo {
        width: 210px;
    }
}

@media (min-width: 768px) {
    .text-box-white,
    .text-box-telemedic {
        color: var(--primary);
        box-shadow: inset 0px -20px 0px 0px white;
        padding-right: 5%;
    }
    .text-box-telemedic {
        box-shadow: inset 0px -20px 0px 0px var(--telemedic-secondary);
    }
}

#inline-contact-form .row {
    align-items: stretch;
}

#inline-contact-form {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.border-right-white {
    border-right: 1px solid white;
    height: 100%;
}

.logos * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.logos {
    overflow: hidden;
    padding: 40px 0;
    white-space: nowrap;
    background: transparent;
    position: relative;
    border-radius: 0;
    max-width: 100%; /* Ajusta el ancho al del container */
    width: 100%;
    margin: 0 auto; /* Centra el contenedor de logos */
}

.logos:before,
.logos:after {
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    content: "";
    z-index: 2;
}

.logos:before {
    left: 0;
}

.logos:after {
    right: 0;
}

.logos-slide {
    display: inline-block;
    justify-content: center;
    align-items: center;
    animation: 24s slide infinite linear;
    gap: 40px;
}

.logos-slide img {
    max-height: 90px;
    max-width: 200px;
    margin: 0 40px;
    filter: grayscale(50%) opacity(0.8); /* Reduce el color y la opacidad */
    transition: filter 0.3s ease-in-out;
}

.logos-slide img:hover {
    filter: grayscale(0%) opacity(1); /* Restaura el color original al pasar el mouse */
}

@media (max-width: 768px) {
    /* --- SECCIÓN 1: HERO / VIDEO --- */
    #homev2telemedic .container {
        text-align: center !important;
        margin-top: 30% !important;
    }
    #homev2telemedic h1 {
        font-size: 2.2rem !important; /* Más pequeño para móvil */
    }
    #homev2telemedic p {
        font-size: 1.2rem !important;
        margin-top: 1rem !important;
    }
    #homev2telemedic div[style="text-align: left;"] {
        text-align: center !important; /* Centra el botón de WhatsApp */
    }

    /* --- SECCIÓN 2: NOSOTROS y NOSOTROS 2 --- */
    #nosotros h2,
    #clientes h2 {
        font-size: 2.5rem !important;
    }
    #nosotros p {
        font-size: 1.1rem !important;
    }
    #nosotros2 h2 {
        font-size: 2rem !important;
    }
    #nosotros2 p {
        font-size: 1.1rem !important;
        max-width: 100% !important; /* Ocupa todo el ancho */
    }
    #nosotros2 img[style*="position: absolute"] {
        position: relative !important; /* Evita que la imagen se superponga */
        display: block !important;
        max-width: 40% !important;
        margin: -80px auto 20px auto !important;
        bottom: auto !important;
        right: auto !important;
    }

    /* --- SECCIÓN SERVICIOS --- */
    #servicios .offset-column {
        margin-top: 1rem !important;
    }

    /* --- SECCIÓN CÓMO LO HACEMOS --- */
    #como-lo-hacemos .image-col {
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
    }

    #como-lo-hacemos .step-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 8rem !important;
    }

    #como-lo-hacemos .step-row .col-auto {
        text-align: center !important;
    }

    #como-lo-hacemos .step-row .col {
        text-align: left !important;
    }

    #como-lo-hacemos .step-icon {
        width: 100px !important;
        height: 100px !important;
    }

    /* --- SECCIÓN CONTACTO --- */
    #inline-contact-form p,
    #inline-contact-form label {
        font-size: 1.2rem !important;
    }

    /* ===== AJUSTES RESPONSIVE PARA LA BARRA DE NAVEGACIÓN (NAVBAR) ===== */

    @media (max-width: 991.98px) {
        .navbar-brand #logo-navbar {
            height: 60px !important;
        }

        .navbar-collapse.show,
        .navbar-collapse.collapsing {
            padding: 15px;
            border-radius: 0 0 10px 10px;
            box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
            margin-top: 10px;
        }

        .navbar-nav .nav-link {
            text-align: center;
            padding: 12px 0 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .navbar-nav .nav-item:last-child .nav-link {
            border-bottom: none;
        }

        .navbar-light .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }
        .navbar-light .navbar-toggler {
            border-color: rgba(255, 255, 255, 0.5);
        }
    }

    /* ===== AJUSTES PARA SERVICIOS EN PANTALLAS PEQUEÑAS ===== */

    @media (max-width: 575.98px) {
        #servicios .service-title {
            font-size: 2rem !important;
        }

        #servicios .service-box {
            padding: 8px 15px !important; /* Menos espaciado interno */
            border-radius: 50px !important; /* Un poco menos redondo */
            margin-bottom: 1rem !important;
        }

        #servicios .service-icon {
            width: 25% !important; /* Icono más pequeño */
            margin-right: 10px !important;
        }

        #servicios .service-box-title {
            font-size: 0.9rem !important; /* Letra más pequeña */
        }
    }
}
