/* 1. CONFIGURACIÓN GLOBAL */
/* Importamos Inter para cuerpo y una Serif elegante para títulos */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #2D3436;
    background-color: #ffffff;
}

/* Aplicamos Serif a todos los niveles de títulos */
h1, h2, h3, h4, h5, .section-title, .navbar-brand {
    font-family: 'Playfair Display', serif; 
    letter-spacing: 0; 
}

.section-title {
    font-weight: 800;
    font-size: 2.25rem;
    color: #001A33;
    text-transform: uppercase;
}

/* 2. NAVBAR Y NAVEGACIÓN */
.transition-custom {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

/* Estado transparente (Navbar Dark) */
#mainNavbar.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.952);
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
}

#mainNavbar.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

/* Estado con Scroll (Navbar Light) */
.navbar-scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.navbar-scrolled .navbar-nav .nav-link {
    color: #2e2c2c;
}

.navbar-scrolled .navbar-nav .nav-link:hover {
    color: #01051d;
}

/* Animación de línea inferior en links */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* 3. BOTONES  */

/* Botón de Contacto en Navbar */
.btn-contact {
    border: 1.5px solid #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-scrolled .btn-contact {
    border-color: #003366;
    color: #003366;
}

.btn-contact:hover {
    background-color: #7698ca;
    border-color: #e2e8ee;
    color: #ffffff;
}

/* Botón Best Seller (Azul) */
.btn-best-seller {
    border: 1px solid #0476d4;
    color: #0476d4;
    background: transparent;
    font-size: 0.8rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-best-seller:hover {
    background-color: #0465d4;
    color: #ffffff;
}

/* 4. HERO SECTION */
/* 4. HERO SECTION CON VIDEO */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden; /* Evita que el video se salga de los bordes */
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Clave para que el video cubra todo sin deformarse */
}

/* Aseguramos que el overlay esté por encima del video pero debajo del texto */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}
/* .hero-section {
    height: 100vh;
    background: url('fon.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
} */

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,26,51,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-section h1 {
    font-size: 4.5rem;
    line-height: 1;
}

/* 5. TARJETAS DE PRODUCTO (Estandarizadas) */
.product-card {
    border: 1px solid #edf2f7;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
    border-color: #003366;
}

.product-card img {
    height: 120px;
    object-fit: contain;
}

.product-card ul li {
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-title {
    font-weight: 700;
    color: #001A33;
    font-size: 1.1rem;
}

/* 6 SECCION CONTACTO  */
#contacto .form-control {
    border: 1px solid #edf2f7;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s;
}

#contacto .form-control:focus {
    border-color: #003366;
    box-shadow: none;
    background-color: #f8faff;
}

#contacto .text-primary {
    color: #003366 ; 
}

#contacto .btn-primary {
    background-color: #003366;
    border: none;
    letter-spacing: 1px;
}

#contacto .btn-primary:hover {
    background-color: #001A33;
}
/* 7 BOTON SUBIR ARRIBA y WHATTSAPP*/
#btnBackToTop, #btnWhatsAppSticky {
    display: none; 
    position: fixed;
    bottom: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border: none;
    display: none; 
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

/* Botón Subir (Derecha) */
#btnBackToTop {
    right: 30px;
    background-color: #003366; 
}

/* Botón WhatsApp (Izquierda) */
#btnWhatsAppSticky {
    left: 30px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    display: none; 
}

/* Efectos al pasar el mouse */
#btnBackToTop:hover, #btnWhatsAppSticky:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    color: white;
}

/* 8 FOOTER */
footer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer .hover-link:hover {
    color: #0d6efd ; /* Azul de Bootstrap */
    padding-left: 5px;
    transition: all 0.3s ease;
}

footer .text-secondary {
    color: #adb5bd ; /* Gris claro para que sea legible sobre negro */
}

footer hr {
    opacity: 0.1;
}

/* Ajuste para iconos de redes sociales */
footer .fa-brands:hover {
    color: white ;
    transform: translateY(-3px);
    transition: 0.3s;
}

/* 9  CARDS */

.img-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-container img {
    max-height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-zoom {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03); 
}

.card-zoom:hover {
    transform: scale(1.05); 
    background: rgba(255, 255, 255, 0.07); 
    border-color: #0476d4;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.card-zoom:hover .img-container img {
    transform: scale(1.1);
}

/* --- Títulos de productos (Conectividad) --- */
#conectividad .card-title {
    color: #F8FAFC; 
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}


.btn-xs {
    padding: 5px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* 10. PLATAFORMA */
#plataforma .rounded-4 {
    border-radius: 1.5rem ;
}

#plataforma .shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 26, 51, 0.15) ;
}

#plataforma .badge {
    letter-spacing: 1px;
    font-weight: 600;
}

#plataforma img {
    transition: transform 0.3s ease;
}

#plataforma img:hover {
    transform: translateY(-5px);
}
/* 11 ACESSO A CLIENTES */

.btn-login-icon {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login-icon:hover {
    background: #0476d4; 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(4, 118, 212, 0.3);
    border-color: #0476d4;
}


@media (max-width: 991.98px) {
    .btn-login-icon {
        width: 100%;
        height: auto;
        border-radius: 4px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        justify-content: center;
    }
}

/* 13. RESPONSIVIDAD */

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section { height: 80vh; text-align: center; }
    .navbar-collapse { 
        background: #dceaf7; 
        padding: 2rem; 
        margin-top: 15px;
        border-radius: 8px;
    }
    #mainNavbar.navbar-dark .navbar-nav .nav-link {
        color: #22336b;
        padding: 10px 0;
    }
}
