/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}


/* Barra de navegación */
/* Barra de navegación mejorada */
.navbar {
    
    width: 100%;
    top: 0;
    left: 0;
    background: rgb(240, 249, 255);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Contenedor de logo + enlaces */
.navbar .nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Estilo del logo */
.navbar .logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Estilos para los enlaces */
.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar .nav-links a {
    color: #567;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
    font-size: 16px;
    position: relative;
}

/* Efecto hover con subrayado dinámico */
.navbar .nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #ff4c00;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar .nav-links a:hover {
    color: #ff4c00;
    transform: translateY(-2px);
}

.navbar .nav-links a:hover::after {
    width: 100%;
}


/* Slider de imágenes */
.slider {
    position: relative;
    width: 100%;
    height: 800px; /* Ajusta la altura según necesidad */
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Sección de Marcas Populares */
#marcas.section {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.marcas-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
    
}

.marca {
    flex: 1 1 calc(16.66% - 15px); /* 6 columnas */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* Ajusta la altura según necesidad */
    border: 1px solid #ccc; /* Color del borde */
}

#marcas h3{
    font-weight: bold;
    margin-bottom: 15px;
    color:  #456;
}

.marca img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.marca img:hover {
    scale: 1.1;
    transition: all 0.5s ease;
}

/* Sección de Información */
.info-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0;
    width: 90%;
    margin: 0 auto;
}

.info-box {
    flex: 1;
    padding: 20px;
    text-align: center;
    color: #fff;
    border-radius: 0px;
    
}

.box1 { 
    background: rgb(33,52,97); 
}

.box1 h4, .box2 h4, .box3 h4 { 
    text-align: left;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.box1 p, .box2 p, .box3 p { 
    text-align: justify;
    
}

.box2 { background: rgb(255,0,0); }
.box3 { background: rgb(226,184,8); }

.btn.btn-box1
{
    background-color: #fff;
    color: rgb(33,52,97);
    font-weight: bold;
    border-radius: 0px;
    margin-top: 50px;
}

.btn.btn-box2
{
    background-color: #fff;
    color: rgb(255,0,0);
    font-weight: bold;
    border-radius: 0px;
    margin-top: 50px;
}

.btn.btn-box3
{
    background-color: #fff;
    color: rgb(226,184,8);
    font-weight: bold;
    border-radius: 0px;
    margin-top: 50px;
}


/*categorias*/
.section {
    text-align: center;
    padding: 10px 0;
}

.categorias-grid {
    display: flex;
    justify-content: center;
    gap: 120px;
    flex-wrap: wrap;
    max-width: 80%;
    margin: auto;
}

.categoria {
    text-align: center;
}

#categorias h3{
    font-weight: bold;
    margin-bottom: 20px;
    color:  #456;
}

.categoria img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    padding: 5px;
}

.categoria p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}



/* Envios */
.envios {
    border-top: 1px solid rgb(223, 225, 226);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(243, 245, 246);
    padding: 20px;
    text-align: center;
}

.envio-item {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fff;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 130px;
}

.envio-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.envio-item p {
    font-size: 14px;
    color: #666;
}



/* Footer */
.footer {
    border-top: 1px solid rgb(223, 225, 226);
    background-color: rgb(243, 245, 246);
    padding: 40px 0;
    color: #333;
}

.footer h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #000;
}

.footer p, .footer ul {
    font-size: 14px;
    color: #555;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #ff6600;
}

.footer-image {
    text-align: center;
    margin-top: 20px;
}

.footer-image img {
    max-width: 100%;
    height: auto;
}

.btn-footer
{
    background: rgb(255,0,0);
    color: #fff;
    border-radius: 0px;
    margin-top: 1rem;
    padding: 10px 20px;
    font-weight: bold;
}

.form-control
{
    border-radius: 0px;
}

.btn-footer:hover
{
    background: rgb(225,0,0);
    color: #fff;
    font-weight: bold;
}

.footer-bottom {
    background-color: #456;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}



.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen dentro del contenedor sin recortarla */
    border-radius: 50%;
    background-color:  #fff; /* Fondo para que se vea mejor */
    padding: 15px; /* Agrega un pequeño espacio interno */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}



/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background: #fff;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .nav-links a {
        display: block;
        text-align: center;
        padding: 10px 0;
    }
    .slider {
        height: 300px;
    }
    .slide img {
        object-fit: cover;
    }
    .marcas-grid {
        flex-direction: column;
    }
    .marca img {
        width: 60px;
        height: 60px;
    }
    .whatsapp-float {
        width: 40px;
        height: 40px;
    }
}
