/* ====================== ESTILOS BASE ====================*/

/* Tipografía y color general del cuerpo */
body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
    scroll-behavior: smooth;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* ====================== TITULOS ====================*/

/* Título central de cada sección */
.seccion h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /* Sombra suave */
}

/* ====================== NAVBAR ======================*/

/* Estilo base del navbar oculto inicialmente */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transform: translateY(-100%);
    /* Oculto hacia arriba */
    opacity: 0;
    /* Transparente */
    background-color: rgba(0, 0, 0, 0.85);
    /* Fondo oscuro semi-transparente */
    transition: transform 0.5s ease, opacity 0.5s ease;
    /* Transición suave */
}

/* Navbar visible al hacer scroll */
.navbar.scrolled {
    transform: translateY(0);
    /* Baja a su posición */
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
    /* Ligeramente más claro */
    backdrop-filter: blur(5px);
    /* Difumina el fondo */
}

/* Estilo de los enlaces del navbar */
.navbar-nav .nav-link {
    position: relative;
    /* Para subrayado animado */
    transition: color 0.3s ease;
}

/* Subrayado verde animado */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #25D366;
    /* Verde WhatsApp */
    transition: width 0.3s;
}

/* Subrayado completo al hacer hover o estar activo */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Cambio de color al pasar el mouse */
.navbar-nav .nav-link:hover {
    color: #25D366;
}

/* ====================== SECCIONES =====================*/

/* Estilo general para todas las secciones */
.seccion {
    padding: 80px 0;
    text-align: center;
}

/* Estilo especial para la portada (inicio) */
.seccion-inicio {
    background: linear-gradient(to right, #00c853, #03a9f4);
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Fondos con degradado para cada sección */
.seccion-nosotros {
    background: linear-gradient(to right, #2980b9, #6dd5fa);
    color: white;
}

.seccion-productos {
    background: linear-gradient(to right, #f39c12, #f1c40f);
}

.seccion-productos h5 {
    color: #333;
}

.seccion-testimonios {
    background: linear-gradient(to right, #5dd3cd, #2980b9);
}

.seccion-contacto {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    color: white;
}

/* ============================ TESTIMONIOS =========================*/

/* Caja de testimonios con estilo */
.seccion-testimonios blockquote {
    background: #f8f9fa;
    color: #000;
    padding: 20px;
    border-left: 5px solid #25D366;
    border-radius: 10px;
    font-style: italic;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seccion-testimonios blockquote:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/*a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #25D366;
}*/

/* ============================ BOTONES FLOTANTES ======================*/

/* Estilo base para botones flotantes (WhatsApp) */
.btn-whatsapp {
    position: fixed;
    bottom: 60px;
    right: 40px;
    background-color: #25D366;
    color: white;
    padding: 10px;
    border-radius: 50%;
    z-index: 9999;
    display: flex;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Animación del botón WhatsApp al pasar el mouse */
.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.05) rotate(10deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Animación del botón WhatsApp al hacer click */
.btn-whatsapp:active {
    transform: scale(0.95);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
}



/* Estilo base para botones flotantes (Subir) */
.btn-subir {
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    display: flex;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.btn-subir img {
    width: 40px;
    height: 40px;
}

/* Botón de subir (flecha para volver arriba) */
#btn-subir {
    bottom: 60px;
    left: 40px;
    opacity: 0;
    /* Oculto por defecto */
    pointer-events: none;
    background-color: #05111f;
    padding: 8px;
    border-radius: 15px;
    transition: opacity 0.8s ease;
}

/* Se muestra al agregar la clase .visible con JavaScript */
#btn-subir.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Hover y active del botón subir */
.btn-subir:hover {
    transform: translateY(-5px);
    /* Se levanta */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.btn-subir:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================BOTON DE COMPRA ==========================*/

/* Botón WhatsApp para comprar */
.btn-whatsapp-compra {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
    border: none;
}

.btn-whatsapp-compra:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp-compra:active {
    transform: scale(0.95);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
}

/* ==================== RESPONSIVE ==================== */

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .seccion h2 {
        font-size: 2rem;
    }

    .btn-whatsapp,
    .btn-subir {
        width: 50px;
        height: 50px;
    }

    .btn-whatsapp img,
    .btn-subir img {
        width: 30px;
        height: 30px;
    }
}

/* Mejorar tamaño de fuente en moviles */
@media (max-width: 768px) {
    .seccion h2 {
        font-size: 2rem;
    }

    .btn-whatsapp,
    .btn-subir {
        width: 50px;
        height: 50px;
    }

    .btn-whatsapp img,
    .btn-subir img {
        width: 30px;
        height: 30px;
    }
}

/* ============== ESTILO IMAGEN ==================*/
.card-img-top {
    height: 200px;
    /* Ajusta según tu diseño */
    object-fit: cover;
}

.img-caja {
    height: 200px;
    /* Ajusta según necesites */
    object-fit: contain;
    /* Para que no se recorte */
}