/* ====== TODAS LAS CATEGORÍAS ====== */
.todas-categorias {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.todas-categorias h2 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.categoria-grupo {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

.categoria-grupo h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 0.5rem;
}

.subcategorias-lista {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subcategoria-link {
    display: block;
    padding: 0.8rem 1rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.subcategoria-link:hover {
    background: var(--light-green);
    border-color: #4caf50;
    transform: translateX(5px);
    color: var(--primary-green);
}

/* ====== ESTILOS PARA PÁGINA DE CATEGORÍA ====== */
.categoria-header {
    background-color: rgba(46, 125, 50, 0.55);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.categoria-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.categoria-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.no-productos {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9f9f9;
    border-radius: 15px;
}

.no-productos p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-volver-inicio {
    display: inline-block;
    background: #ff6f00;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-volver-inicio:hover {
    background: #e65100;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
}

/* ====== HEADER DE BÚSQUEDA (versión compacta) ====== */
.busqueda-header {
    background: transparent;
    color: var(--text-dark);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--light-green);
}

.busqueda-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--primary-green);
}

.busqueda-header p {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 1;
}

/* ============================================================ */
/* ====== AVISO LEGAL DE ALCOHOL (categoría Cerveza) ====== */
/* ============================================================ */

.aviso-legal-alcohol {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-left: 6px solid #dc3545;
    color: #856404;
    padding: 20px 24px;
    margin: 30px auto 40px;
    max-width: 800px;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.aviso-legal-alcohol p {
    margin: 6px 0;
}

.aviso-legal-alcohol p:first-child {
    font-size: 1.1rem;
    color: #721c24;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aviso-legal-alcohol p:last-child {
    font-size: 1rem;
    color: #856404;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .aviso-legal-alcohol {
        margin: 20px 12px 30px;
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .aviso-legal-alcohol p:first-child {
        font-size: 1rem;
    }
}

/* ============================================================ */
/* ====== SELECTOR DE ORDENAMIENTO (VERDE SUAVE) ====== */
/* ============================================================ */

.orden-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--green-tint);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--green);
    flex-wrap: wrap;
}

.orden-wrap label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green-dark);
    white-space: nowrap;
}

.orden-wrap select {
    flex: 1;
    min-width: 180px;
    padding: 0.55rem 34px 0.55rem 0.75rem;
    border: 1.5px solid var(--green);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--green-dark);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B4F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.orden-wrap select:hover {
    border-color: var(--green-dark);
    background-color: #fafdfb;
}

.orden-wrap select:focus {
    outline: none;
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.25);
}

@media (max-width: 600px) {
    .orden-wrap {
        padding: 0.65rem 0.85rem;
        gap: 0.5rem;
    }
    .orden-wrap label {
        font-size: 0.85rem;
    }
    .orden-wrap select {
        font-size: 16px;
        min-width: 140px;
        padding: 0.6rem 32px 0.6rem 0.7rem;
    }
}