/* ================= RESET ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #000;
    color: #eee;
    overflow-x: hidden;
}

/* ================= BARRA MERCADO ================= */
.mercado {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    background-color: #000;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #219;
}

#buscador,
#categoria {
    width: 180px;
    padding: 8px;
    border-radius: 10px;
    border: 3px solid #219;
    background-color: #000;
    color: #eee;
}

/* ================= SECCIÓN ================= */
section {
    background-color: #000;
    padding: 20px 0;
}

/* ================= TÍTULO ================= */
.catalogo {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

/* ================= CONTENEDOR PRODUCTOS ================= */
.caja {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    border-top: 2px solid #48e;
}

/* ================= PRODUCTO ================= */
.cajita {
    width: 220px;
    background-color: #000;
    color: #fff;
    border-top: 2px solid #48e;
    border-bottom: 2px solid #48e;
    text-align: center;
    padding: 8px;
    display: none;
}


/* ================= LINK PRODUCTO ================= */
.hero__cta {
    text-decoration: none;
    color: #eee;
    display: block;
}

.hero__cta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* ================= PAGINACIÓN ================= */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.paginacion button {
    padding: 6px 14px;
    border: none;
    background-color: #000;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #48e;
}

.paginacion button:hover,
.paginacion .activa {
    background-color: #48e;
    font-weight: bold;
}

/* ================= FOOTER ================= */
footer {
    margin-top: 80px;
    width: 100%;
    background-color: #000;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 15px;
    font-family: monospace;
}

.logo {
    width: 140px;
    height: auto;
}

.enlaces {
    text-align: center;
}

.ultimo {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #eee;
}

.ultimo:hover {
    border-bottom: 1px solid #eee;
}

.symbols {
    text-align: center;
}

.social img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s, opacity 0.3s;
}

.social img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    #buscador,
    #categoria {
        width: 100%;
        max-width: 320px;
    }

    .catalogo {
        font-size: 1.3rem;
    }

    .cajita {
        width: 100%;
        max-width: 320px;
    }

    .hero__cta img {
        height: 180px;
    }
}