/* ==========================================================================
   CONFIGURACIÓN GLOBAL Y VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;700;800&display=swap');

:root {
    --azul-biolab: #0055a5;
    --celeste-biolab: #00a0df;
    --texto-oscuro: #333333;
    --texto-suave: #444444;
}

body {
    font-family: 'Figtree', sans-serif !important;
    color: var(--texto-suave);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* ==========================================================================
   TOP BAR (AZUL SUPERIOR)
   ========================================================================== */
.bg-primary {
    background-color: var(--azul-biolab) !important;
}

.social-icons a {
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
    text-decoration: none;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   NAVBAR (ESTILO PROFESIONAL)
   ========================================================================== */
.navbar {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 65px;
    /* Ajuste según referencia */
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

.navbar-nav .nav-link {
    color: var(--texto-oscuro) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--celeste-biolab) !important;
}

/* Botón Exámenes Online en Navbar */
.btn-resultados {
    background-color: var(--azul-biolab);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
}

.btn-resultados:hover {
    background-color: var(--celeste-biolab);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 160, 223, 0.3);
}

/* ==========================================================================
   SLIDER (HERO SECTION)
   ========================================================================== */
.carousel-item {
    height: 75vh;
    /* Proporción más equilibrada */
    min-height: 500px;
    position: relative;
}

.hero-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Capa de degradado profesional para legibilidad */
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 25%;
    text-align: left;
    left: 10%;
    right: auto;
}

.carousel-caption h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.carousel-caption h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--celeste-biolab) !important;
    text-shadow: none;
}

/* ==========================================================================
   BOTONES FLOTANTES (LATERALES)
   ========================================================================== */
/* ==========================================================================
   STICKY SOCIAL BAR (Efecto Desplegable)
   ========================================================================== */
.sticky-social-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 30px 0 0 30px;
    /* Bordes redondeados solo a la izquierda */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efecto elástico suave */
    width: 55px;
    /* Solo se ve el icono inicialmente */
    overflow: hidden;
    color: white !important;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.social-item i {
    font-size: 20px;
    min-width: 25px;
    text-align: center;
}

.social-label {
    margin-left: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Efecto Hover: Se expande el ancho y aparece el texto */
.social-item:hover {
    width: 160px;
    /* Ancho al desplegarse */
}

.social-item:hover .social-label {
    opacity: 1;
}

/* Colores Corporativos y de Redes */
.whatsapp {
    background: #25D366;
}

.facebook {
    background: #1877F2;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.repositorio {
    background: var(--azul-biolab);
    /* Tu color principal */
}

/* Responsive: En móviles los hacemos un poco más pequeños */
@media (max-width: 768px) {
    .social-item {
        padding: 10px;
        width: 45px;
    }

    .social-item:hover {
        width: 140px;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-item {
        height: 60vh;
    }

    .navbar-brand img {
        height: 50px;
    }
}

/* ==========================================================================
   SECCIONES SERVICIOS
   ========================================================================== */

/* Colores de apoyo */
.bg-light-blue {
    background-color: rgba(0, 160, 223, 0.1);
}

/* Estilo de los Círculos de Iconos */
.icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Animación de las Tarjetas (Service Cards) */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card:hover .icon-circle {
    background-color: var(--azul-biolab);
}

.service-card:hover .icon-circle i {
    color: white !important;
}

.service-card h4 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--texto-oscuro);
}

/* Sección About (Bienvenida) */
.about-section h2 {
    color: var(--azul-biolab);
    line-height: 1.2;
}


/* Sección Sucursales Interactiva */
/* ==========================================================================
   SECTOR SUCURSALES (ESTILO ANDES SALUD)
   ========================================================================== */

/* 1. Selector Superior (Pills) */
#sucursalTab .nav-link {
    color: #555;
    background: transparent;
    transition: all 0.3s ease;
}

#sucursalTab .nav-link.active {
    background-color: var(--azul-biolab) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 85, 165, 0.2);
}

/* 2. Contenedor Principal de la Ficha */
.sucursal-ficha-container {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
    display: flex;
    align-items: center;
}

/* 3. Overlay Degradado Azul (Punto Crítico) */
.azul-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado de azul oscuro a azul biolab con transparencia */
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.9) 0%, rgba(0, 85, 165, 0.7) 100%);
    z-index: 1;
}

/* 4. Mapa Flotante a la derecha */
.mapa-flotante-container {
    width: 100%;
    max-width: 320px;
    /* Tamaño máximo del mapa */
    height: 220px;
    /* Altura del mapa */
    transform: rotate(1deg);
    /* Ligera rotación para look moderno */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mapa-flotante-container:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Ajustes de fuente Figtree para coincidir con Andes Salud */
.sucursal-ficha-container h3,
.sucursal-ficha-container p {
    font-family: 'Figtree', sans-serif !important;
}

.sucursal-ficha-container .opacity-75 {
    opacity: 0.8 !important;
}

/* Utilidades de borde */
.rounded-4 {
    border-radius: 1rem !important;
}

/* Sección Convenios */
/* ==========================================================================
   CAROUSEL DE CONVENIOS (INFINITE SLIDER)
   ========================================================================== */
.logos-slider {
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    white-space: nowrap;
}

.logos-slider-container {
    display: inline-flex;
    animation: scrollLogos 30s linear infinite;
}

.logo-item {
    width: 200px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Evitar saltos en el hover */
.logos-slider:hover .logos-slider-container {
    animation-play-state: paused;
}

/*Imagen para ver el repositorio*/

/* ==========================================================================
   BANNER REPOSITORIO (ESTILO PROFESIONAL)
   ========================================================================== */
.repositorio-banner {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%),
        url('../img/banner1.jpg');
    /* Asegúrate de tener esta imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Efecto Paralaje */
    height: 450px;
    position: relative;
    overflow: hidden;
}

.fw-extrabold {
    font-weight: 800 !important;
}

.shadow-text {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.repositorio-banner h3 {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.repositorio-banner h2 {
    color: var(--celeste-biolab) !important;
    line-height: 1;
}

/* Efecto de brillo en el botón */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: none;
}

.btn-hover-effect:hover {
    background-color: var(--azul-biolab) !important;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .repositorio-banner {
        height: 350px;
        background-attachment: scroll;
        /* Desactivar paralaje en móviles */
    }

    .repositorio-banner h2 {
        font-size: 2.5rem;
    }
}

/*Formulario de contacto*/

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */
.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#contacto .form-control,
#contacto .form-select {
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#contacto .form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25 mil rem rgba(0, 85, 165, 0.1);
    border: 1px solid var(--celeste-biolab);
}

#contacto .card {
    border-top: 5px solid var(--azul-biolab) !important;
}

.bg-light-blue {
    background-color: rgba(0, 160, 223, 0.1);
}


/*Links Intereses*/

/* ==========================================================================
   LINKS DE INTERÉS (SLIDER DINÁMICO)
   ========================================================================== */
.links-slider {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.links-slider-container {
    display: flex;
    animation: scrollLinks 25s linear infinite;
    /* Velocidad ajustable */
}

.link-item {
    flex: 0 0 auto;
    width: 200px;
    /* Tamaño similar a los cuadros de la imagen */
    margin-right: 20px;
}

.link-item img {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

@keyframes scrollLinks {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pausar al pasar el mouse */
.links-slider:hover .links-slider-container {
    animation-play-state: paused;
}

/*Footer*/
/* ==========================================================================
   FOOTER (ESTILO PROFESIONAL)
   ========================================================================== */
.footer {
    background-color: #1a1d20 !important;
    /* Gris oscuro profundo */
    font-family: 'Figtree', sans-serif;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--celeste-biolab);
    padding-left: 5px;
}

.contact-info i {
    width: 20px;
}

.brightness-200 {
    filter: brightness(0) invert(1);
    /* Convierte el logo a blanco si no tienes versión blanca */
}

.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer .btn-outline-light:hover {
    background-color: var(--azul-biolab);
    border-color: var(--azul-biolab);
}