:root {
    --verde: #0f6f78;
    --verde-oscuro: #0a555c;
    --verde-medio: #14848e;
    --verde-claro: #e5f4f5;
    --menta: #1aa3ad;
    --pizarra: #2c3338;
    --pizarra-suave: #3a4248;
    --naranja: #f0b429;
    --naranja-suave: #fff4d6;
    --gris: #f0f2f5;
    --borde: #e4e8ec;
    --texto: #2c3338;
    --suave: #5c6770;
    --rojo: #dc3545;
    --sombra: 0 2px 8px -2px rgba(44, 51, 56, .08);
    --fuente: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: var(--fuente);
    color: var(--texto);
    min-height: 100vh;
    background: var(--gris);
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
}

.app-shell {
    --alto-cabecera: 78px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "cabecera cabecera"
        "sidebar contenido";
}
.app-shell:has(.sidebar.modo-auth) {
    grid-template-columns: 1fr;
    grid-template-areas:
        "cabecera"
        "contenido";
}

.contenido {
    grid-area: contenido;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2.5rem;
}

h1, h2, .brand { font-family: var(--display); }
h1 { margin: 0 0 1rem; font-size: clamp(1.55rem, 2.4vw, 2rem); letter-spacing: -.02em; }
h2 { margin: 0 0 .8rem; font-size: 1.15rem; color: var(--verde-oscuro); }
a { color: inherit; }

/* ---------- Cabecera Stitch ---------- */
.cabecera {
    grid-area: cabecera;
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}
.franja {
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
    background: var(--verde-oscuro); color: #fff;
    font-size: .72rem; font-weight: 600; letter-spacing: .01em;
    padding: .22rem 1.25rem;
}
.franja-tel { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.franja .material-symbols-outlined { font-size: 16px; }
.cabecera-fila {
    max-width: 1280px; margin: 0 auto;
    min-height: 52px; padding: .35rem 1.25rem;
    display: flex; align-items: center; gap: .75rem;
}
.brand {
    display: flex; align-items: center; gap: .65rem;
    text-decoration: none; color: var(--verde); flex-shrink: 0;
}
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: inline-grid; place-items: center;
    background: var(--verde); color: #fff;
    font-size: .72rem; font-weight: 800;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-text small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
.entregar {
    display: flex; align-items: center; gap: .35rem;
    background: #f3f5f7; border-radius: 999px; padding: .35rem .8rem .35rem .55rem;
    flex-shrink: 0;
}
.entregar .material-symbols-outlined { color: var(--verde); font-size: 20px; }
.entregar small { display: block; font-size: .62rem; color: var(--suave); font-weight: 600; }
.entregar strong { font-size: .78rem; }
.enlace-cabecera {
    display: inline-flex; align-items: center; gap: .25rem;
    text-decoration: none; font-weight: 700; color: var(--suave); font-size: .9rem;
}
.enlace-cabecera:hover { color: var(--verde); }
.sesion { display: flex; align-items: center; gap: .45rem; }
.pastilla-carrito {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--verde); color: #fff; text-decoration: none;
    border-radius: 999px; padding: .35rem .75rem; font-weight: 800; flex-shrink: 0;
}
.pastilla-carrito:hover { background: var(--verde-oscuro); }
.boton-claro {
    background: #fff; color: var(--verde-oscuro);
    border: 1.5px solid var(--verde);
    padding: .45rem .8rem; border-radius: 999px; text-decoration: none;
    font-weight: 700; cursor: pointer; font-size: .85rem; font-family: inherit;
}
.btn-menu {
    display: none; width: 42px; height: 42px; padding: 0; border-radius: 999px;
    background: #f3f5f7; color: var(--pizarra); box-shadow: none;
}
.btn-menu:hover { transform: none; background: #e6eaee; box-shadow: none; }

.sidebar {
    grid-area: sidebar;
    position: sticky; top: var(--alto-cabecera); z-index: 30;
    align-self: start;
    height: calc(100vh - var(--alto-cabecera));
    overflow: auto;
    background: var(--pizarra); border-right: 0;
    color: #d5dbe0;
}
.sidebar.modo-auth { display: none; }
.menu {
    margin: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: .15rem;
    padding: .75rem .65rem 1.25rem; overflow: visible;
}
.menu-label {
    margin: .85rem .2rem .2rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: #8b98a2;
}
a.menu-label {
    display: flex; align-items: center; gap: .35rem;
    text-decoration: none; padding: .55rem .7rem; border-radius: 10px;
    background: transparent; color: #9aa6ae;
}
a.menu-label:hover { background: var(--pizarra-suave); color: #fff; }
.menu a {
    display: flex; align-items: center; gap: .45rem;
    text-decoration: none; padding: .55rem .75rem; border-radius: 10px;
    font-weight: 650; font-size: .9rem; color: #c5ced4;
}
.menu a .material-symbols-outlined { font-size: 18px; }
.menu a:hover { background: var(--pizarra-suave); color: #fff; }
.menu a.activo { background: var(--pizarra-suave); color: #fff; box-shadow: inset 3px 0 0 var(--menta); }
.menu-rol { margin: .15rem .55rem .45rem; font-size: .75rem; font-weight: 700; color: #8b98a2; }
.nota-rol { color: var(--suave); margin: .35rem 0 0; line-height: 1.4; }
.menu a.menu-label {
    margin-top: .85rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: #9aa6ae;
    background: transparent;
}
.menu a.menu-label:hover { background: var(--pizarra-suave); color: #fff; }
.badge {
    background: #ffe14a; color: var(--pizarra); border-radius: 999px; padding: .1rem .45rem;
    font-size: .72rem; font-weight: 800; min-width: 1.3rem; text-align: center;
}
.overlay { display: none; }
.nav-inferior { display: none; }

/* ---------- Avisos ---------- */
.aviso {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 20; max-width: 380px;
    padding: .95rem 1.15rem; border-radius: 14px; color: #fff; background: var(--verde-oscuro);
    box-shadow: var(--sombra); font-size: .95rem;
    animation: subir .35s ease;
}
.aviso.error { background: var(--rojo); }

@keyframes subir {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes aparecer {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Catálogo ---------- */
.hero {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem;
    background: #fff; border-radius: 16px; padding: 1.4rem 1.5rem; margin-bottom: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 8px -2px rgba(31, 41, 55, .06);
}
.hero-frio {
    display: flex; align-items: center; gap: .55rem;
    background: #f3f5f7; border-radius: 14px; padding: .55rem .8rem;
}
.hero-frio .material-symbols-outlined { color: var(--verde); }
.hero-frio small { display: block; color: var(--suave); font-size: .7rem; font-weight: 600; }
.hero-marca .material-symbols-outlined { font-size: 16px; margin-right: .15rem; }
.hero-marca {
    margin: 0 0 .35rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--verde);
}
.hero h1 { margin-bottom: .35rem; }
.hero p { margin: 0; color: var(--suave); max-width: 38ch; line-height: 1.45; }
.busqueda {
    display: flex; flex-direction: row; align-items: center; gap: .35rem; min-width: 180px; flex: 1;
    background: #f3f5f7; border: 0; border-radius: 999px; padding: .15rem .2rem .15rem .7rem;
    position: relative;
}
.busqueda-ico { color: var(--suave); font-size: 20px; flex-shrink: 0; }
.busqueda input {
    flex: 1; min-width: 0; border: 0; outline: none; box-shadow: none;
    background: transparent; padding: .35rem .45rem;
}
.busqueda input:focus { outline: none; box-shadow: none; }
.busqueda button {
    border-radius: 999px; flex-shrink: 0;
    padding: .38rem .9rem; font-size: .85rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.chip {
    border: 1px solid var(--borde); background: rgba(255,255,255,.85); color: var(--texto);
    border-radius: 999px; padding: .4rem .9rem; font-weight: 600; cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.chip.activo, .chip:hover {
    background: var(--verde); color: #fff; border-color: var(--verde);
    transform: translateY(-1px);
}
.info-tecnica { font-size: .8rem; color: var(--suave); margin: 0 0 .9rem; }
.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.15rem; }
.producto {
    background: #fff; border-radius: 16px; border: 1px solid var(--borde); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: aparecer .4s ease;
}
.producto:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.producto .imagen {
    height: 168px; display: flex; align-items: center; justify-content: center;
    background: #f3f4f6;
    font-size: 3.4rem; position: relative;
}
.producto .imagen img { width: 100%; height: 100%; object-fit: cover; }
.producto .etiqueta {
    position: absolute; top: .65rem; left: .65rem; background: var(--naranja); color: #fff;
    font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px;
}
.producto .cuerpo { padding: 1rem 1rem .9rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.producto .nombre { font-weight: 800; line-height: 1.25; font-size: 1.02rem; }
.producto .desc {
    font-size: .8rem; color: var(--suave); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}
.producto .precio { font-size: 1.25rem; font-weight: 800; color: var(--verde-oscuro); font-family: var(--display); margin-top: auto; }
.producto .precio small { font-size: .75rem; color: var(--suave); font-weight: 500; font-family: var(--fuente); }
.producto .stock { font-size: .75rem; color: var(--suave); }
.producto .stock.bajo { color: var(--naranja); font-weight: 700; }
.producto .agregar { display: flex; gap: .45rem; align-items: center; }
.producto .agregar input { width: 58px; flex: 0 0 58px; text-align: center; padding: .55rem .3rem; }
.producto .agregar button { flex: 1; min-width: 0; }
.producto .ver-ficha {
    align-self: flex-start; background: transparent; color: var(--verde-oscuro);
    border: 0; box-shadow: none; padding: 0; border-radius: 0;
    font-size: .82rem; font-weight: 700;
}
.producto .ver-ficha:hover { background: transparent; color: var(--verde); transform: none; box-shadow: none; text-decoration: underline; }

/* ---------- Formularios y botones ---------- */
form { display: flex; flex-direction: column; gap: .7rem; }
label { display: flex; flex-direction: column; font-size: .88rem; gap: .3rem; flex: 1; font-weight: 600; color: var(--texto); }
label.casilla { flex-direction: row; align-items: center; }
label.casilla input { width: 1.15rem; height: 1.15rem; padding: 0; flex: 0 0 auto; }
.celda-producto { white-space: normal; min-width: 220px; }
.detalle-producto { display: flex; flex-direction: column; gap: .15rem; margin-top: .3rem; color: var(--suave); font-size: .75rem; font-weight: 500; line-height: 1.35; }
.celda-acciones { white-space: normal; width: 1%; }
.acciones-producto { display: flex; gap: .35rem; align-items: center; }
button.icono-accion {
    width: 34px; height: 34px; padding: 0; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px;
}
button.icono-accion .material-symbols-outlined { font-size: 18px; color: #fff; }
input, select, textarea {
    padding: .7rem .8rem; border: 1px solid #c9d7cd; border-radius: 12px;
    font-size: .95rem; font-family: inherit; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(15, 111, 120, .18);
}
small { color: var(--suave); font-weight: 500; }
button {
    padding: .7rem 1.05rem; border: 0; border-radius: 999px; background: var(--verde);
    color: #fff; font-weight: 700; cursor: pointer; font-size: .95rem; font-family: inherit;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
button:hover { background: var(--verde-oscuro); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10, 85, 92, .22); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
button.secundario { background: var(--pizarra); }
button.peligro { background: var(--rojo); }
button.mini { padding: .3rem .6rem; font-size: .8rem; border-radius: 8px; }
.fila { display: flex; gap: .7rem; }
.presentacion-fila {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(120px, .9fr) minmax(110px, .8fr) 36px;
    gap: .45rem; align-items: end; margin-bottom: .55rem; padding: .7rem;
    border: 1px solid var(--borde); border-radius: 14px; background: #f4f7f8;
}
.presentacion-fila label { min-width: 0; }
.unidad-base-nota { display: block; margin-top: .25rem; font-size: .75rem; color: var(--verde-oscuro); font-weight: 700; }

/* ---------- Tarjetas y layout ---------- */
.tarjeta {
    background: rgba(255,255,255,.92); border-radius: 16px; padding: 1.25rem 1.4rem;
    border: 1px solid var(--borde); box-shadow: 0 8px 22px rgba(44, 51, 56, .06);
}
.dos-columnas { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: start; }
.vacio { color: var(--suave); text-align: center; padding: 1.5rem 0; }
.nota-seguridad {
    font-size: .8rem; color: var(--suave); background: var(--verde-claro);
    padding: .7rem .85rem; border-radius: 12px; margin: 0; line-height: 1.4;
}
.clima-caja {
    font-size: .85rem; color: var(--verde-oscuro); background: #fff;
    border: 1px dashed var(--borde); border-radius: 12px; padding: .65rem .8rem;
}
.acciones-pedido-cliente { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }

/* ---------- Carrito ---------- */
.linea {
    display: grid; grid-template-columns: 48px 1fr auto auto; gap: .8rem; align-items: center;
    padding: .75rem 0; border-bottom: 1px solid var(--borde);
}
.linea .icono { font-size: 2rem; text-align: center; }
.linea .icono img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.linea .cantidad { display: flex; align-items: center; gap: .3rem; }
.linea .cantidad button { width: 30px; padding: .25rem 0; }
.linea .no-disponible { color: var(--rojo); font-size: .75rem; }
.total { text-align: right; font-size: 1.25rem; margin: 1rem 0; font-family: var(--display); }

/* ---------- Pedidos ---------- */
.pedido-item {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    padding: .8rem .55rem; border-bottom: 1px solid var(--borde); cursor: pointer; border-radius: 10px;
    transition: background .15s ease;
}
.pedido-item:hover { background: var(--verde-claro); }
.estado { padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: capitalize; }
.estado-pendiente { background: #fff3cd; color: #8a6d00; }
.estado-pagado { background: #d1ecf1; color: #0c5460; }
.estado-preparando { background: #e2d9f3; color: #4b2c83; }
.estado-en_camino { background: #cfe2ff; color: #084298; }
.estado-entregado { background: #d7f3f4; color: var(--verde-oscuro); }
.estado-cancelado { background: #f8d7da; color: #842029; }
.uuid { font-family: Consolas, monospace; font-size: .75rem; color: var(--suave); }

.chips-producto { display: flex; flex-wrap: wrap; gap: .35rem; }
.mini-chip {
    display: inline-flex; align-items: center; gap: .2rem;
    background: var(--verde-claro); color: var(--verde-oscuro);
    border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; font-weight: 700;
}
.ficha-producto { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 1.2rem; align-items: start; }
.ficha-foto {
    min-height: 280px; border-radius: 18px; background: #f3f4f6;
    display: grid; place-items: center; font-size: 5rem; overflow: hidden;
}
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.ofertas { display: grid; gap: .65rem; margin-top: .4rem; }
.oferta {
    display: grid; grid-template-columns: 1fr auto auto; gap: .7rem; align-items: center;
    background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: .75rem .85rem;
}
.oferta input { width: 72px; }
.productor-enlace { text-align: left; background: var(--verde-claro); color: var(--verde-oscuro); }
.impacto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin: .8rem 0 1rem; }
.impacto-item {
    background: #fff; border: 1px solid #f3f4f6; border-radius: 16px; padding: .85rem .9rem;
}
.impacto-item strong { display: block; font-size: 1.35rem; color: var(--verde-oscuro); }
.impacto-item span { color: var(--suave); font-size: .78rem; font-weight: 650; }
.pasos-pedido .paso { display: inline-flex; align-items: center; gap: .3rem; }
.exito-compra {
    background: var(--verde); color: #fff; border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: .8rem;
}
.exito-compra p { margin: .25rem 0 0; }
.repartidor {
    display: flex; gap: .75rem; align-items: center;
    background: #f3f5f7; border-radius: 16px; padding: .8rem .9rem; margin: .6rem 0;
}
.repartidor .avatar {
    width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
    background: var(--verde); color: #fff; font-weight: 800;
}
.pase-grande {
    font-family: Consolas, monospace; letter-spacing: .18em; font-size: 1.35rem;
    background: #fff; border: 1px dashed var(--verde); border-radius: 14px; padding: .7rem .8rem; text-align: center;
}
.chat { display: flex; flex-direction: column; gap: .45rem; margin: .5rem 0; max-height: 240px; overflow: auto; }
.burbuja { align-self: flex-end; max-width: 85%; background: var(--verde-claro); border-radius: 14px 14px 4px 14px; padding: .55rem .75rem; }
.burbuja.equipo { align-self: flex-start; background: #f3f5f7; border-radius: 14px 14px 14px 4px; }
.burbuja small { display: block; color: var(--suave); font-size: .7rem; }
.fila-chat { display: flex; gap: .4rem; }
.fila-chat input { flex: 1; }
.estrellas { display: flex; gap: .35rem; }
.estrellas button.activo { background: var(--naranja); }
.mapa { width: 100%; height: 220px; border: 0; border-radius: 16px; margin-top: .4rem; }

/* ---------- Admin ---------- */
.barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.barra h2 { margin: 0; }
.barra > div, .filtros-bitacora { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.kpi-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1rem;
}
.kpi {
    background: #fff; border: 1px solid var(--borde); border-radius: 16px;
    padding: 1rem 1.1rem; box-shadow: 0 8px 22px rgba(44, 51, 56, .06);
}
.kpi .etiqueta { font-size: .78rem; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
.kpi .valor { margin-top: .35rem; font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--verde-oscuro); }
.kpi .nota { margin-top: .2rem; font-size: .8rem; color: var(--suave); }
.graficos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#buscar-producto-admin { min-width: 180px; }
.form-usuario {
    display: grid; grid-template-columns: 1.4fr 1.6fr 1.2fr 1fr auto; gap: .5rem; margin-bottom: 1rem;
}
.matriz-roles { display: grid; gap: 1rem; }
.selector-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.selector-roles button {
    background: #fff; color: var(--texto); border: 1px solid var(--borde);
    box-shadow: none; padding: .55rem 1rem;
}
.selector-roles button.activo,
.selector-roles button.activo:hover { background: var(--verde); color: #fff; border-color: var(--verde); transform: none; }
.resumen-rol { margin: 0 0 .9rem; color: var(--texto); font-size: .95rem; line-height: 1.45; }
.tabla-permisos th, .tabla-permisos td { text-align: center; }
.tabla-permisos th:first-child, .tabla-permisos td:first-child { text-align: left; font-weight: 700; }
.tabla-permisos input {
    appearance: none; width: 1.15rem; height: 1.15rem; margin: 0;
    border: 2px solid #c5ced6; border-radius: 4px; background: #fff;
    display: inline-grid; place-content: center; cursor: pointer; opacity: 1;
}
.tabla-permisos input:disabled { cursor: default; }
.tabla-permisos input:checked { background: var(--verde); border-color: var(--verde); }
.tabla-permisos input:checked::after {
    content: ""; width: .28rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.rol-card {
    border: 1px solid var(--borde); border-radius: 14px; padding: 1rem 1.1rem; background: #fff;
}
.rol-card h3 { margin: 0 0 .35rem; font-family: var(--display); color: var(--verde-oscuro); }
.rol-card p { margin: 0 0 .7rem; color: var(--suave); font-size: .9rem; }
.rol-card ul { margin: 0; padding-left: 1.1rem; color: var(--texto); font-size: .88rem; }
.rol-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; }
.rol-col h4 { margin: 0 0 .35rem; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; }
.rol-col.puede h4 { color: var(--verde-oscuro); }
.rol-col.niega h4 { color: #842029; }
.rol-col li { margin: .4rem 0; }
.rol-col li span { display: block; color: var(--suave); font-size: .78rem; font-weight: 500; }
.badge-inactivo { background: #f8d7da; color: #842029; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-activo { background: #d7f3f4; color: var(--verde-oscuro); padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-alerta { background: #fff3cd; color: #8a5a00; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.flujo-pedidos-ayuda {
    background: var(--verde-claro); border: 1px solid var(--borde); border-radius: 14px;
    padding: .85rem 1rem; margin: 0 0 1rem; color: var(--suave); font-size: .92rem; line-height: 1.45;
}
.flujo-pedidos-ayuda strong { color: var(--verde-oscuro); }
.detalle-pedido-panel { max-width: 820px; }
.pasos-pedido {
    display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1rem;
}
.paso {
    padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
    text-transform: capitalize; background: #eef2ef; color: var(--suave);
}
.paso.hecho { background: #d7f3f4; color: var(--verde-oscuro); }
.paso.actual { background: var(--verde); color: #fff; }
.acciones-estado { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .5rem; }
.subtitulo-admin { margin: .4rem 0 .55rem; font-size: 1rem; color: var(--verde-oscuro); font-family: var(--display); }
.kpi-logistica { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: .7rem; margin: 0 0 1rem; }
.kpi-logistica article {
    background: linear-gradient(180deg, #e7f6f7 0%, #fff 62%);
    border: 1px solid #b7dde1; border-top: 4px solid var(--verde);
    border-radius: 16px; padding: .9rem 1rem;
    box-shadow: 0 8px 18px rgba(15, 111, 120, .08);
}
.kpi-logistica strong { display: block; margin-top: .25rem; font-size: 1.7rem; color: var(--verde); font-family: var(--display); }
.kpi-logistica span { color: var(--texto); font-size: .78rem; font-weight: 800; }
.kpi-logistica.grande { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .85rem; }
.kpi-logistica.grande article { padding: 1.05rem 1.15rem; }
.kpi-logistica.grande strong { font-size: 2.05rem; }
.kpi-logistica .alerta {
    background: linear-gradient(180deg, #fff4d4 0%, #fff 62%);
    border-color: #f0d48a; border-top-color: #e09a12;
}
.kpi-logistica .alerta strong { color: #c47d00; }
.kpi-logistica .peligro {
    background: linear-gradient(180deg, #ffe4e6 0%, #fff 62%);
    border-color: #f5c2c7; border-top-color: var(--rojo);
}
.kpi-logistica .peligro strong { color: var(--rojo); }
.bloque-reporte {
    background: #fff; border: 1px solid var(--borde); border-radius: 18px;
    padding: 1.2rem 1.25rem 1.3rem; margin-bottom: 1.35rem;
    box-shadow: 0 10px 24px rgba(44, 51, 56, .06);
}
.bloque-reporte > h3 { margin: 0 0 .2rem; font-size: 1.45rem; color: var(--texto); }
.nota-bloque { margin: 0 0 1rem; color: var(--suave); font-size: .88rem; }
.reporte-stack { display: grid; gap: 1.2rem; }
.reporte-barras { margin-bottom: .8rem; }
.rejilla-reportes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.tarjeta-reporte {
    display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
    text-align: left; background: #fff; color: var(--texto);
    border: 1px solid var(--borde); border-radius: 18px;
    padding: 1.2rem 1.15rem; min-height: 158px;
    box-shadow: 0 8px 18px rgba(44, 51, 56, .06);
}
.tarjeta-reporte .material-symbols-outlined {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--verde); color: #fff; font-size: 24px;
}
.tarjeta-reporte strong { font-size: 1.08rem; }
.tarjeta-reporte small { color: var(--suave); font-weight: 600; line-height: 1.35; }
.tarjeta-reporte:hover { background: #fff; color: var(--texto); border-color: var(--verde); transform: none; box-shadow: 0 10px 22px rgba(15, 111, 120, .16); }
.hoja-reporte { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 1.15rem 1.25rem 1.5rem; scroll-margin-top: 96px; }
.membrete-marca { margin: .2rem 0 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--verde); }
.membrete-reporte h2 { margin: .15rem 0 .3rem; font-size: 1.75rem; color: var(--texto); }
@media print {
    body.imprimiendo-reporte .cabecera,
    body.imprimiendo-reporte .sidebar,
    body.imprimiendo-reporte .nav-inferior,
    body.imprimiendo-reporte .pie,
    body.imprimiendo-reporte .aviso,
    body.imprimiendo-reporte .no-imprimir,
    body.imprimiendo-reporte #reporte-indice { display: none !important; }
    body.imprimiendo-reporte,
    body.imprimiendo-reporte .contenido,
    body.imprimiendo-reporte .app-shell { background: #fff; }
    body.imprimiendo-reporte .app-shell,
    body.imprimiendo-reporte .contenido,
    body.imprimiendo-reporte main { display: block !important; height: auto; min-height: 0; }
    body.imprimiendo-reporte .vista { display: none !important; }
    body.imprimiendo-reporte .vista[data-vista="admin"] { display: block !important; }
    body.imprimiendo-reporte .tab-panel { display: none !important; }
    body.imprimiendo-reporte #admin-reportes,
    body.imprimiendo-reporte #reporte-hoja { display: block !important; }
    body.imprimiendo-reporte #reporte-hoja .bloque-reporte[hidden] { display: none !important; }
    body.imprimiendo-reporte .hoja-reporte,
    body.imprimiendo-reporte .bloque-reporte { border: 0; box-shadow: none; padding: 0; }
    body.imprimiendo-reporte .kpi-logistica article,
    body.imprimiendo-reporte tr { break-inside: avoid; }
}
.flujo-logistica { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; margin: 0 0 1rem; }
.etapa-logistica { background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: .75rem .8rem; min-width: 0; }
.etapa-logistica .material-symbols-outlined { color: var(--verde); font-size: 20px; }
.etapa-logistica strong { display: block; font-size: 1.25rem; color: var(--texto); }
.etapa-logistica b { display: block; font-size: .82rem; }
.etapa-logistica small { color: var(--suave); font-size: .75rem; }
.reporte-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; margin-bottom: 1rem; align-items: start; }
.ranking-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: baseline; margin-top: .7rem; }
.ranking-fila span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ranking-fila small { color: var(--suave); }
.ranking-pista { grid-column: 1 / -1; height: 8px; background: #e4ecee; border-radius: 999px; overflow: hidden; }
.ranking-pista i { display: block; height: 100%; background: var(--verde); border-radius: 999px; }
.chips-zonas { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.chips-zonas span { background: var(--verde-claro); color: var(--verde-oscuro); border-radius: 999px; padding: .25rem .6rem; font-size: .75rem; font-weight: 700; }
.filtros-inventario { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.filtros-inventario button { background: #fff; color: var(--verde-oscuro); border: 1px solid var(--borde); box-shadow: none; }
.filtros-inventario button.activo { background: var(--verde); color: #fff; border-color: var(--verde); }
.metro-stock { display: flex; align-items: center; gap: .45rem; min-width: 128px; }
.metro-stock-pista { flex: 1; height: 8px; background: #e4ecee; border-radius: 999px; overflow: hidden; }
.metro-stock-pista i { display: block; height: 100%; background: var(--verde); border-radius: 999px; }
.metro-stock-pista.bajo i { background: #e09a12; }
.metro-stock-pista.agotado i { background: var(--rojo); }
.flujo-pedidos-ayuda a { color: var(--verde-oscuro); font-weight: 700; }
.capital-cifras { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 1rem; }
.capital-cifras article { flex: 1 1 180px; border: 1px solid var(--borde); border-radius: 12px; padding: .75rem .9rem; background: #fff; }
.capital-cifras strong { display: block; font-size: 1.25rem; color: var(--verde-oscuro); }
.capital-cifras span { color: var(--suave); font-size: .8rem; }
.pago-opciones { border: 1px solid var(--borde); border-radius: 12px; padding: .75rem 1rem; margin: .8rem 0; }
.pago-opciones legend { font-weight: 700; padding: 0 .3rem; }
.pago-opciones label { display: flex; gap: .55rem; align-items: center; margin: .4rem 0; }
.separador-suave { border: 0; border-top: 1px solid var(--borde); margin: 1rem 0; }
.form-producto { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr 1fr 2fr auto; gap: .5rem; margin-bottom: 1rem; }
.panel-clasificacion { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.panel-lista { min-width: 0; }
.panel-lista h3 { margin: 0; font-size: 1.05rem; }
.modal {
    border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 2rem));
    box-shadow: 0 18px 50px rgba(18, 28, 42, .22);
}
.modal.modal-chico { width: min(440px, calc(100vw - 2rem)); }
.form-modal { max-height: min(78vh, 760px); overflow: auto; }
.ayuda-campo { margin: 0; font-size: .78rem; color: var(--suave); font-weight: 500; }
.modal::backdrop { background: rgba(18, 28, 42, .45); }
.form-modal { padding: 1.15rem 1.25rem 1.25rem; }
.modal-cabecera { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.modal-cabecera h2 { margin: 0; }
.modal-acciones { display: flex; justify-content: flex-end; gap: .5rem; }
.tabla-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: .55rem .6rem; border-bottom: 1px solid var(--borde); text-align: left; white-space: nowrap; }
th { background: var(--verde-oscuro); color: #fff; font-weight: 700; }
td input[type="number"] { width: 90px; padding: .3rem .4rem; }
td .miniatura { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
td .emoji { font-size: 1.5rem; }
td.cambio { white-space: normal; min-width: 220px; font-family: Consolas, monospace; font-size: .75rem; color: var(--suave); }
.EXITO { color: var(--verde); font-weight: 700; }
.FALLO { color: var(--rojo); font-weight: 700; }
.FRAUDE { color: #fff; background: #8e44ad; font-weight: 700; border-radius: 6px; padding: .1rem .4rem; }
.chip-resumen { background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: .35rem .65rem; font-size: .8rem; }
.chip-resumen strong { color: var(--verde-oscuro); }

.pie {
    text-align: center; padding: 1.4rem; font-size: .8rem; color: var(--suave);
    border-top: 1px solid rgba(215, 227, 218, .8); background: rgba(255,255,255,.35);
}

/* ---------- Cuenta / login ---------- */
body:has([data-vista="cuenta"]:not([hidden])) .pie { display: none; }

.vista-cuenta {
    max-width: none;
    margin: -1.5rem -1.4rem -2rem;
    padding: 0;
    min-height: calc(100vh - 0px);
}
.cuenta-escena {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 0px);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #e8f5ec 0%, #f8f9ff 55%, #ffffff 100%);
}

.cuenta-atmosfera {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.cuenta-atmosfera::before {
    content: "";
    position: absolute; inset: -20%;
    background:
        radial-gradient(ellipse 50% 40% at 18% 30%, rgba(239, 138, 26, .28), transparent 60%),
        radial-gradient(ellipse 45% 35% at 88% 70%, rgba(255, 255, 255, .1), transparent 65%),
        radial-gradient(circle at 60% 15%, rgba(125, 220, 150, .18), transparent 40%);
    animation: atmosfera-deriva 18s ease-in-out infinite alternate;
}
.cuenta-atmosfera::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
    opacity: .5;
}
.cuenta-orb {
    position: absolute; border-radius: 50%;
    filter: blur(2px); opacity: .55;
}
.cuenta-orb-a {
    width: 220px; height: 220px; left: -40px; bottom: 8%;
    background: radial-gradient(circle, rgba(239, 138, 26, .45), transparent 70%);
    animation: orb-pulso 7s ease-in-out infinite;
}
.cuenta-orb-b {
    width: 160px; height: 160px; right: 6%; top: 12%;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
    animation: orb-pulso 9s ease-in-out infinite reverse;
}
.cuenta-hoja {
    position: absolute; right: 12%; bottom: 18%;
    width: 90px; height: 140px;
    background:
        radial-gradient(ellipse 60% 80% at 40% 40%, rgba(180, 240, 190, .35), transparent 70%);
    transform: rotate(18deg);
    animation: hoja-suave 12s ease-in-out infinite alternate;
}

@keyframes atmosfera-deriva {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-3%, 2%) scale(1.05); }
}
@keyframes orb-pulso {
    0%, 100% { transform: scale(1); opacity: .45; }
    50% { transform: scale(1.12); opacity: .7; }
}
@keyframes hoja-suave {
    from { transform: rotate(18deg) translateY(0); }
    to { transform: rotate(26deg) translateY(-12px); }
}
@keyframes cuenta-entra {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.cuenta-layout {
    position: relative; z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.2rem, 3vw, 2.5rem);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.cuenta-hero {
    color: var(--texto);
    animation: cuenta-entra .55s ease both;
}
.cuenta-brand {
    margin: 0 0 .85rem;
    font-family: var(--display);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--verde-oscuro);
}
.cuenta-brand::after {
    content: "";
    display: block;
    width: 3.2rem; height: 3px; margin-top: .75rem;
    background: var(--naranja);
    border-radius: 2px;
    animation: cuenta-entra .7s .12s ease both;
}
.cuenta-headline {
    margin: 0 0 .85rem;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--texto);
    max-width: 16ch;
}
.cuenta-sub {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--suave);
    max-width: 34ch;
    animation: cuenta-entra .6s .08s ease both;
}

.cuenta-panel {
    animation: cuenta-entra .6s .15s ease both;
}
.cuenta-panel > div {
    width: min(100%, 400px);
    margin-left: auto;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 1.55rem 1.4rem 1.45rem;
    backdrop-filter: blur(10px);
}
.cuenta-panel h2 {
    margin: 0 0 .35rem;
    font-family: var(--display);
    font-size: 1.35rem;
    color: var(--verde-oscuro);
}
.cuenta-intro {
    margin: 0 0 1.05rem;
    color: var(--suave);
    font-size: .92rem;
    line-height: 1.45;
}
.cuenta-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
    border-bottom: 1px solid var(--borde);
    margin-bottom: 1.15rem; padding: 0;
    background: transparent;
}
.cuenta-tabs button {
    background: transparent; color: var(--suave); border: 0; border-radius: 0;
    padding: .65rem .35rem .75rem; box-shadow: none; transform: none;
    font-weight: 700; font-size: .9rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cuenta-tabs button:hover { background: transparent; color: var(--texto); box-shadow: none; transform: none; }
.cuenta-tabs button.activo {
    background: transparent; color: var(--verde-oscuro);
    border-bottom-color: var(--verde);
    box-shadow: none;
}
.form-cuenta { gap: .9rem; }
.form-cuenta label { color: var(--texto); font-weight: 600; font-size: .88rem; }
.form-cuenta input {
    margin-top: .35rem;
    background: #f7fbf8;
    border-color: var(--borde);
}
.form-cuenta input:focus {
    outline: 2px solid rgba(22, 156, 63, .25);
    border-color: var(--verde);
}
.form-cuenta button[type="submit"] { margin-top: .35rem; width: 100%; }
.hint-pass { margin-top: -.35rem; font-size: .8rem; color: var(--suave); }
.enlace-boton {
    display: inline-block; text-align: center; text-decoration: none;
    padding: .7rem 1rem; border-radius: 12px; background: var(--verde); color: #fff;
    font-weight: 700; font-size: .95rem; transition: transform .15s ease, background .15s ease;
}
.enlace-boton:hover { background: var(--verde-oscuro); transform: translateY(-1px); }
.enlace-boton.secundario { background: #2f4639; }
.perfil-cabecera { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.perfil-cabecera h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.perfil-email { margin: 0 0 .45rem; color: var(--suave); font-size: .9rem; }
.perfil-avatar {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(145deg, var(--verde), var(--verde-oscuro));
    color: #fff; font-size: 1.45rem; font-weight: 800; font-family: var(--display);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rol-badge {
    display: inline-block; padding: .2rem .55rem; border-radius: 8px;
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    background: var(--verde-claro); color: var(--verde-oscuro);
}
.rol-badge.admin { background: var(--naranja-suave); color: #c45f00; }
.perfil-lista { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.perfil-lista li {
    display: flex; flex-direction: column; gap: .3rem;
    padding: .9rem 0; border-top: 1px solid var(--borde); font-size: .92rem; color: var(--suave);
    line-height: 1.4;
}
.perfil-lista strong { color: var(--texto); font-size: .85rem; }
.perfil-acciones { display: flex; flex-direction: column; gap: .55rem; }
#panel-perfil { width: min(100%, 480px); }
.perfil-bloque, #form-perfil, #form-ubicacion { margin-top: 1rem; }
.perfil-bloque h3, #form-perfil h3, #form-ubicacion h3 { margin: .2rem 0 .6rem; font-size: 1rem; }
#lista-tarjetas { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .8rem; }

@media (max-width: 960px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .graficos-grid, .reporte-grid { grid-template-columns: 1fr; }
    .flujo-logistica, .rol-columnas, .presentacion-fila { grid-template-columns: 1fr; }
}

.precio-grande { font-size: 2rem; font-weight: 800; color: var(--verde-oscuro); margin: .2rem 0 .8rem; }
.check-linea { flex-direction: row; align-items: center; gap: .55rem; font-weight: 600; }
.check-linea input { width: auto; }
.mapa { width: 100%; height: 240px; border: 0; border-radius: 16px; background: #e6eaee; margin: .6rem 0; }
.fila-chat { display: flex; gap: .4rem; }
.fila-chat input { flex: 1; }
.estrellas { display: flex; gap: .35rem; margin: .4rem 0; }
.lote-pronto { color: var(--rojo); font-weight: 800; }
.boton-texto { background: transparent; color: var(--verde-oscuro); border: 1.5px solid var(--verde); }
.boton-texto:hover { background: var(--verde-claro); color: var(--verde-oscuro); }

@media (max-width: 920px) {
    .cuenta-layout {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding-top: 1.4rem;
        padding-bottom: 2rem;
    }
    .cuenta-hero { text-align: left; }
    .cuenta-headline { max-width: none; }
    .cuenta-panel > div { margin: 0; width: 100%; }
}

.pasos-compra {
    display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0 0 1rem; padding: 0;
}
.pasos-compra li {
    display: flex; align-items: center; gap: .45rem;
    background: #fff; border-radius: 999px; padding: .35rem .8rem .35rem .35rem;
    font-weight: 700; color: var(--suave); border: 1px solid #f3f4f6;
}
.pasos-compra span {
    width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center;
    background: var(--verde-claro); color: var(--verde);
}
.pasos-compra .hecho span, .pasos-compra .actual span { background: var(--verde); color: #fff; }
.pasos-compra .actual { color: var(--texto); }
.meta-envio {
    background: #fff; border-radius: 16px; padding: .85rem 1rem; margin-bottom: 1rem;
    border: 1px solid #f3f4f6; box-shadow: 0 2px 8px -2px rgba(31, 41, 55, .05);
}
.meta-envio .pista { height: 8px; border-radius: 999px; background: #e4ecee; overflow: hidden; margin-top: .45rem; }
.meta-envio .pista span { display: block; height: 100%; background: var(--menta); border-radius: 999px; }
.nav-inferior a {
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    text-decoration: none; color: rgba(18, 28, 42, .45); font-size: .68rem; font-weight: 700;
}
.nav-inferior a.activo { color: var(--verde); }
.nav-inferior .material-symbols-outlined { font-size: 22px; }

@media (max-width: 900px) {
    .franja, .entregar, .pastilla-texto, .enlace-cabecera span:last-child { display: none; }
    .app-shell { --alto-cabecera: 56px; }
    .cabecera-fila { min-height: 52px; padding: .35rem .75rem; gap: .5rem; }
    .brand-text small { display: none; }
    .app-shell, .app-shell:has(.sidebar.modo-auth) {
        grid-template-columns: 1fr;
        grid-template-areas: "cabecera" "contenido";
    }
    .btn-menu { display: inline-grid; place-items: center; }
    .busqueda { min-width: 0; }
    .busqueda button { display: none; }
    .sidebar {
        position: fixed; left: 0; top: 0; height: 100vh; width: min(300px, 88vw);
        transform: translateX(-105%); transition: transform .25s ease;
        z-index: 45; padding: 4.5rem .6rem 1rem; overflow: auto;
        box-shadow: 8px 0 28px rgba(18, 28, 42, .12);
        border-right: 0;
    }
    .sidebar.abierto { transform: none; }
    .menu { flex-direction: column; align-items: stretch; padding: 0; }
    .overlay { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(18, 28, 42, .4); }
    .nav-inferior {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 34;
        height: 64px; background: #fff; justify-content: space-around; align-items: center;
        box-shadow: 0 -4px 20px rgba(31, 41, 55, .08); padding-bottom: env(safe-area-inset-bottom);
    }
    body { padding-bottom: 72px; }
    .dos-columnas, .ficha-producto, .oferta, .panel-clasificacion { grid-template-columns: 1fr; }
    .form-producto { grid-template-columns: 1fr 1fr; }
    main { padding-bottom: 1.5rem; }
}
