@font-face {
    font-family: 'Glacial Indifference';
    src: url('../lib/fonts/GlacialIndifference-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --envian-blue: #1b1464; /* Azul oscuro oficial */
    --envian-gray: #c9ccd1;
}

body {
    margin: 0;
    font-family: 'Glacial Indifference', sans-serif;
}
.custom-header {
    width: 100%;
    background-color: var(--envian-blue); /* Fondo base azul */
    height: 80px;
}

.header-container {
    display: flex;
    height: 100%;
    align-items: center;
}

.logo-section {
    background-color: var(--envian-gray);
    height: 100%;
    padding: 0 40px 0 60px;
    display: flex;
    align-items: center;
    position: relative;
    /* Esto crea el efecto de inclinación */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    z-index: 2;
    min-width: 300px;
}

.logo-img {
    width: auto;
}

.nav-section {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 50px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 30px;
    transition: opacity 0.3s;
}

    .nav-links a:hover {
        opacity: 0.8;
    }


/* Contenedor principal con el degradado de la imagen */
.hero-banner {
    background: linear-gradient(180deg, #ffffff 0%, #d1d3d4 100%);
    padding: 80px 0;
    min-height: 500px;
}

/* Título azul marino */
.hero-title {
    color: #1b1464;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0;
}
.hero-badge-inline {
    font-size: 1.8rem;
    color: white;
    padding-bottom: 60px;
    font-weight: 600;
    padding-right: 110px;
}
/* Cuadro azul con texto blanco */
.hero-badge {
    background-color: #1b1464;
    color: white;
    padding: 10px 55px;
    display: inline-block;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 5px;
}

/* Sombra suave para el equipo médico */
.floating-product {
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

/* Personalización de los indicadores (puntos) */
.carousel-indicators.hero-dots [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #999;
    border: none;
    margin: 0 6px;
}

.carousel-indicators.hero-dots .active {
    background-color: #1b1464;
}

/* Imagen del producto */
.floating-product {
    max-width: 400px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

/* Pestañas de Marcas */
.brand-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #ddd;
}

.brand-tabs a {
    text-decoration: none;
    color: var(--envian-blue);
    font-weight: bold;
    font-size: 1.3rem;
    transition: 0.3s;
}

.brand-tabs a.active, .brand-tabs a:hover {
    border-bottom: 4px solid var(--envian-blue);
    margin-bottom: -4px; /* Para no mover el layout */
}

/* Puntitos de navegación */
.hero-dots { margin-top: 30px; display: flex; gap: 10px; }
.hero-dots span { width: 10px; height: 10px; background: #999; border-radius: 50%; }
.hero-dots span.active { background: var(--envian-blue); }

.footer-envian {
    background-color: #1b1464; /* Azul marino oficial ENVIAN */
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 50px;
}

.footer-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-transform: none;
    position: relative;
    text-align: center;
}

/* Estilo para los iconos y listas */
.contact-info li, .social-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

    .social-links a:hover {
        opacity: 0.8;
    }

/* Iconos de Bootstrap Icons */
.bi {
    font-size: 1.2rem;
    min-width: 25px;
}

/* Ajuste del mapa para que se vea limpio */
.map-container {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#productTab .nav-link {
    border: none;
    background: none;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

    #productTab .nav-link.active {
        color: #1b1464 !important;
    }

.hero-tab-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    justify-content: center;
    background-position: -50px -111px;
}
@media (min-width: 1750px) {
    .hero-tab-section {
        background-position: -50px -205px;
    }
}
@media (min-width: 1024px) and (max-width: 1440px) {
    .hero-tab-section {
        background-position: -128px center;
    }
}
@media (min-width: 426px) and (max-width: 768px) {
    .hero-tab-section {
        background-position: -353px 0px;
    }
}
@media (min-width: 1px) and (max-width: 425px) {
    .hero-tab-section {
        background-size: cover;
        position: relative;
        overflow: hidden;
        background-position: center;
        min-height: 120px;
    }
}
@media (max-width: 768px) {
    .tabs-scroll-mobile {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

        .tabs-scroll-mobile::-webkit-scrollbar {
            display: none; /* Chrome */
        }

        .tabs-scroll-mobile .nav-item {
            flex: 0 0 auto;
        }

        .tabs-scroll-mobile .nav-link {
            white-space: nowrap;
        }
}
.blue-stripe-background {
    position: absolute;
    top: 50%;
    left: 20%; /* Ajusta para que empiece detrás de la imagen */
    right: 9%;
    height: 90px; /* Grosor de la franja azul */
    background-color: #1b1464; /* El azul oficial */
    transform: translateY(-50%);
    z-index: 1;
}
.login-bg {
    position: relative;
}

    .login-bg .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgb(27 20 100 / 0%) 0%, rgba(0, 0, 0, 0.4) 100%)
    }

.form-control:focus {
    border-color: #1b1464;
    box-shadow: 0 0 0 0.25rem rgba(27, 20, 100, 0.25);
}

.card {
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }

.form-floating > .form-control-plaintext ~ label::after, .form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after, .form-floating > .form-select ~ label::after{
    background-color:transparent !important;
}
.nav-pills .nav-link {
    color: #1b1464;
    border: 1px solid #1b1464;
    margin-right: 10px;
    font-weight: 500;
}

    .nav-pills .nav-link.active {
        background-color: #1b1464;
    }

.card {
    border-radius: 12px;
}

.table img {
    border: 1px solid #dee2e6;
    padding: 2px;
    background: #fff;
}
/* Color corporativo ENVIAN */
.bg-primary-dark {
    background-color: #1b1464 !important;
}

/* Efectos de las tarjetas */
.card-nosotros {
    border-radius: 15px !important;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .card-nosotros:hover {
        transform: translateY(-10px);
    }

/* Iconos circulares */
.icon-circle {
    width: 110px;
    height: 60px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #1b1464;
    font-size: 1.5rem;
}

/* Líneas decorativas en las tarjetas como en la imagen */
.card-body {
    position: relative;
}

    .card-body::before {
        content: "";
        position: absolute;
        top: 16%;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #1b1464;
        z-index: 0;
    }
.border-custom::before {
    bottom: -30%;
    content: "";
    position: absolute;
    left: 38%;
    right: 37%;
    height: 2px;
    background: #1b1464;
    z-index: 40;
}
.quienes-somos-title {
    background-color: #1b1464;
    color: white;
    padding: 15px 40px;
    margin-left: -50vw;
    padding-left: 50vw;
    display: inline-block;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 50px;
}

.icon-circle, p, ul {
    position: relative;
    z-index: 1;
}
.scientist-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.img-scientist {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.scientist-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%; /* Controla qué tan adentro llega el desvanecido lateral */
    height: 100%;
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.scientist-image-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 748px;
    height: 40%; /* Controla qué tan arriba llega el desvanecido de la base */
    background: linear-gradient(to top, white 10%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}
.contact-card {
    background-color: #1b1464; /* Azul oscuro ENVIAN */
    border-radius: 60px; /* Bordes muy redondeados como en la imagen */
    font-family: 'Glacial Indifference', sans-serif;
}

.text-primary-dark { color: #1b1464; }
.btn-primary-dark { background-color: #1b1464; color: white; border: none; }
.btn-primary-dark:hover { background-color: #140e4d; color: white; }

.info-box-gray {
    background-color: #d1d4d9; 
    border-radius: 50px;
    padding: 20px 30px;
}

.form-container-gray {
    background-color: #d1d4d9;
    border-radius: 50px;
}

.btn-whatsapp {
    background-color: #00bb2d;
    color: white;
    font-size: 1.5rem;
    border: none;
}
    .btn-whatsapp:hover {
        background-color: #00bb2d;
        color: white;
        font-size: 1.5rem;
        border: none;
    }

    .input-group-custom {
        background-color: white;
        border-radius: 50px;
        display: flex;
        align-items: center;
        padding: 5px 20px;
    }

.input-group-custom i {
    color: #1b1464;
    font-size: 1.2rem;
    margin-right: 15px;
}

.input-group-custom .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px 0;
}

.input-group-custom .form-control:focus {
    background: transparent;
}
.social-container {
    background-color: #d1d4d9; 
    border-radius: 60px;
    font-family: 'Glacial Indifference', sans-serif;
}

.social-title {
    color: #1b1464; 
    font-size: 1.8rem;
}

.social-link {
    text-decoration: none;
    color: #1b1464;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

    .social-link i {
        font-size: 4rem; 
        display: block;
    }

    .social-link p {
        font-size: 1rem;
        line-height: 1.2;
        margin-top: 10px;
        font-weight: 500;
    }

.btn-filter {
    background-color: #d1d4d9;
    border-radius: 20px;
    color: #1b1464;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
}

/* Tarjeta de Noticia */
.news-card {
    border-radius: 40px; /* Bordes muy redondeados como en la imagen */
    transition: transform 0.3s ease;
    height: 100%;
}

    .news-card:hover {
        transform: translateY(-5px);
    }

.news-img-wrapper {
    width: 100%;
    height: 200px; /* Ajusta según necesites */
    overflow: hidden;
    border-radius: 25px;
}

    .news-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
.logo-img {
    height: 80px; 
}

@media (min-width: 1px) and (max-width: 426px) {
    .logo-section {
        padding: 0px !important;
        min-width: 150px !important;
        width: 260px;
    }
    .hero-banner {
        min-height: 250px;
        background-position: center;
        background-size: cover;
    }
}
.btn-envian-custom {
    background-color: #1b1464; /* El azul oscuro de tu marca */
    color: white !important;
    border: none;
    min-width: 240px;
    transition: all 0.3s ease;
}

    .btn-envian-custom:hover {
        background-color: #0d0a4d; 
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(27, 20, 100, 0.3);
    }

    /* Ajuste para el texto de dos líneas */
    .btn-envian-custom span {
        font-size: 1.1rem;
        text-transform: none;
    }

    /* Tamaño de los iconos */
    .btn-envian-custom i {
        line-height: 1;
    }