/* mantenimiento */
/* Asegúrate de que el body y el html ocupen toda la pantalla */
html, body {
  height: 100%;
  margin: 0;
}

/* Estilo general del área de mantenimiento */
.maintenance {
  display: flex;
  justify-content: center;  /* Centrado horizontal */
  align-items: center;      /* Centrado vertical */
  height: 100vh;            /* Toma toda la altura del viewport */
  color: white;
  text-align: center;
  padding: 40px;
}

/* Contenedor interno reducido */
.maintenance-content {
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Imagen adaptable */
.maintenance-image {
  max-width: 100%;
  height: auto;
}



/* General */
body {
    background-color: #161616;
    color: white;
    margin: 0;
    padding-bottom: 60px;
    font-family: Arial, sans-serif;
}

/* Estilos del header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #161616;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.header-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.Title {
    font-weight: bold;
    margin: 0;
    font-size: 40px;
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-button {
    padding: 8px 12px;
    background-color: #ffdd57;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.search-button:hover {
    background-color: #ffd233;
}

/* Íconos de carrito y perfil */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart, .user-profile {
    text-decoration: none;
    color: white;
    font-size: 18px;
    position: relative;
}

.cart:hover, .user-profile:hover {
    color: #ffdd57;
}

/* Contador del carrito */
.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff5733;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #851f1f;
    padding: 10px 20px;
    border-radius: 5px;
    position: sticky;
    top: 0;
    z-index: 1000;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #818080;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
}


/* Estilo para productos recientes */
#productos-recientes {
    padding: 20px;
    background-color: #222;
    color: white;
    text-align: center;
}

.productos-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.producto {
    background-color: #333;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.producto p {
    font-size: 16px;
    margin: 10px 0 5px;
    color: #ffdd57;
}

.producto .precio {
    font-size: 14px;
    color: #fff;
}

/* Estilo para la barra de descuentos */
#barra-descuentos {
    padding: 15px;
    border-radius: 5px;
    background-color: #851f1f;
    color: white;
    text-align: center;
}

.descuentos-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.descuento {
    background-color: #ffdd57;
    color: black;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.descuento:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Sección de productos */
#productos-grid {
    padding: 20px;
    background-color: #161616;
    color: white;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8 columnas horizontales */
    grid-auto-rows: minmax(150px, auto);  /* Filas dinámicas con un tamaño mínimo */
    gap: 20px; /* Espacio entre los productos */
    justify-items: center;
    align-items: start;
    margin: 0 auto;
    max-width: 90%; /* Ajusta el ancho máximo del contenedor */
}

/* Estilo de cada producto */
.producto {
    background-color: #333;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 150px; /* Ancho fijo para cada producto */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.producto p {
    font-size: 14px;
    margin: 10px 0 5px;
    color: #ffdd57;
}

.producto .precio {
    font-size: 12px;
    color: #fff;
}

/* Footer principal */
footer {
    background-color: #000000;
    border-radius: 15px;
    color: white;
    padding: 40px 20px;
    text-align: left;
    position: fixed; /* Fijo al fondo */
    bottom: -100%; /* Oculto inicialmente */
    left: 0;
    width: 100%;
    z-index: 100;
    transition: bottom 0.5s ease-in-out; /* Transición para mostrar/ocultar */
}

/* Contenedor del footer */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo de las secciones */
.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #ffdd57;
}

.footer-section p, .footer-section ul, .footer-section li {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffdd57;
}

/* Estilo visible (cuando llega al final del scroll) */
.footer.visible {
    bottom: 0; /* Aparece en la parte inferior */
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

/* Sección inferior del footer */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Responsive: Menú desplegable */
@media screen and (max-width: 768px){
    .grid-container {
        grid-template-columns: repeat(4, 1fr); /* Cambia a 4 columnas en pantallas pequeñas */
    }
 
    /* Barra de búsqueda */
    .search-bar {
        display: flex;
        align-items: center;
        flex-grow: 1;
        max-width: 1px;
        margin: 0 2px;
    }

    .search-input {
        /*flex-grow: 1;
        padding: 1px 1px;*/
        border: none;
        /*border-radius: 4px 0 0 4px;
        outline: none;*/
    }

    .search-button {
        padding: 8px 12px;
        background-color: #ffdd57;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        font-size: 14px;
    }

    .search-button:hover {
        background-color: #ffd233;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #2d89ef;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
 }

@media screen and (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(6, 1fr); /* Cambia a 6 columnas en pantallas medianas */
    }
}

@media screen and (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Cambia a 2 columnas en pantallas muy pequeñas */
    }
}