/* =============================================
   CLOUD ENTERPRISE SERVICES - ESTILOS GLOBALES
   ============================================= */

/* SCROLL SUAVE */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

/* =============================================
   NAVBAR DINÁMICO
   ============================================= */
#navbar {
    transition: all 0.4s ease-in-out;
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 70px;
}

/* TIPOGRAFÍA Y LINKS */
.nav-link {
    color: #000000;
    transition: color 0.3s;
    font-weight: 800;
}

#navbar.scrolled .nav-link {
    color: #1e3a8a;
}

/* =============================================
   VIDEO CONFIGURACIÓN
   ============================================= */
.video-viewport {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-viewport iframe {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border: 0;
    pointer-events: none;
}

/* =============================================
   ESTILO LISTADO PERFIL
   ============================================= */
.perfil-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.perfil-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 6px;
}

/* =============================================
   SECCIÓN CLIENTES MÉDICOS
   ============================================= */
.medical-client-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.medical-client-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    transform: translateY(-5px);
}

.medical-client-card img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* =============================================
   SECCIÓN CONTACTO
   ============================================= */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon-bg {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-icon-bg img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Ajuste específico para el icono de la web */
.contact-item-icon-img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    filter: none;
}

/* =============================================
   SLIDER / RULETA DE CLIENTES
   ============================================= */

/* Contenedor base de cada fila */
.slider-row {
    width: 100%;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

/* Carril que se mueve */
.track-row {
    display: flex;
    align-items: center;
    width: max-content;
}

.logo-card {
    width: 180px;
    flex-shrink: 0;
    padding: 0 30px;
    display: flex;
    justify-content: center;
}

.logo-card img {
    max-height: 60px;
    width: auto;
    filter: grayscale(0%);
    opacity: 0.7;
    transition: all 0.4s ease;
    object-fit: contain;
}

.logo-card img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

/* Animaciones del slider */
@keyframes scrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pausar al pasar el mouse sobre la sección */
.slider-row:hover .track-row {
    animation-play-state: paused;
}

/* =============================================
   ANIMACIONES MARQUEE (CERTIFICACIONES/ALIANZAS)
   ============================================= */
@keyframes marquee {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

@keyframes marquee2 {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(0%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee2 {
    animation: marquee2 30s linear infinite;
}

/* =============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================= */

/* Contenedor del botón flotante */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
    /* Estado inicial: oculto y desplazado */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Clase que se activa con el scroll */
.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* El círculo del icono */
.whatsapp-float i {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* La etiqueta de texto */
.whatsapp-text {
    background-color: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px 5px 5px 30px;
    margin-right: -10px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Ocultar texto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

/* Mostrar texto al pasar el mouse */
.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    margin-right: 5px;
}

/* Animación del icono al pasar el mouse */
.whatsapp-float:hover i {
    background-color: #128c7e;
    transform: scale(1.1);
}
