/* =========================================
   CONFIGURACIÓN GENERAL (FUENTE NUEVA)
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    /* Nueva fuente estilo Aptos */
    font-family: 'Inter', sans-serif;
    color: #555;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    /* También usamos Inter para los títulos para mayor consistencia */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.text-justify {
    text-align: justify;
}

/* =========================================
   CORRECCIÓN DE SCROLL
   ========================================= */
section {
    scroll-margin-top: 120px; 
}

#home {
    scroll-margin-top: 0;
}

/* =========================================
   BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================= */

.navbar-brand img {
    height: 80px; 
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: transparent !important; /* Inicio Transparente */
    transition: all 0.4s ease-in-out;
}

/* COLOR DEL MENÚ AL BAJAR (AZUL TIPO LOGO) */
.navbar-scrolled {
    background-color: #003366 !important; /* Azul Marino Profundo */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 700;
}

/* =========================================
   SECCIÓN HERO (INICIO)
   ========================================= */
#home {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    background-attachment: fixed;
}

#home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* =========================================
   ANIMACIONES
   ========================================= */
.animate-up {
    animation: fadeInUp 1s ease-out;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   COMPONENTES
   ========================================= */
.card {
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.service-box {
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: #0d6efd;
}

.service-box .icon-box i {
    transition: transform 0.3s;
}

.service-box:hover .icon-box i {
    transform: scale(1.2);
}

/* =========================================
   CLIENTES / MARCAS
   ========================================= */
.grayscale-logos img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    max-height: 80px;
}

.grayscale-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
    border-top: 5px solid #0d6efd;
}

/* =========================================
   BOTÓN FLOTANTE WHATSAPP (DERECHA)
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;  /* Distancia desde abajo */
    right: 30px;   /* CAMBIO AQUÍ: Distancia desde la DERECHA */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* =========================================
   RESPONSIVE (MOVIL)
   ========================================= */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand img {
        height: 65px;
    }
    
    .navbar-collapse {
        /* También cambiamos el fondo del menú móvil a azul */
        background: rgba(0, 51, 102, 0.95);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        /* Ajuste para móvil a la derecha */
        right: 20px; 
        left: auto; /* Aseguramos que no se pegue a la izquierda */
    }
}