/* Fondo del body */
body {

    background-image: url("/static/uploads/intento.webp");
    color: #333; /* Texto oscuro */
    font-family: 'Roboto', sans-serif;
    margin: 0; /* Elimina cualquier margen predeterminado del body */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Navbar styles */
.navbar {
    background-color: transparent !important; /* Color de fondo similar */
    color: #d4af37 !important; /* Texto dorado */
    padding: 1em 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd; /* Línea de separación */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: black !important; /* Color del texto */
    font-weight: bold !important;
    font-size: 1.5em;
    font-family: 'Roboto', sans-serif;
}

.navbar-brand img {
    height: 3em;
    margin-right: 2em;
    margin-left: 3em;
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

.navbar-nav .nav-item {
    margin: 0 1.5em;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

.navbar-nav .nav-link {
    color: #333 !important; /* Color oscuro para los enlaces */
    font-weight: normal;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: relative;
    z-index: 1;
    font-family: 'Roboto', sans-serif;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: black; /* Barra negra */
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
    z-index: 0;
}

.navbar-nav .nav-link:hover {
    color: #ffd700 !important; /* Color dorado al pasar el cursor */
}

.navbar-nav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
    border-color: #333 !important; /* Color oscuro para el borde del toggler */
}

.dropdown-menu {
    background-color: #fff !important; /* Fondo blanco para el menú desplegable */
    color: #333 !important; /* Texto oscuro */
}

.dropdown-item:hover {
    background-color: #ffd700 !important; /* Fondo dorado al pasar el cursor */
    color: #fff !important; /* Texto blanco al pasar el cursor */
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.highlight-product {
    background-color: transparent; /* Fondo blanco */
    height: auto;
    padding: 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 2em;
    transition: transform 0.3s ease-in-out;
    animation: fadeIn 2s ease-in-out;
}

.highlight-product:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.advertisement {
    background-color: transparent;
    height: 25em;
    margin-top: 8em; /* Añadir margen superior */
    margin-bottom: 2em;
    padding: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 2s ease-in-out;
    background-image: url("../uploads/imagen_2024-06-02_152502378-removebg-preview.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center; /* Centra la imagen */
}


.producto-info {
    text-align: center;
}

/* Pie de página */
.footer {
    background-color: whitesmoke; /* Color de fondo similar al de la imagen */
    color: black; /* Texto oscuro */
    padding: 2em 0;
    border-top: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer .column {
    flex: 1;
    min-width: 200px;
    margin: 1em;
}

.footer .column h4 {
    font-weight: bold;
    margin-bottom: 1em;
}

.footer .column p, .footer .column a {
    color: black; /* Texto oscuro */
    text-decoration: none;
    margin-bottom: 0.5em;
    display: block;
    font-family: 'Roboto', sans-serif;
}

.footer .column a:hover {
    text-decoration: underline;
}

.footer .payment-methods img {
    margin-right: 0.5em;
    height: 2em;
}

.offer-banner {
    font-family: "Roboto Light";
    background: linear-gradient(90deg, whitesmoke 0%, floralwhite 100%);
    color: black;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    animation: highlight 1s infinite alternate;
    text-align: center;
    font-size: 1.2em;
    white-space: nowrap;
}



/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .offer-banner {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
        padding: 0.5em;
        border-radius: 10px;
        font-size: 1em;
    }

    .navbar {
        margin-top: 60px; /* Añade margen superior para compensar el espacio del banner */
    }
}

/* Estilos específicos para pantallas pequeñas */
@media (max-width: 429px) {
    .offer-banner {
        top: 10px;
        left: 10px;
        right: 10px;
        font-size: 14px;
        padding: 5px;
    }

    .container {
        padding: 10px;
    }

    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .footer a {
        font-size: 14px;
        margin-bottom: 5px;
    }
}

/* Estilos para pantallas medianas (430px a 768px) */
@media (min-width: 430px) and (max-width: 768px) {
    .offer-banner {
        top: 10px;
        left: 10px;
        right: 10px;
        font-size: 18px;
        padding: 8px;
    }

    .container {
        padding: 15px;
    }

    .footer {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .footer h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .footer a {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* Estilos para pantallas grandes (más de 768px) */
@media (min-width: 769px) {
    .offer-banner {
        top: 20px;
        left: 10px;
        transform: none;
        font-size: 20px;
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    .footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .footer a {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

@keyframes highlight {
    0% {
        transform: scale(1);
        background-color: whitesmoke;
        color: black;
        text-shadow: none;
    }
    50% {
        transform: scale(1.1);
        background-color: floralwhite;
        color: whitesmoke; /* Cambia el color a blanco para resaltar */
        text-shadow: 0 0 10px rgba(22, 0, 0, 0.5);
    }
    100% {
        transform: scale(1);
        background-color: whitesmoke;
        color: black;
        text-shadow: none;
    }
}
/* Estilo para la tarjeta en el carrusel */
.card {
    background-color: transparent; /* Fondo transparente para las tarjetas */
    border: none; /* Sin borde para las tarjetas */
}

/* Estilo para los elementos del carrusel */
.carousel-item {
    background-color: transparent; /* Fondo transparente para los elementos del carrusel */
}

/* Opcional: estilo para el cuerpo de la tarjeta */
.card-body {
    background-color: rgba(255, 255, 255, 0.5); /* Fondo semitransparente para el cuerpo de la tarjeta */
    border-radius: 10px; /* Bordes redondeados */
}

/* Opcional: estilo para la imagen */
.card-img-top {
    border-radius: 10px; /* Bordes redondeados para la imagen */
    height: 30em;
}

