/* Usar la fuente Poppins importada de Google Fonts */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 56px; /* Ajuste para la barra de navegación fija */
}

/* Estilos Base para la sección principal (Mobile First) */
.hero-section {
    background-image: url('bannerprin.jpg');
    background-size: contain;      /* Cubre el área sin deformar */
    background-position: center; /* Mantiene el centro del diseño visible */
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    
    /* ALTURA PARA MÓVILES */
    /* Usamos min-height en lugar de height fijo para evitar que el contenido se desborde */
    min-height: 30vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ajuste específico para Android: Aumentar altura para mejor visualización */
body.is-android .hero-section {
    min-height: 30vh;
}

/* Tablets (Pantallas medianas) */
@media (min-width: 468px) {
    .hero-section {
        min-height: 70vh;
        background-size: contain;
        position: relative;
        top: 0px!important;

        /* Si el texto del banner se corta mucho, podrías probar "contain" 
           pero "cover" con una buena altura suele ser lo mejor */
    }
}

/* Tablets (Pantallas medianas) */
@media (min-width: 768px) {
    .hero-section {
        min-height: 90vh;
        background-size: cover;
        position: relative;
        top: 0px!important;
        /* Si el texto del banner se corta mucho, podrías probar "contain" 
           pero "cover" con una buena altura suele ser lo mejor */
    }
}

/* Laptops y Desktop Pequeño (992px a 1200px) */
@media (min-width: 992px) {
    .hero-section {
        height: 120vh; /* No usamos 100vh para que el usuario vea que hay contenido abajo */
    }
}

/* Pantallas Grandes / Monitores 4K (1400px o más) */
@media (min-width: 1400px) {
    .hero-section {
        height: 120vh; 
        background-position: top center; /* Ajusta si el aire del diseño está arriba */
    }
}

/* Corrección para el H1 si está oculto o es redundante */
.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Ayuda a leer si el fondo es claro */
    margin: 0;
    padding: 20px;
}

.hero-section h1 {
    color: #fff;
}

/* Ajustes para las tarjetas de características y precios */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.border-primary {
    border-color: #0d6efd !important;
}

/* Botones Flotantes de Redes Sociales */
.floating-buttons {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-float {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.btn-float:hover {
    transform: scale(1.1);
    color: white;
}

.btn-whatsapp { background-color: #25D366; }
.btn-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* Banner Flotante de Conversión */

/* Banner Flotante de Conversión Mejorado */
.scroll-banner {
    position: fixed;
    left: 20%;
    right: 20px; /* Posiciona a la derecha */
    transform: translateX(-50%) translateY(100%);
    width: auto; /* Ancho automático según el contenido */
    max-width: 60%; /* Para evitar que sea demasiado ancho en móviles */
    background: #25D366; /* Verde oficial de WhatsApp */
    backdrop-filter: blur(12px);
    color: white;
    padding: 12px 40px 12px 20px;
    border-radius: 50px;
    z-index: 1050;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), right 0.6s ease;
}

.scroll-banner.visible {
    transform: translateY(0); /* Elimina la traslación horizontal */
    bottom: 30px;
}

.close-banner {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-banner:hover {
    opacity: 1;
}

/* Ajustes específicos para Celulares */
@media (max-width: 576px) {
    .scroll-banner {
        padding: 8px 35px 8px 15px;
        font-size: 0.8rem;
        width: 94%;
        gap: 8px;
        max-width: 99vw;
    }
    .scroll-banner.visible {
        bottom: env(safe-area-inset-bottom, 20px);
    }
    .scroll-banner .btn-sm {
        font-size: 0.7rem;
        padding: 5px 12px;
        white-space: nowrap;
    }
}