:root {
    --glp-green: #0E924A;
    --glp-green-hover: #1B6438;
    --black-deep: #0a0a0aa1;
    --text-dark: #212529;
}

/* 1. Fondo del cuerpo BLANCO */
body {
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    font-family: 'Poppins', sans-serif;
}

/* 2. Navbar debe ser negro */
.navbar {
    background-color: #403E40 !important; /* Color sólido solicitado */
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--glp-green) !important; /* Mantiene la línea verde inferior */
}

/* Links del menú (Blancos porque el menú es negro) */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

/* Botón Acceso del Navbar */
.navbar .btn-glp-green {
    background-color: var(--glp-green) !important;
    border: 2px solid var(--glp-green) !important;
    color: #ffffff !important;
    font-weight: 700;
    transition: all 0.4s ease;
}

.navbar .btn-glp-green:hover {
    background-color: transparent !important;
    color: var(--glp-green) !important;
}

/* 3. SECCIÓN HERO: Fondo BLANCO con diseño limpio */
#inicio {
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    padding: 80px 0 !important;
}

#inicio h1 {
    color: var(--text-dark) !important;
    font-weight: 800;
}

#inicio h1 .text-glp-green {
    color: var(--glp-green) !important;
}

#inicio p.lead {
    color: #6c757d !important; /* Gris medio para subtítulos */
}

/* Botones del Hero */
#inicio .btn-glp-green {
    background-color: var(--glp-green) !important;
    border: 2px solid var(--glp-green) !important;
    color: #ffffff !important;
    font-weight: 700;
}

#inicio .btn-glp-green:hover {
    background-color: var(--glp-green-hover) !important;
    border-color: var(--glp-green-hover) !important;
}

#inicio .btn-outline-custom {
    background-color: transparent !important;
    border: 2px solid var(--glp-green) !important;
    color: var(--glp-green) !important;
    font-weight: 700;
}

#inicio .btn-outline-custom:hover {
    background-color: var(--glp-green) !important;
    color: #ffffff !important;
}

/* 4. Carrusel: Mantener fondo negro SOLO para las imágenes */
#instaCarousel {
    background: #000 !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
}

/* 5. Tarjetas de servicios */
.card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 30px rgba(0,0,0,0.15) !important;
    border-color: rgba(249, 115, 22, 0.2) !important;
}

.card h4 {
    color: var(--text-dark) !important;
}

.card p {
    color: #6c757d !important;
}

/* Iconos de tarjetas */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-box.bg-glp-dark {
    background-color: var(--text-dark) !important;
    color: var(--glp-green) !important;
}

.icon-box.bg-glp-green {
    background-color: var(--glp-green) !important;
    color: var(--text-dark) !important;
}

/* 6. Textos generales */
h1, h2, h3, h4 {
    color: var(--text-dark) !important;
}

p {
    color: #6c757d !important;
}

.text-glp-green {
    color: var(--glp-green) !important;
}

/* 7. PWA Install Banner */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* ==========================================
   LOGO EN NAVBAR - GRANDE PERO CONTENIDO
   ========================================== */
.navbar-brand img.logo-imagen {
    height: 60px;       /* Tamaño visual deseado (prueba 45px, 50px o 55px) */
    max-height: 50px;   /*EVITA QUE LA BARRA CREZCA MÁS ALLÁ DE ESTO */
    width: auto;
    object-fit: contain;
    margin: 0;          /* Elimina márgenes que puedan empujar la barra hacia abajo */
    padding: 0;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img.logo-imagen {
    transform: scale(1.05);
}

/* ==========================================
   FALLBACK (Ícono + Texto) PROPORCIONAL
   ========================================== */
.logo-fallback {
    display: none !important;
}

.logo-fallback.activo {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px; /* Padding reducido para no agrandar la barra */
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;    /*EVITA QUE EL TEXTO AGREGUE ALTURA EXTRA */
}

.logo-fallback.activo i {
    color: #212529;
    font-size: 1.3rem;
}

/* Fallback: ícono cuando la imagen no carga */
.logo-fallback i {
    color: #212529;
    font-size: 1.2rem;
}

/* Texto del fallback */
.logo-fallback span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

/* 8. Responsive */
@media (max-width: 768px) {
    .navbar .container {
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    #inicio {
        padding: 40px 0 !important;
    }
}

/* 9. Footer */
footer {
    background-color: #f8f9fa !important;
    padding-bottom: 80px !important;
}

/* 10. Leaflet */
.leaflet-control-attribution {
    display: none !important;
}

/* =========================================
   EFECTO LLAMA REALISTA (FUEGO VIVO)
   ========================================= */
@keyframes fire-glow {
    0% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 2px #ffcc00); 
    }
    25% { 
        transform: scale(1.15) rotate(-4deg); 
        filter: drop-shadow(0 0 8px #ff4500); 
    }
    50% { 
        transform: scale(1.05) rotate(4deg); 
        filter: drop-shadow(0 0 5px #ff9900); 
    }
    75% { 
        transform: scale(1.2) rotate(-2deg); 
        filter: drop-shadow(0 0 10px #ff0000); 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 2px #ffcc00); 
    }
}

/* Aplicar al icono de la llama al pasar el mouse */
.navbar-brand:hover .fa-fire {
    animation: fire-glow 0.4s infinite alternate ease-in-out;
    color: #ffcc00 !important; /* Amarillo fuego en el centro */
    text-shadow: 
        0 0 5px #ff9900, 
        0 0 10px #ff4500, 
        0 0 20px #ff0000 !important; /* Resplandor naranja/rojo */
    cursor: pointer;
}

/* ==========================================
   BOTÓN DESCARGA APP (Estilo App Store)
   ========================================== */
.btn-app-download {
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #212529 !important;
    font-weight: 700;
    border-radius: 10px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 20px !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-app-download.visible {
    display: inline-flex !important;
}

.btn-app-download i {
    font-size: 1.8rem;
    color: #0078d4; /* Azul Windows */
}

.btn-app-download:hover {
    background-color: #0078d4 !important;
    border-color: #0078d4 !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
}

.btn-app-download:hover i {
    color: #ffffff !important;
}

/* Ocultar en móvil */
@media (max-width: 767px) {
    .btn-app-download {
        display: none !important;
    }
}

/* ==========================================
   BOTÓN AFÍLIATE (Estilo inverso al de descarga)
   ========================================== */
.btn-afiliate {
    background: linear-gradient(135deg, #0E924A 0%, #1B6438 100%) !important;
    border: 2px solid #0E924A !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 10px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px !important;
    box-shadow: 0 4px 15px rgba(14, 146, 74, 0.4);
    text-decoration: none;
}

.btn-afiliate i {
    font-size: 1.8rem;
    color: #ffffff;
    transition: all 0.4s ease;
}

.btn-afiliate:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #1B6438 !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(14, 146, 74, 0.4);
}

.btn-afiliate:hover i {
    color: #0E924A !important;
    transform: rotate(5deg);
}

.btn-afiliate:hover small,
.btn-afiliate:hover span {
    color: #0E924A !important;
}

/* Efecto de brillo al hacer hover */
.btn-afiliate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-afiliate:hover::before {
    left: 100%;
}

.btn-afiliate {
    position: relative;
    overflow: hidden;
}

/* Responsive: ajustar en móviles */
@media (max-width: 767px) {
    .btn-afiliate {
        padding: 8px 16px !important;
        font-size: 0.9rem;
    }
    
    .btn-afiliate i {
        font-size: 1.5rem;
    }
}

/* ==========================================
   CARRUSEL DE FRASES
   ========================================== */
.frase-carousel {
    position: relative;
    text-align: center;
}

.frase-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    font-size: 1.15rem;
    line-height: 1.6;
}

.frase-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.frase-item strong {
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: 5px;
}

/* Indicadores de puntos */
.frase-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.frase-indicators .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.frase-indicators .dot.active {
    background-color: #0E924A;
    width: 24px;
    border-radius: 4px;
}

.frase-indicators .dot:hover {
    background-color: rgba(14, 146, 74, 0.6);
}

/* Responsive */
@media (max-width: 767px) {
    .frase-carousel {
        min-height: 100px;
    }
    
    .frase-item {
        font-size: 1rem;
    }
    
    .frase-item strong {
        font-size: 1.1rem;
    }
}

/* ==========================================
   LOGOS DE EMPRESAS CON AJUSTE AUTOMÁTICO
   ========================================== */

/* Contenedor de la imagen */
.empresa-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

/* Imagen del logo */
.empresa-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Efecto hover en la imagen */
.empresa-card:hover .empresa-logo {
    transform: scale(1.05);
}

/* Icono de respaldo */
.empresa-icono {
    display: none;
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Si la imagen falla, mostrar icono */
.empresa-logo[style*="display: none"] + .empresa-icono {
    display: block !important;
}

/* Responsive: ajustar en móviles */
@media (max-width: 767px) {
    .empresa-logo-container {
        height: 80px;
    }
    
    .empresa-icono {
        font-size: 2.5rem;
    }
}
/* ==========================================
   EMPRESAS EN LÍNEA CON FLECHAS SEPARADORAS
   ========================================== */

.empresas-linea-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

.empresa-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 80px;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.empresa-logo-box:hover {
    transform: scale(1.05);
}

.empresa-logo-simple {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Flechas verdes entre logos */
.empresa-flecha-separador {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0E924A;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Responsive: Tablets */
@media (max-width: 768px) {
    .empresas-linea-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .empresa-flecha-separador {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .empresa-logo-box {
        min-width: 200px;
    }
}

/* Responsive: Móviles */
@media (max-width: 576px) {
    .empresa-flecha-separador {
        display: none;
    }
}
/* ==========================================
   BOTÓN VERDE GLOBAL (Navbar, Modal, etc.)
   ========================================== */
.btn-glp-green {
    background-color: var(--glp-green) !important;
    border: 2px solid var(--glp-green) !important;
    color: #ffffff !important;
    font-weight: 700;
    transition: all 0.4s ease;
}

/* Hover normal (se oscurece) */
.btn-glp-green:hover {
    background-color: var(--glp-green-hover) !important;
    border-color: var(--glp-green-hover) !important;
    color: #ffffff !important;
}

/* Hover específico SOLO para el botón del Navbar (si quieres que se ponga transparente al pasar el mouse allí) */
.navbar .btn-glp-green:hover {
    background-color: transparent !important;
    color: var(--glp-green) !important;
}