body {
    margin: 0;
    padding: 0;
    padding-top: 140px;
    background: rgb(249, 245, 245);
    font-size: 18px;
}


.imagen-zoom {
    transition: all 0.3s ease;
}

.imagen-zoom:hover {
    transform: scale(1.03);
}

#imagenGrande {
    max-height: 90vh;
    object-fit: contain;
}

#lista-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-centro {
    flex: 2;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}


.sub-nav-bar {
    background-color:  #007ACC;
    color: white;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 0;
}

/* contenedor del texto */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* texto en movimiento */
.marquee span {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: moverTexto 30s linear infinite;
}

/* animación */
@keyframes moverTexto {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.tags {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;

}

.tags .nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #007ACC
}

/* LOGO */
.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 20px;


}

.navbar-brand img {
    width: auto;
    height: 50px;
    object-fit: contain;


}


.buscador-contenedor {
    flex: 1;
    justify-content: flex-end;
    height: 100%
}

.banner-publicidad {
    width: 100%;
    /* Ajusta este valor para decidir qué tan alta quieres la publicidad */
    height: auto;
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    /* Color de fondo por si la imagen tarda en cargar */
}

.banner-publicidad img {
    width: 100%;
    height: auto;
    /* 'cover' evita que la imagen se estire feo, la recorta para llenar el espacio */
    display: block;
    object-fit: contain;
    /* Centra la parte importante de la foto */
}

/* En móviles bajamos un poco más el tamaño para que no estorbe */
@media screen and (max-width: 600px) {

    .container-fluid {
        flex-wrap: nowrap;
        /* 🔥 clave */
    }

    .navbar {
        height: auto; /* Permite que la barra crezca si los elementos se apilan */
        min-height: 60px;
        padding: 5px 8px;
        margin: 5px 5px; /* Reducimos márgenes laterales para ganar espacio */
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        height: 100%;
        margin-right: 10px;


    }

    .navbar-brand img {
        
        height: 40px;
        object-fit: contain;


    }



    .navbar-toggler {
        flex: 0 0 auto;
        margin-left: 3px;
    }

    .search-box {
        flex: 1;
        width: 100%;

    }

    .banner-publicidad {
        height: 90px;

    }
}

/* MENU CENTRADO (MEJORADO PARA SER RESPONSIVE) */


/* PRODUCTOS: GRID RESPONSIVE */
.lista-productos {
    margin-top: 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* PC */
    gap: 25px;
}

/* TARJETAS */
.card {
    width: 100%;
    border: none;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
    height: 260px;
    width: 100%;
    border: none;
    box-shadow: none;
    background: white;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 0px;
    margin-bottom: 0;

}

.card-body {
    flex-grow: 1;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    align-items: center;

}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1px;

}

.card-price {
    font-size: 15px;
    font-weight: bold;
    color: black;
}

.btn-comprar {
    margin-top: 5px;
    border: none;
    width: 100%;
    padding: 5px;
    font-size: 15px;
    border-radius: 16px;
    background-color:#00A3FF
}


@media screen and (max-width: 992px) {
    .lista-productos {
        margin-top: 20px;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* PC */
        gap: 25px;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        height: 100%;
        margin-right: 20px;


    }

    .navbar-brand img {
        width: auto;
        height: 40px;
        object-fit: contain;


    }

    .card {
        border-radius: 12px;
    }

    .card img {
        height: auto;
        width: 100%;
        border: none;
        box-shadow: none;
        background: white;
        object-fit: contain;
        object-position: center;
        display: block;
        padding: 0px;
        margin-bottom: 0;
    }

    .card-body {
        padding: 5px;
        text-align: center;

    }
}

/* 📱 MÓVIL */
@media screen and (max-width: 600px) {


    .lista-productos {
        grid-template-columns: 1fr;


    }

    .card img {
        height: 250px;
        width: 100%;
        object-fit: contain;
        object-position: center;
        padding: 0;
        margin-bottom: o;
    }

    .card {
        border-radius: 12px;
        width: 100%;
        height: 100%;
    }

    .logo {
        width: 30px;
        height: 50px;
    }

    body {
        font-size: 22px;
    }

    .menu-centro .nav-link {
        margin: 5px 0;
        text-align: center;
    }

    .btn-comprar {
        font-size: 10px;
    }
}

.footer {
    background-color: #007ACC;
    color: #e5e7eb;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.footer-text {
    margin-left: 0px;
    font-size: 0.9rem;

    padding: 0;
}

.footer-links {
    color: white;
    list-style: none;
    padding: 0;
}

.footer-links a {
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
}

.footer-dev {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom {
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-dev-link {
    font-size: 0.90rem;
    color: white;
    text-decoration: none;
    padding: 0;
}

.bi {
    padding: 0;
    margin-bottom: 0;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* MÓVIL */
@media (max-width: 600px) {

    .buscador-contenedor {
        margin-top: 10px;
        width: 100%;
    }

    .navbar-nav {
        gap: 10px;
    }

    .navbar-brand img {
        width: 50px;
    }
}

/* BUSCADOR ADAPTATIVO */
.navbar form {
    max-width: 500px;
}

/* MÓVIL */
@media (max-width: 600px) {

    .navbar form {
        max-width: 100%;
    }

    .navbar-brand img {
        width: 60px;
    }

    .navbar-toggler {
        margin-left: 5px;
    }
}

.navbar {

    height: 70px;
    border-radius: 10px;
    margin: 5px 20px;
    padding: 10px 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    border: 3px  #007ACC;
}

.navbar-nav .nav-link {
    background-color: #f1f3f5;
    padding: 8px 18px;
    border-radius: 10px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* HOVER */
.navbar-nav .nav-link:hover {
    background-color: #007ACC;
    color: white;
}
