/* ==========================================================================
   INFINITY SOLUTIONS - HOJA DE ESTILOS PRINCIPAL
   ========================================================================== */

/* 1. VARIABLES GLOBALES */
:root {
    --primary-color: #0d47a1; 
    --secondary-color: #1565c0;
    --accent-color: #ff6d00;  
    --text-dark: #212529;
    --light-bg: #f8f9fa;
}

/* 2. ESTILOS BASE Y TIPOGRAFÍA */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
}

/* Clases de utilidad para fondos de páginas específicas */
.bg-light-gray { background-color: #f4f6f9; } /* Usado en Blog y Contacto */
.bg-off-white { background-color: #fcfcfc; } /* Usado en Artículos */

/* 3. BOTONES GLOBALES Y WHATSAPP FLOTANTE */
.btn-cta {
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s;
    border: none;
}

.btn-cta:hover {
    background-color: #e65c00;
    color: white;
    transform: scale(1.05);
}

.navbar .btn-cta {
    padding: 8px 20px; /* Ajuste para el botón en la navegación */
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ==========================================================================
   4. SECCIONES HERO (CABECERAS) - CORREGIDO
   ========================================================================== */
.hero-section, .page-hero, .category-header, .contact-hero, .article-hero {
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* Asegura el correcto posicionamiento interno */
}

.hero-section {
    padding: 140px 0 120px 0; /* Un poco más de espacio superior/inferior */
    min-height: 70vh; /* Fuerza una altura mínima visible para el fondo */
    display: flex;
    align-items: center; /* Centra el contenido verticalmente */
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat !important;
}

.page-hero { padding: 100px 0 80px; }
.article-hero { padding: 80px 0 60px; }

/* Modificadores de fondo para las páginas internas */
.hero-bg-vehiculos {
    background-image: linear-gradient(135deg, rgba(13, 71, 161, 0.95), rgba(21, 101, 192, 0.85)), url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?q=80&w=1920&auto=format&fit=crop');
}

.hero-bg-como-funciona {
    background-image: linear-gradient(135deg, rgba(13, 71, 161, 0.95), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1512428559087-560fa5ceab42?q=80&w=1920&auto=format&fit=crop');
}

.hero-bg-contacto {
    background: linear-gradient(135deg, #0d47a1, #072451);
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-bg-blog {
    background: linear-gradient(135deg, #0d47a1, #0a2f6d);
    padding: 60px 0;
    margin-bottom: 40px;
}

/* Modificadores de fondo para los Artículos Individuales */
.hero-art-aventuras { background-image: linear-gradient(rgba(13, 71, 161, 0.85), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?q=80&w=1920&auto=format&fit=crop'); }
.hero-art-geolocalizacion { background-image: linear-gradient(rgba(13, 71, 161, 0.85), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1501139083538-0139583c060f?q=80&w=1920&auto=format&fit=crop'); }
.hero-art-seguro { background-image: linear-gradient(rgba(13, 71, 161, 0.85), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1486006920555-c77dce18193b?q=80&w=1920&auto=format&fit=crop'); }


/* 5. COMPONENTES: HOME */
.feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }
.feature-box { padding: 30px 20px; border-radius: 10px; transition: box-shadow 0.3s; height: 100%; }
.feature-box:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.table-custom thead { background-color: var(--primary-color); color: white; }
.infinity-col { background-color: rgba(13, 71, 161, 0.05); font-weight: bold; color: var(--primary-color); }

/* 6. COMPONENTES: SOLUCIONES (CARROS Y MOTOS) */
.solution-card { border: none; border-radius: 15px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.solution-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.solution-card .card-header-icon { font-size: 4rem; color: var(--accent-color); padding: 20px 0 0; text-align: center; }
.solution-list li { margin-bottom: 10px; font-size: 0.95rem; }
.solution-list i { color: #28a745; margin-right: 8px; }
.process-step { position: relative; z-index: 1; }
.process-number { width: 60px; height: 60px; background-color: var(--primary-color); color: white; font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3); }

/* 7. COMPONENTES: CÓMO FUNCIONA */
.step-card { background: #fff; border-radius: 15px; padding: 40px 30px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05); height: 100%; transition: transform 0.3s; border-top: 5px solid var(--primary-color); }
.step-card:hover { transform: translateY(-5px); }
.step-number { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; background-color: var(--accent-color); color: white; font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(255, 109, 0, 0.4); border: 4px solid white; }
.step-icon { font-size: 3.5rem; color: var(--primary-color); margin: 20px 0; }
.app-feature-list li { padding: 15px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; }
.app-feature-list li:last-child { border-bottom: none; }
.app-feature-list i { font-size: 1.5rem; color: var(--primary-color); margin-right: 15px; background: var(--light-bg); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }

/* 8. COMPONENTES: BLOG Y SIDEBAR */
.blog-card { border: none; border-radius: 12px; overflow: hidden; background-color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.blog-img-placeholder { height: 200px; background-color: #e9ecef; display: flex; align-items: center; justify-content: center; color: #adb5bd; font-size: 3rem; }
.blog-card .card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category-tag { font-size: 0.75rem; text-transform: uppercase; font-weight: bold; color: var(--accent-color); letter-spacing: 1px; margin-bottom: 10px; display: inline-block; }
.sidebar-widget { background-color: white; border-radius: 12px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; }
.widget-cta { background: linear-gradient(135deg, var(--accent-color), #e65c00); color: white; }

/* 9. COMPONENTES: ARTÍCULOS INDIVIDUALES */
.article-content { font-size: 1.15rem; line-height: 1.8; color: #4a4a4a; }
.article-content h2, .article-content h3 { color: var(--primary-color); font-weight: bold; margin-top: 40px; margin-bottom: 20px; }
.article-content img { border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin: 30px 0; width: 100%; height: auto; }
.custom-blockquote { background-color: rgba(255, 109, 0, 0.05); border-left: 5px solid var(--accent-color); padding: 20px 30px; margin: 40px 0; border-radius: 0 10px 10px 0; font-style: italic; font-weight: 500; color: var(--text-dark); }
.inline-cta { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; padding: 30px; border-radius: 12px; text-align: center; margin: 40px 0; box-shadow: 0 10px 20px rgba(13, 71, 161, 0.15); }
.sticky-sidebar { position: sticky; top: 100px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: white; margin-right: 10px; transition: transform 0.3s; text-decoration: none; }
.share-btn:hover { transform: translateY(-3px); color: white; }
.bg-whatsapp { background-color: #25d366; }
.bg-facebook { background-color: #1877f2; }
.bg-twitter { background-color: #1da1f2; }

/* 10. COMPONENTES: CONTACTO */
.info-card { background-color: white; border: none; border-radius: 12px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); height: 100%; }
.info-icon { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; }
.form-container { background-color: white; border-radius: 15px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.map-responsive { overflow: hidden; padding-bottom: 56.25%; position: relative; height: 0; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.map-responsive iframe {left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0; }

/* ==========================================================================
   11. AJUSTES DEL LOGOTIPO EN LA BARRA DE NAVEGACIÓN
   ========================================================================== */
/* Control exacto del tamaño de la imagen del logotipo */
.logo-img {
    max-height: 60px;       /* Ajusta este valor (45px o 50px) según las proporciones de tu logo */
    width: auto;            /* Evita que el logo se estire o se deforme */
    display: inline-block;
    vertical-align: middle;
}

.logo-footer {
    max-height: 70px;       /* Ajusta este valor (45px o 50px) según las proporciones de tu logo */
    width: auto;            /* Evita que el logo se estire o se deforme */
    display: inline-block;
    vertical-align: middle;
    margin-bottom:5%;
}

/* ==========================================================================
   12. CORRECCIÓN DE ALINEACIÓN DE MENÚ Y LOGOTIPO
   ========================================================================== */

/* Alineación exacta para los enlaces del menú */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    line-height: 1;         /* Restablece la altura de línea para evitar saltos */
}

/* Asegura que el contenedor de la lista no herede márgenes extraños */
.navbar-nav {
    display: flex;
    align-items: center;    /* Centrado vertical estricto para pantallas grandes */
}

/* ==========================================================================
   13. MENÚ DESPLEGABLE AL PASAR EL RATÓN (HOVER)
   ========================================================================== */

/* Solo aplicamos el hover en pantallas grandes (computadoras/tablets horizontales) */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Evita que haya un espacio vacío y se cierre al mover el ratón */
        animation: fadeDropdown 0.3s ease forwards;
    }
    
    /* Asegura que el enlace principal mantenga el color activo al estar desplegado */
    .navbar .dropdown:hover > .nav-link {
        color: var(--primary-color);
    }
}

/* Animación suave de aparición */
@keyframes fadeDropdown {
    from {
        opacity: 0;
        transform: translateY(10px); /* Entra ligeramente desde abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   14. ESPACIADO ENTRE OPCIONES DEL MENÚ (SOLO ESCRITORIO)
   ========================================================================== */

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin-left: 12px;  /* Espacio hacia la izquierda */
        margin-right: 12px; /* Espacio hacia la derecha */
    }
}

.link-footer {
    color:#ff6d00 !important;
    text-decoration: none !important;
}

.bg-servicios
{
    background-color: #0c2c5f !important;
}

/* ==========================================================================
   15. ESTILOS DE ICONOS DE REDES SOCIALES
   ========================================================================== */
.bi-facebook:hover { color: #1877f2; transition: 0.3s; }
.bi-instagram:hover { color: #e4405f; transition: 0.3s; }
.bi-tiktok:hover { color: #000000; background-color: #fff; border-radius: 5px; transition: 0.3s; }

/* Asegura espacio entre el logo y los iconos */
.footer-social-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1); /* Una línea sutil para separar */
}