/* ── Variables (mismas que Inicio.css) ──────────────────── */
:root {
    --color-texto:      #1a1c2c;
    --color-rojo:       #e31b23;
    --color-rojo-hover: #b3141a;
    --color-nav:        #1a1a2e;
    --gap-lateral:      clamp(1rem, 3vw, 2.5rem);
}

/* ── Base ───────────────────────────────────────────────── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #f7f7f8;
    color: var(--color-texto);
}

/* ── Layout principal ───────────────────────────────────── */
.contenido {
    display: flex;
    flex: 1;
}

/* ── Barra lateral ──────────────────────────────────────── */
aside {
    width: 220px;
    flex-shrink: 0;
    background: #121220;
    border-right: 1px solid #2a2a42;
    display: flex;
    flex-direction: column;
}

.aside-titulo {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8888aa;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #2a2a42;
    margin-bottom: 6px;
}

aside ul {
    list-style: none;
    padding: 6px 10px;
    margin: 0;
}

aside ul li {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2px;
}

aside ul li a {
    display: block;
    padding: 11px 14px;
    color: #c5c5d8;
    font-size: 0.88rem;
    border-radius: 8px;
    transition: background .18s, color .18s;
}

aside ul li a:hover {
    background: #1e1e38;
    color: #fff;
}

aside ul li a.cat-activa {
    background: var(--color-rojo);
    color: #fff;
    font-weight: 600;
}

/* ── Área principal ─────────────────────────────────────── */
main {
    flex: 1;
    padding: var(--gap-lateral);
    min-width: 0;
}

main h1 {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-texto);
    margin-bottom: 4px;
}

main h2 {
    font-size: 1rem;
    font-weight: 400;
    color: #595959;
    margin-bottom: 20px;
}
/*Breadcrumb*/
.breadcrumb-wrapper {
    margin-bottom: 10px;
}

.breadcrumb-enlace {
    font-weight: bolder;
    color: #595959;
    font-size: 16px;
    text-decoration: underline;
}

.breadcrumb-enlace:hover {
    color: #555;
}

.breadcrumb-texto {
    color: #595959;
    font-size: 16px;
    text-decoration: none;
}

.breadcrumb-separador {
    color: #595959;
    font-size: 16px;
}
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 28px;
}

/* ── Grid de productos ──────────────────────────────────── */
.cuadricula-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ── Tarjeta de producto ────────────────────────────────── */
.producto {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
}

.producto > img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #ebebeb;
    display: block;
}

.info-producto {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.producto .nombre {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-texto);
    margin-bottom: 8px;
}

.descuento {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.producto .sin_descuento {
    font-size: 0.85rem;
    color: #767676;
    text-decoration: line-through;
}

.producto .precio {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-rojo);
    margin: 8px 0 14px;
}

.producto .reservar {
    text-decoration: none;
    width: 100%;
    padding: 11px;
    background: var(--color-rojo);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background .2s;
    margin-top: auto;
}

.producto .reservar:hover {
    background: var(--color-rojo-hover);
}

.vacio {
    font-size: 1.3rem;
    color: #767676;
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.contador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-cantidad {
    width: 32px;
    height: 32px;
    background: #1a1c2c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cantidad:hover {
    background: #e31b23;
}

.cantidad {
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}
/* ── Precio por peso ─────────────────────────────────────── */
.contador-peso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.input-peso {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #1a1c2c;
    background: #fafafa;
    transition: border-color .2s;
}

.input-peso:focus {
    outline: none;
    border-color: #1a1c2c;
    background: #fff;
}
.btn-eliminar {
    width: 100%;
    padding: 11px;
    background: var(--color-rojo);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background .2s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-eliminar:hover {
    background: var(--color-rojo-hover);
}
/* Quitar flechas del input number */
.input-peso::-webkit-outer-spin-button,
.input-peso::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-peso[type=number] {
    -moz-appearance: textfield;
}

.unidad-peso {
    font-size: 13px;
    color: #595959;
}

.form-peso-reservar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
/*Subcategorias*/
.subcategorias {
    margin: 2px 0 4px;
    padding: 0;
    list-style: none;
    background: #0e0e1c;
    border-radius: 8px;
    overflow: hidden;
}

.subcategorias li a {
    display: block;
    padding: 9px 14px 9px 28px;
    font-size: 0.82rem;
    color: #9090aa;
    border-left: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.subcategorias li a:hover {
    background: #1a1a30;
    color: #fff;
    border-left-color: var(--color-rojo);
}

.subcategorias li a.sub-activa {
    color: #fff;
    border-left-color: var(--color-rojo);
    background: #1a1a30;
}

/* ── Responsive: tablet ─────────────────────────────────── */
@media (max-width: 768px) {
    .contenido {
        flex-direction: column;
    }

    aside {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #2a2a42;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .aside-titulo { display: none; }

    aside ul {
        display: flex;
        flex-wrap: wrap;
        padding: 6px 8px;
        gap: 4px;
    }

    aside ul li { border-radius: 6px; margin-bottom: 0; }

    aside ul li a {
        padding: 7px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .subcategorias { display: none; }
}

/* ── Responsive: móvil ──────────────────────────────────── */
@media (max-width: 480px) {
    .cuadricula-productos {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}
