/* ==========================================================================
   Delivery B2C (cliente final) - estilo supermercado, rojo y ancho completo
   ========================================================================== */
:root {
    /* Página clara. El rojo de acento es el de KitKat, #ec2227. */
    --dv-red-900: #111827;
    --dv-red-700: #1f2937;
    --dv-red-600: #374151;
    --dv-red-200: #e5e7eb;
    --dv-red-100: #f3f4f6;
    --dv-red-50: #f9fafb;
    /* Alias de la paleta anterior: todo lo que usaba --dv-violet-* ahora es rojo. */
    --dv-violet-900: var(--dv-red-900);
    --dv-violet-700: var(--dv-red-700);
    --dv-violet-600: var(--dv-red-600);
    --dv-violet-200: var(--dv-red-200);
    --dv-violet-100: var(--dv-red-100);
    --dv-violet-50: var(--dv-red-50);
    --dv-bg: #ffffff;
    --dv-text: #1f2937;
    --dv-muted: #6b7280;
    --dv-ok: #059669;
    --dv-warn: #d97706;
    --dv-danger: #dc2626;
    --dv-grad: linear-gradient(135deg, #374151, #4b5563);
    --dv-glow: rgba(55, 65, 81, 0.22);
    --dv-alt: #6c757d;
    --h-bg: #ec2227;
    --h-fg: #fff;
    --h-line: transparent;
    --h-chip: rgba(255,255,255,0.16);
    --h-chip-hover: rgba(255,255,255,0.28);
    --h-accent: #fff;
    --h-shadow: 0 4px 14px rgba(236, 34, 39, 0.32);
    --wf-taskbar-height: 0px;
    --wf-bottom-reserve: 0px;
}

* { box-sizing: border-box; }

.dv-body {
    margin: 0;
    background: var(--dv-bg);
    color: var(--dv-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Ancho completo: el contenido interno se limita con .dv-container */
.dv-app { width: 100%; margin: 0; padding-bottom: 96px; min-height: 100vh; background: var(--dv-bg); }
.dv-app button { font-family: inherit; }
.material-icons { vertical-align: middle; }
.dv-container { max-width: 1380px; margin: 0 auto; padding: 0 24px; width: 100%; }
@media (max-width: 700px) {
    .dv-container { padding: 0 12px; }
    /* Mismo aire a los dos lados, suficiente para que el borde no se corte. */
    .dv-main.dv-container { padding-left: 8px; padding-right: 8px; }
}

/* ---- Cabecera (sin fondo sólido: el diseño se elige con el ícono) -------- */
.dv-top { position: relative; z-index: 31; }
.dv-header {
    position: sticky; top: 0; z-index: 30; width: 100%;
    background: var(--h-bg); color: var(--h-fg);
    border-bottom: 1px solid var(--h-line);
    box-shadow: var(--h-shadow);
}
.dv-promo-strip {
    display: flex; align-items: center; height: 30px; background: #ffffff; color: #4a4444;
    font-size: 13px; font-weight: 600; min-width: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-left: max(24px, calc((100% - 1380px) / 2 + 24px));
    padding-right: max(200px, calc((100% - 1380px) / 2 + 200px));
}
.dv-promo-strip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dv-promo-strip-short { display: none; }
.dv-brand-wrap {
    position: absolute; top: 0; z-index: 5; height: 30px;
    right: max(24px, calc((100% - 1380px) / 2 + 24px));
    display: flex; align-items: center;
}
.dv-brand-name {
    display: inline; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; font-weight: 600; line-height: 1; color: #4a4444;
}
.dv-header-row { display: flex; align-items: center; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.dv-header-tools { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.dv-header-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; position: relative; z-index: 3; }
.dv-brand {
    width: auto; height: 30px; border-radius: 0; border: none; background: transparent; color: #4a4444;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0;
    outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent;
}
.dv-brand:hover, .dv-brand:focus, .dv-brand:active { outline: none; box-shadow: none; background: transparent; }
.dv-brand .material-icons { font-size: 18px; width: 18px; height: 18px; line-height: 18px; flex: 0 0 auto; color: #ec2227; }
.dv-spacer { flex: 1; }

/* Cuadro flotante de sucursales */
.dv-suc-pop {
    position: absolute; top: calc(100% + 8px); right: 0; left: auto; z-index: 50; min-width: 260px; max-width: min(420px, calc(100vw - 24px));
    max-height: min(60vh, 420px); overflow-y: auto; background: #fff; color: var(--dv-text);
    border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.dv-suc-pop button {
    display: flex; width: 100%; align-items: center; gap: 8px; background: none; border: none; padding: 11px 10px;
    border-radius: 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; color: var(--dv-text);
    outline: none; box-shadow: none;
}
.dv-suc-pop button:hover { background: var(--dv-red-50); }
.dv-suc-pop button.active { background: var(--dv-red-100); color: var(--dv-red-700); }
.dv-suc-pop .material-icons { font-size: 18px; color: var(--dv-red-600); flex: 0 0 auto; }
.dv-suc-pop small { margin-left: auto; color: var(--dv-muted); font-size: 12px; font-weight: 600; }

.dv-icon-btn {
    background: var(--h-chip); border: none; color: var(--h-fg); width: 40px; height: 40px;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    position: relative; outline: none; box-shadow: none;
}
.dv-icon-btn:hover { background: var(--h-chip-hover); }

.dv-cat-wrap { position: relative; flex: 0 0 auto; }
.dv-header.is-cat-open { z-index: 85; }
.dv-cat-btn {
    position: relative; z-index: 82;
    display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #ec2227; border: none;
    width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; outline: none; box-shadow: none;
}
.dv-cat-btn span { display: none; }
.dv-cat-btn:hover, .dv-cat-btn:focus, .dv-cat-btn:active, .dv-cat-btn.is-on { background: #fff4f4; outline: none; box-shadow: none; }
.dv-cat-backdrop {
    position: fixed; inset: 0; z-index: 90; display: block;
    background: rgba(17, 8, 8, 0.46);
}
.dv-cat-menu {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 91;
    width: min(320px, 86vw); height: 100%; max-height: none;
    display: flex; flex-direction: column;
    background: #fff; color: #1f2937; border-radius: 0;
    padding: 0; overflow: hidden;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
}
.dv-cat-top {
    flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 14px 16px;
    background: linear-gradient(135deg, #c41b1f, #ec2227); color: #fff;
}
.dv-cat-title { flex: 1 1 auto; font-size: 18px; font-weight: 800; }
.dv-cat-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 10px 12px; }
.dv-cat-foot {
    flex: 0 0 auto; border-top: 1px solid #f3f4f6; background: #fff;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px) + var(--wf-taskbar-height, 0px) + var(--wf-bottom-reserve, 0px));
}
.dv-cat-x {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 36px; height: 36px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); color: #fff; cursor: pointer; outline: none; box-shadow: none;
}
.dv-cat-x:hover { background: rgba(255, 255, 255, 0.32); }
.dv-cat-x:focus, .dv-cat-x:active { outline: none; box-shadow: none; }
.dv-cat-x .material-icons { font-size: 20px; }
.dv-cat-head {
    padding: 6px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; color: #6c757d;
}
.dv-cat-item {
    display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: none;
    min-height: 48px; padding: 6px 8px; border-radius: 12px; cursor: pointer; text-align: left;
    color: #1f2937; outline: none; box-shadow: none;
}
.dv-cat-item:hover { background: #fafafa; }
.dv-cat-item:focus, .dv-cat-item:focus-visible, .dv-cat-item:active { outline: none; box-shadow: none; }
.dv-cat-ico {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
    background: #f3f4f6; color: #6c757d;
    display: inline-flex; align-items: center; justify-content: center;
}
.dv-cat-ico .material-icons { font-size: 20px; width: 20px; height: 20px; line-height: 20px; color: inherit; }
.dv-cat-label {
    flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dv-cat-item.active { background: #fff1f2; }
.dv-cat-item.active .dv-cat-label { color: #ec2227; font-weight: 800; }
.dv-cat-item.active .dv-cat-ico,
.dv-cat-item.is-top .dv-cat-ico { background: #fff1f2; color: #ec2227; }
.dv-cat-item.active .dv-cat-ico { background: #ec2227; color: #fff; }

/* Buscador amplio en píldora */
.dv-search {
    flex: 1 1 auto; max-width: none; min-width: 0; display: flex; align-items: center; background: #fff; border-radius: 999px;
    padding: 4px 4px 4px 20px; margin: 0; border: none;
}
.dv-search input {
    flex: 1; min-width: 0; width: 100%; border: none; background: transparent; padding: 8px 6px; font-size: 15px;
    color: var(--dv-text); outline: none;
}
.dv-search-btn {
    width: 40px; height: 40px; border-radius: 50%; border: none; background: #fff; color: #ec2227;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; outline: none; box-shadow: none;
}
.dv-search-btn:hover { filter: none; background: #fff4f4; }

.dv-user-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 0 0 auto;
    height: 40px; width: auto; background: #fff; color: #1f2937; border: 1.5px solid transparent;
    border-radius: 999px; padding: 0 14px 0 8px; font-size: 14px; font-weight: 700; line-height: 1;
    cursor: pointer; outline: none; box-shadow: none; white-space: nowrap;
}
.dv-user-btn span { white-space: nowrap; line-height: 1; }
.dv-user-btn .material-icons {
    font-size: 22px; width: 22px; height: 22px; line-height: 22px; overflow: hidden;
    flex: 0 0 22px; color: #ec2227; display: block;
}
.dv-user-btn:hover { background: var(--h-chip); }
.dv-who {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1px; max-width: 180px; min-width: 0; margin: 0; padding: 4px 16px 5px 14px;
    border: none; border-radius: 999px; background: #fff; color: #1f2937; cursor: pointer;
    text-align: left; outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent;
}
.dv-who-name {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; font-weight: 800; line-height: 1.15; color: #1f2937; text-align: left;
}
.dv-who-pts {
    display: inline-flex; align-items: center; gap: 3px; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; font-weight: 800; line-height: 1.15; color: #ec2227;
}
.dv-who-pts .material-icons {
    font-size: 14px; width: 14px; height: 14px; line-height: 14px; flex: 0 0 14px; color: #f59e0b;
}
.dv-who,
.dv-who-name,
.dv-who:hover,
.dv-who:hover .dv-who-name,
.dv-who:focus,
.dv-who:active { text-decoration: none; outline: none; box-shadow: none; }
/* Cabecera del menú lateral: foto a la izquierda, nombre (y correo) a la derecha. */
.dv-cat-user-img {
    flex: 0 0 auto; width: 58px; height: 58px; padding: 0; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75); overflow: hidden; background: #fff;
    cursor: pointer; outline: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.dv-cat-user-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-cat-user-info {
    flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 0; border: none; background: transparent; color: #fff; text-align: left;
    cursor: pointer; outline: none; box-shadow: none;
}
.dv-cat-user-name {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 19px; font-weight: 800; line-height: 1.15;
}
.dv-cat-user-sub {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, 0.88);
}
.dv-cat-user-img:focus, .dv-cat-user-img:active,
.dv-cat-user-info:focus, .dv-cat-user-info:active { outline: none; }

/* Mi perfil: cuadro flotante con el componente del POS en un iframe (sin minimizar). */
.dv-panel.dv-perfil-panel { max-width: 980px; height: 100%; }
.dv-perfil-frame { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: #fff; }
@media (min-width: 700px) {
    .dv-panel.dv-perfil-panel { height: min(900px, calc(100vh - 32px - var(--wf-taskbar-height, 0px) - var(--wf-bottom-reserve, 0px))); }
    .dv-perfil-frame { border-radius: 0 0 18px 18px; }
}
@media (max-width: 699px) {
    .dv-panel.dv-perfil-panel { border-radius: 0; max-width: none; max-height: 100%; }
}
.dv-cat-sep { height: 1px; margin: 8px 6px; background: #f3f4f6; }
.dv-cat-logout { color: #b91c1c; }
.dv-cat-logout .dv-cat-ico { background: #fef2f2; color: #b91c1c; }
.dv-cat-switch {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 48px; margin: 0 0 6px; padding: 6px 10px;
    font-size: 15px; font-weight: 600; color: #1f2937; cursor: pointer;
}
.dv-cat-switch input {
    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.dv-switch {
    position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px;
    background: #e5e7eb;
}
.dv-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.22);
    transition: transform 0.15s ease;
}
.dv-cat-switch input:checked + .dv-switch { background: #ec2227; }
.dv-cat-switch input:checked + .dv-switch::after { transform: translateX(18px); }
.dv-edit-on {
    margin: 0; padding-top: 6px; padding-bottom: 0;
    text-align: right; font-size: 12px; font-weight: 600; line-height: 1.2; color: #6b7280;
}

/* En grande, la barra es un 20% más baja y el buscador queda un poco más chato. */
@media (min-width: 701px) {
    .dv-cat-menu { width: 340px; }
    .dv-header-row { padding-top: 7px; padding-bottom: 7px; }
    .dv-cat-btn, .dv-icon-btn { width: 34px; height: 34px; }
    .dv-user-btn { height: 34px; }
    .dv-user-btn { padding: 0 12px 0 6px; }
    .dv-cat-btn .material-icons,
    .dv-icon-btn .material-icons,
    .dv-user-btn .material-icons { font-size: 19px; width: 19px; height: 19px; line-height: 19px; }
    .dv-search { flex: 0 1 680px; max-width: 680px; padding: 2px 2px 2px 16px; }
    .dv-header-right { margin-left: auto; }
    .dv-search input { padding: 4px 4px; font-size: 14px; }
    .dv-search-btn { width: 28px; height: 28px; }
}

/* Pantallas chicas: el mismo encabezado, más compacto para que entren la oferta, el reloj y la sucursal. */
@media (max-width: 700px) {
    .dv-promo-strip { height: 26px; font-size: 12px; padding-left: 10px; padding-right: calc(40vw + 14px); }
    .dv-promo-strip-long { display: none; }
    .dv-promo-strip-short { display: inline; }
    .dv-promo-strip-lead { gap: 6px; }
    .dv-urgency-reloj { font-size: 11px; padding: 1px 6px; flex: 0 0 auto; }
    .dv-brand-wrap { height: 26px; right: 10px; max-width: 40vw; }
    .dv-brand { height: 26px; max-width: 100%; }
    .dv-brand-name { max-width: calc(40vw - 22px); font-size: 12px; }
    .dv-header-row { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
    .dv-header-tools { flex-wrap: nowrap; gap: 8px; }
    .dv-cat-btn, .dv-icon-btn { width: 34px; height: 34px; }
    .dv-user-btn { width: 34px; height: 34px; padding: 0; border-radius: 50%; }
    .dv-user-btn span { display: none; }
    .dv-who { max-width: 148px; padding: 3px 12px 4px 12px; }
    .dv-who-name { font-size: 12px; }
    .dv-who-pts { font-size: 11px; }
    .dv-who-pts .material-icons { font-size: 12px; width: 12px; height: 12px; line-height: 12px; flex-basis: 12px; }
    .dv-search { flex: 1 1 auto; min-width: 0; max-width: none; padding: 2px 2px 2px 12px; }
    .dv-search input { padding: 3px 4px; font-size: 13px; }
    .dv-search-btn { width: 28px; height: 28px; }
    .dv-only-wide { display: none; }
}

/* ---- Barra de urgencia ---------------------------------------------------- */
.dv-promo-strip-lead { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.dv-urgency-reloj { font-variant-numeric: tabular-nums; background: #ec2227; color: #fff; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: 0.02em; }

/* ---- Banners ------------------------------------------------------------- */
.dv-main { padding-top: 4px; }
.dv-banner {
    margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; display: flex;
    gap: 8px; align-items: flex-start; line-height: 1.35;
}
.dv-banner .material-icons { font-size: 20px; flex: 0 0 auto; }
.dv-banner-info { background: var(--dv-red-100); color: var(--dv-red-900); }
.dv-banner-closed { background: #fef2f2; color: #991b1b; }
.dv-banner-warn { background: #fffbeb; color: #92400e; align-items: center; }
.dv-banner-turno {
    background: #fff; color: #4b5563; align-items: center;
    border: 1px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06); padding: 12px 14px;
}
.dv-banner-turno .material-icons {
    color: #ec2227; background: #fff1f2; width: 32px; height: 32px; border-radius: 50%;
    font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
}
.dv-banner-ok { background: #ecfdf5; color: #065f46; }

/* ---- Seguimiento de pedido ------------------------------------------------ */
.dv-track { margin: 12px 0 0; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 2px 10px var(--dv-glow); }
.dv-track.is-latido { animation: dvTrackLatido 1.8s ease; }
@keyframes dvTrackLatido {
    0%, 100% { box-shadow: 0 2px 10px var(--dv-glow); }
    12%, 40%, 68% { box-shadow: 0 0 0 3px #ec2227, 0 8px 18px rgba(236, 34, 39, 0.18); }
    26%, 54%, 82% { box-shadow: 0 2px 10px var(--dv-glow); }
}
.dv-track-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dv-track-code { font-weight: 800; color: var(--dv-red-700); }
.dv-track-state { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--dv-red-100); color: var(--dv-red-700); }
.dv-track-state.armado { background: #d1fae5; color: #065f46; }
.dv-steps { display: flex; margin-top: 10px; gap: 4px; }
.dv-step { flex: 1; text-align: center; font-size: 11px; color: var(--dv-muted); }
.dv-step i { display: block; height: 5px; border-radius: 3px; background: #e5e7eb; margin-bottom: 4px; }
.dv-step.done i { background: #ec2227; }
.dv-step.done { color: #111827; font-weight: 700; }
.dv-track-meta { margin-top: 8px; font-size: 12.5px; color: var(--dv-muted); text-align: right; }

/* Pedido armado: el cliente revisa los cambios y responde */
.dv-aprob {
    margin-top: 10px; padding: 10px 12px; border-radius: 12px;
    background: #fff7ed; border: 1.5px solid #fed7aa; text-align: left;
}
.dv-aprob-tit { display: flex; align-items: center; justify-content: flex-start; gap: 6px; font-weight: 800; font-size: 14px; color: #9a3412; }
.dv-aprob-tit .material-icons { font-size: 20px; }
.dv-aprob-cambios { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: #1f2937; }
.dv-aprob-cambios li { padding: 3px 0; }
.dv-aprob-tag {
    display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}
.dv-aprob-tag.is-quitado { background: #fee2e2; color: #b91c1c; }
.dv-aprob-tag.is-agregado { background: #d1fae5; color: #047857; }
.dv-aprob-tag.is-cantidad { background: #fef3c7; color: #b45309; }
.dv-aprob-total { margin-top: 6px; font-size: 13px; color: #374151; }
.dv-aprob-total strong { color: #047857; font-size: 14px; }
.dv-aprob-nota { margin: 8px 0 0; font-size: 12.5px; color: #7c2d12; }
.dv-aprob-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 10px; }
.dv-aprob-btns .dv-btn { width: auto; display: inline-flex; align-items: center; gap: 4px; }
.dv-aprob-btns .dv-btn .material-icons { font-size: 17px; }
/* .dv-btn (más abajo) pisa un fondo de una sola clase: hay que ganar en especificidad. */
.dv-aprob-btns .dv-btn.dv-aprob-ok {
    background: #ec2227; color: #fff; box-shadow: 0 4px 12px rgba(236, 34, 39, 0.28);
}
.dv-aprob-btns .dv-btn.dv-aprob-ok:hover { background: #c41b1f; }
.dv-aprob-btns .dv-btn.dv-btn-ghost {
    background: #fff; color: #1f2937; border: 1.5px solid #d1d5db; box-shadow: none;
}
.dv-aprob-btns .dv-btn.dv-btn-ghost:hover { background: #f9fafb; }
.dv-aprob-cancel { margin: 0; color: #b91c1c; }
.dv-aprob-estado {
    display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin-top: 10px; padding: 7px 10px;
    border-radius: 10px; font-size: 12.5px; font-weight: 600; text-align: left;
}
.dv-aprob-estado .material-icons { font-size: 18px; }
.dv-aprob-estado.is-ok { background: #ecfdf5; color: #047857; }
.dv-aprob-estado.is-warn { background: #fff7ed; color: #9a3412; }
.dv-link-btn { background: none; border: none; color: var(--dv-red-700); font-weight: 700; cursor: pointer; padding: 0; font-size: 12.5px; outline: none; box-shadow: none; }

/* ---- Secciones con carrusel ----------------------------------------------- */
.dv-section { margin-top: 26px; }
.dv-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dv-section-kicker {
    display: inline-block; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 3px 12px;
    font-size: 12px; font-weight: 800; margin-bottom: 6px;
}
.dv-section-h { margin: 0; font-size: 24px; font-weight: 800; color: #4b5563; line-height: 1.15; }
.dv-promo-w { display: inline-block; transform-origin: center bottom; }
.dv-promo-w.is-play { animation: dvTiltWord 0.56s ease-in-out 1; }
@keyframes dvTiltWord {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(var(--dv-promo-scale, 1)); }
}
.dv-p2 .dv-promo-w.is-brillo {
    background-image: linear-gradient(100deg, #ec2227 0%, #ec2227 36%, #fff 50%, #ec2227 64%, #ec2227 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: dvPromoSheen 1.02s linear 1;
}
@keyframes dvPromoSheen {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}
.dv-promo-w.is-giro { perspective: 320px; }
.dv-promo-ch {
    display: inline-block;
    transform-origin: center center;
    animation: dvPromoGiro 0.336s ease-in-out 1 both;
}
@keyframes dvPromoGiro {
    0% { transform: rotateY(0deg) rotate(0deg); }
    42% { transform: rotateY(78deg) rotate(-16deg); }
    100% { transform: rotateY(0deg) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .dv-promo-w,
    .dv-promo-ch,
    .dv-p2 .dv-promo-w.is-brillo { animation: none; }
}
.dv-p2 .dv-section-h { color: #ec2227; letter-spacing: -0.03em; }
.dv-section-emoji { margin-right: 6px; }

/* Caramelos y gomitas sueltos: marco fino alrededor de todo el apartado */
.dv-section-sueltos {
    margin-top: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 14px 4px;
    box-shadow: 0 -8px 20px rgba(17, 24, 39, 0.08), 0 10px 24px rgba(17, 24, 39, 0.08);
}
.dv-section-sueltos .dv-section-titles { flex: 1 1 auto; min-width: 0; width: 100%; }
.dv-section-sueltos .dv-section-h,
.dv-section-sueltos .dv-candy-ch { display: block; color: #ec2227; font-size: 28px; letter-spacing: -0.02em; }
.dv-section-sueltos .dv-candy-ch { display: inline-block; letter-spacing: -0.02em; }
.dv-section-sueltos .dv-candy-ch.is-pastel { filter: saturate(1.75) contrast(1.18); }
.dv-section-sueltos .dv-section-sub {
    margin-top: 4px; color: #4b5563; font-weight: 600;
    font-size: 22px; line-height: 1.15;
}
.dv-section-sueltos .dv-sub-ch {
    display: inline-block;
    filter: saturate(1.75) contrast(1.18);
    transition: transform 0.18s ease, color 0.18s ease;
}
.dv-section-sueltos .dv-sub-ch.is-up { transform: translateY(-5px); }
@media (min-width: 701px) {
    .dv-section-sueltos .dv-section-titles {
        display: flex; align-items: baseline; justify-content: flex-start; gap: 16px;
    }
    .dv-section-sueltos .dv-section-h { flex: 0 0 auto; }
    .dv-section-sueltos .dv-section-sub { margin-top: 0; text-align: left; }
}
@media (max-width: 700px) {
    .dv-section-sueltos {
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 2px 0 0;
        margin-left: -8px;
        margin-right: -8px;
    }
    .dv-section-sueltos .dv-section-head { padding: 0 10px; }
    .dv-section-sueltos .dv-section-h,
    .dv-section-sueltos .dv-candy-ch { font-size: 24px; }
    .dv-section-sueltos .dv-section-sub { margin-top: 8px; }
}
.dv-sub-w { transition: color 0.35s ease; }
@media (prefers-reduced-motion: reduce) {
    .dv-sub-w { transition: none; }
}
.dv-tilt-w { display: inline-block; }
.dv-candy-ch {
    display: inline-block;
    transform-origin: center bottom;
    transition: transform 0.2s ease, color 0.18s ease;
}
.dv-candy-ch.is-up { transform: translateY(-2px) scale(1.08, 1.22); }
@media (prefers-reduced-motion: reduce) {
    .dv-candy-ch,
    .dv-section-sueltos .dv-sub-ch { transition: none; }
}
.dv-section-sueltos .dv-card-price { color: #ec2227; font-size: 20px; }
.dv-section-sueltos .dv-card-name { min-height: 34px; }
.dv-section-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--dv-muted); }
.dv-section-cards .dv-section-sub {
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.3;
}
.dv-section.is-cocina .dv-section-h {
    color: #ec2227;
    font-size: 28px;
    letter-spacing: -0.02em;
}
.dv-ck-w { display: inline-block; transform-origin: center bottom; }
.dv-ck-w.is-play { animation: dvTiltWord 0.56s ease-in-out 1; }
@media (max-width: 700px) {
    .dv-section.is-cocina .dv-section-h { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .dv-ck-w.is-play { animation: none; }
}
.dv-section-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dv-section-more {
    display: inline-flex; align-items: center; color: var(--dv-red-700); font-weight: 800; font-size: 14px;
    text-decoration: none; margin-right: 4px; outline: none;
}
.dv-section-more .material-icons { font-size: 20px; }
.dv-section-more:hover { text-decoration: underline; }
.dv-side-stage { position: relative; }
.dv-side-nav {
    position: absolute; top: 42%; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
    border: none; background: #fff; color: #374151; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18); outline: none;
}
.dv-side-nav .material-icons { font-size: 26px; line-height: 1; }
.dv-side-nav.is-prev { left: -6px; }
.dv-side-nav.is-next { right: -6px; }
.dv-side-nav:disabled { opacity: 0.35; cursor: default; }
.dv-side-nav:focus, .dv-side-nav:focus-visible, .dv-side-nav:active { outline: none; box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18); }
@media (max-width: 700px) {
    .dv-side-nav {
        top: 30%; width: 22px; height: 28px; border-radius: 6px;
        background: rgba(255, 255, 255, 0.55); color: #6b7280;
        box-shadow: none; border: none;
    }
    .dv-side-nav .material-icons { font-size: 18px; }
    .dv-side-nav.is-prev { left: 0; }
    .dv-side-nav.is-next { right: 0; }
    .dv-side-nav:focus, .dv-side-nav:focus-visible, .dv-side-nav:active { box-shadow: none; }
    /* Cards: sin flechas laterales. Promos las conservan. */
    .dv-section:not(.dv-p2) .dv-side-nav { display: none; }
}

.dv-dots { display: none; }
@media (max-width: 700px) {
    .dv-dots {
        display: flex; justify-content: center; align-items: center; gap: 8px;
        margin: 0 0 8px; padding: 0;
    }
    .dv-dot {
        width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
        border: 1.5px solid #ec2227; background: #fff; outline: none; box-shadow: none;
    }
    .dv-dot.is-on { background: #ec2227; border-color: #ec2227; }
    .dv-dot:focus, .dv-dot:focus-visible, .dv-dot:active { outline: none; box-shadow: none; }
}

.dv-carousel-track {
    display: flex; align-items: stretch; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 6px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.dv-carousel-track::-webkit-scrollbar { display: none; }
.dv-carousel-track > .dv-card { scroll-snap-align: start; flex: 0 0 auto; }
@media (max-width: 700px) {
    /* El overflow del carrusel recortaba el borde izquierdo y dejaba el sobrante a la derecha. */
    .dv-section:not(.dv-p2) .dv-carousel-track {
        padding-left: 6px;
        padding-right: 6px;
        scroll-padding-left: 6px;
        scroll-padding-right: 6px;
    }
}

/* Celular: 2 tarjetas ocupan todo el ancho, sin asomar la tercera.
   Desde 700px: 3, 4 y 5 por fila. Sueltos no se achican a 4 o 5. */
.dv-track-cards > .dv-card,
.dv-track-sueltos > .dv-card { width: calc((100% - 16px) / 2); }
@media (max-width: 700px) {
    .dv-section.dv-section-sueltos .dv-carousel-track {
        gap: 14px;
        padding: 3px 8px 6px;
        scroll-padding-left: 8px;
        scroll-padding-right: 8px;
    }
    .dv-section-sueltos .dv-track-sueltos > .dv-card { width: calc((100% - 14px) / 2); }
}
@media (min-width: 700px)  { .dv-track-cards > .dv-card, .dv-track-sueltos > .dv-card { width: calc((100% - 32px) / 3); } }
@media (min-width: 900px)  { .dv-track-cards > .dv-card { width: calc((100% - 48px) / 4); } }
@media (min-width: 1100px) { .dv-track-cards > .dv-card { width: calc((100% - 64px) / 5); } }

/* ---- Listado general -------------------------------------------------------- */
.dv-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dv-section-title { margin: 26px 0 10px; font-size: 14px; font-weight: 800; color: #4b5563; text-transform: uppercase; letter-spacing: 0.04em; }
.dv-list-head .dv-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #4b5563;
    line-height: 1.15;
    text-transform: none;
    letter-spacing: normal;
}
.dv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 0 8px; }
@media (min-width: 560px)  { .dv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 820px)  { .dv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }

/* ---- Tarjeta de producto ---------------------------------------------------- */
.dv-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px var(--dv-glow); transition: box-shadow .15s ease, transform .15s ease; }
.dv-card:hover { box-shadow: 0 6px 18px var(--dv-glow); }
/* Seleccionado: el secondary de Bootstrap (#6c757d) se leía casi negro.
   Gray-500 (#adb5bd) es el gris de al lado en esa escala. */
.dv-card.in-cart,
.dv-card.in-cart:hover { box-shadow: 0 0 0 2px #adb5bd, 0 4px 14px rgba(173, 181, 189, 0.45); }
.dv-section-sueltos .dv-card.is-borde-pastel,
.dv-section-sueltos .dv-card.is-borde-pastel:hover,
.dv-section-sueltos .dv-card.is-borde-pastel.in-cart,
.dv-section-sueltos .dv-card.is-borde-pastel.in-cart:hover {
    box-shadow: 0 0 0 2px var(--dv-borde, #f9a8d4), 0 4px 14px rgba(17, 24, 39, 0.12);
}
.dv-card-img { position: relative; aspect-ratio: 1 / 1; background: var(--dv-red-50); display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* En el celular la foto es la mayor parte de la card: 18% menos de foto deja la card ~12% más baja. */
@media (max-width: 700px) {
    .dv-card > .dv-card-img { aspect-ratio: 1 / 0.82; }
    .dv-card > .dv-card-body { padding-top: 3px; padding-bottom: 3px; }
    .dv-card > .dv-qtybox { margin-bottom: 6px; }
}
.dv-section-sueltos .dv-card-img::after {
    content: "";
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    animation: dvSombraDentro 2.6s ease-in-out infinite;
}
.dv-section-sueltos .dv-track-sueltos > .dv-card:nth-child(2) .dv-card-img::after { animation-delay: -0.85s; }
.dv-section-sueltos .dv-track-sueltos > .dv-card:nth-child(3) .dv-card-img::after { animation-delay: -1.7s; }
.dv-section-sueltos .dv-tag-grams { z-index: 5; }
@keyframes dvSombraDentro {
    0%, 100% { box-shadow: inset 0 0 6px 0 color-mix(in srgb, var(--dv-borde, #f9a8d4) 28%, transparent); }
    50% { box-shadow: inset 0 0 12px 3px color-mix(in srgb, var(--dv-borde, #f9a8d4) 48%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    .dv-section-sueltos .dv-card-img::after {
        animation: none;
        box-shadow: inset 0 0 8px 2px color-mix(in srgb, var(--dv-borde, #f9a8d4) 36%, transparent);
    }
}
.dv-card.is-offline .dv-photo > img { filter: grayscale(1); opacity: 0.4; }
.dv-card.is-offline .dv-card-name,
.dv-card.is-offline .dv-card-price,
.dv-card.is-offline .dv-card-unit { color: #9ca3af; }
.dv-card.is-editing .dv-photo-name { right: 44px; }
.dv-offline-tag {
    position: absolute; left: 8px; bottom: 8px; z-index: 4;
    background: #111827; color: #fff; border-radius: 999px;
    padding: 3px 8px; font-size: 11px; font-weight: 800; line-height: 1.2;
    pointer-events: none;
}
.dv-card-img .dv-photo { z-index: 1; }
.dv-offline-tag { z-index: 5; }
.dv-online-sw {
    position: absolute; right: 8px; bottom: 8px; z-index: 5;
    width: 26px; height: 26px; border-radius: 50%; border: none; padding: 0;
    background: rgba(255, 255, 255, 0.92); color: #374151;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.dv-card-img .dv-online-sw .material-icons {
    font-size: 16px; width: 16px; height: 16px; line-height: 16px; color: #374151;
}
.dv-online-sw.is-off { background: #fff; }
.dv-card-img .dv-online-sw.is-off .material-icons { color: #9ca3af; }
.dv-online-sw:focus, .dv-online-sw:focus-visible, .dv-online-sw:active { outline: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); }
.dv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-photo > .material-icons { font-size: 44px; color: var(--dv-red-200); }
.dv-card-body { padding: 4px 10px 5px; flex: 0 0 auto; }
.dv-card-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv-card-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; line-height: 1.05; }
.dv-card-old { color: #9ca3af; text-decoration: line-through; font-size: 12.5px; font-weight: 600; }
.dv-card-price { color: var(--dv-red-700); font-weight: 800; font-size: 16px; }
.dv-card-unit { flex: 1 0 100%; margin-top: 1px; font-size: 12px; font-weight: 700; color: #9ca3af; }
.dv-tag-grams {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: #ec2227; color: #fff; border-radius: 999px;
    padding: 2px 8px; font-size: 11px; font-weight: 800;
    box-shadow: 0 2px 6px rgba(236, 34, 39, 0.28);
}

/* Ampliar foto y pasar de imagen, sobre la miniatura */
.dv-photo { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.dv-card-img .dv-photo,
.dv-p2-hero-img .dv-photo,
.dv-xsell-item .img .dv-photo { position: absolute; inset: 0; }
.dv-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-photo > .material-icons { font-size: 44px; color: var(--dv-red-200); }
.dv-photo-zoom,
.dv-photo-nav {
    position: absolute; z-index: 3; border: none; padding: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #374151; outline: none; box-shadow: none;
}
.dv-photo-zoom {
    top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.dv-photo-zoom .material-icons { font-size: 16px; color: #374151; line-height: 1; }
.dv-photo-nav {
    top: 50%; width: 20px; height: 28px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.62); transform: translateY(-50%);
}
.dv-photo-nav .material-icons { font-size: 18px; color: #374151; line-height: 1; }
.dv-photo-nav.is-prev { left: 4px; }
.dv-photo-nav.is-next { right: 4px; }
.dv-photo-name {
    position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3;
    text-align: center; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2;
    padding: 3px 8px; border-radius: 999px; background: rgba(15, 6, 38, 0.62);
    pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
button.dv-photo-name,
label.dv-photo-name {
    font-family: inherit; display: block; margin: 0;
}
.dv-photo-name.is-edit {
    pointer-events: auto; cursor: text; border: none;
}
.dv-photo-name-input {
    width: 100%; border: none; background: transparent; color: #fff;
    text-align: center; font: inherit; font-weight: 800; line-height: 1.2;
    outline: none; padding: 0; box-shadow: none;
}
.dv-photo-name-input:focus { outline: none; box-shadow: none; }
.dv-photo-check {
    font-size: 16px; width: 16px; height: 16px; line-height: 16px;
    color: #86efac; vertical-align: -3px; margin-left: 2px;
}
.dv-photo-name.is-pastel,
.dv-photo-name.is-pastel .dv-photo-name-input {
    color: #1f2937;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}
.dv-photo-name.is-pastel,
button.dv-photo-name.is-pastel,
label.dv-photo-name.is-pastel {
    left: auto; right: 8px; width: max-content; max-width: calc(100% - 16px);
    display: inline-block; text-align: center;
    box-shadow: 0 3px 8px rgba(17, 24, 39, 0.28);
}
.dv-photo-name.is-pastel .dv-photo-name-input { width: 14ch; }
.dv-photo-name.is-pastel .dv-photo-check { color: #15803d; }
.dv-photo.is-minis .dv-photo-name { display: none; }
.dv-photo.is-minis::after {
    content: "";
    position: absolute; right: 0; bottom: 0; z-index: 3; pointer-events: none;
    width: 62%; height: 48%;
    background: linear-gradient(to top left, rgba(17, 24, 39, 0.5) 0%, rgba(17, 24, 39, 0.2) 46%, rgba(17, 24, 39, 0) 74%);
}
.dv-photo-minis {
    position: absolute; right: 8px; bottom: 8px; z-index: 4;
    display: flex; gap: 5px; pointer-events: none;
    padding: 0; background: none; box-shadow: none;
}
.dv-photo-mini {
    width: 41px; height: 41px; flex: 0 0 41px; border-radius: 8px;
    background: #fff; overflow: hidden;
    box-shadow: 0 0 0 1px var(--mini-borde, #f9a8d4), 0 3px 8px rgba(17, 24, 39, 0.28);
}
.dv-card-img .dv-photo-mini img,
.dv-photo-mini img {
    width: 41px; height: 41px; object-fit: cover; display: block;
}
.dv-card.is-editing .dv-photo.is-minis ~ .dv-online-sw { bottom: 56px; }
.dv-minis-enter-active, .dv-minis-leave-active { transition: opacity 0.35s ease; }
.dv-minis-enter, .dv-minis-leave-to { opacity: 0; }
.dv-minis-leave-active { position: absolute; right: 8px; bottom: 8px; }
@media (max-width: 700px) {
    .dv-photo-minis { right: 6px; bottom: 6px; gap: 4px; }
    .dv-photo-mini,
    .dv-card-img .dv-photo-mini img,
    .dv-photo-mini img { width: 29px; height: 29px; }
    .dv-photo-mini { flex-basis: 29px; border-radius: 6px; box-shadow: 0 0 0 1px var(--mini-borde, #f9a8d4), 0 2px 6px rgba(17, 24, 39, 0.28); }
    .dv-photo.is-minis::after { width: 70%; height: 42%; }
    .dv-card.is-editing .dv-photo.is-minis ~ .dv-online-sw { bottom: 42px; }
    .dv-minis-leave-active { right: 6px; bottom: 6px; }
}
.dv-photo-zoom:focus, .dv-photo-zoom:focus-visible,
.dv-photo-nav:focus, .dv-photo-nav:focus-visible { outline: none; box-shadow: none; }
.dv-photo.is-compact .dv-photo-zoom { top: 4px; right: 4px; width: 22px; height: 22px; }
.dv-photo.is-compact .dv-photo-zoom .material-icons { font-size: 14px; }
.dv-photo.is-compact .dv-photo-nav { width: 16px; height: 22px; background: rgba(255, 255, 255, 0.55); }
.dv-photo.is-compact .dv-photo-nav .material-icons { font-size: 16px; }
.dv-card-img .dv-photo-zoom .material-icons,
.dv-card-img .dv-photo-nav .material-icons { font-size: 16px; width: auto; height: auto; background: none; }
.dv-xsell-item .img { position: relative; }
.dv-p2-hero-img { z-index: 3; pointer-events: none; }
.dv-p2-hero-img .dv-photo > img { object-fit: contain; }
.dv-p2-hero-img .dv-photo-zoom { top: auto; right: auto; left: 8px; bottom: 8px; pointer-events: auto; }
.dv-p2-hero-img .dv-photo-nav { pointer-events: auto; }

.dv-visor {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 6, 38, 0.92);
    padding: 56px 56px 72px;
}
.dv-visor-img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 8px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}
.dv-visor-x, .dv-visor-nav {
    position: absolute; border: none; padding: 0; cursor: pointer; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.14); outline: none; box-shadow: none;
}
.dv-visor-x { top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; }
.dv-visor-x .material-icons { font-size: 22px; }
.dv-visor-nav { top: 50%; transform: translateY(-50%); width: 40px; height: 56px; border-radius: 10px; }
.dv-visor-nav .material-icons { font-size: 32px; }
.dv-visor-nav.is-prev { left: 12px; }
.dv-visor-nav.is-next { right: 12px; }
.dv-visor-x:focus, .dv-visor-nav:focus, .dv-visor-x:focus-visible, .dv-visor-nav:focus-visible { outline: none; box-shadow: none; }
.dv-visor-cap {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    text-align: center; color: #fff; font-size: 14px; font-weight: 700;
}
.dv-visor-tipo { display: block; font-size: 20px; font-weight: 800; margin-bottom: 2px; }
@media (max-width: 700px) {
    .dv-visor { padding: 48px 36px 64px; }
    .dv-visor-nav { width: 28px; height: 40px; }
    .dv-visor-nav .material-icons { font-size: 24px; }
    .dv-visor-nav.is-prev { left: 4px; }
    .dv-visor-nav.is-next { right: 4px; }
}
.dv-card-sub { min-height: 13px; margin-top: 0; text-align: right; font-size: 12px; font-weight: 800; color: #4b5563; line-height: 1.05; }
.dv-mix-open {
    display: flex; align-items: center; justify-content: flex-end; gap: 4px; width: 100%;
    margin-top: 4px; padding: 0; border: none; background: none; color: #ec2227;
    font-size: 13px; font-weight: 700; cursor: pointer; outline: none; box-shadow: none;
}
.dv-mix-open .material-icons { font-size: 16px; }
.dv-mix-open:focus, .dv-mix-open:focus-visible, .dv-mix-open:active { outline: none; box-shadow: none; }
.dv-mix-open.is-on { color: #9f1239; }
.dv-mix-overlay {
    position: fixed; inset: 0; z-index: var(--wf-child-z, 80);
    display: flex; align-items: center; justify-content: center;
    padding: 16px 16px calc(16px + var(--wf-taskbar-height, 0px) + var(--wf-bottom-reserve, 0px));
    background: rgba(15, 6, 38, 0.55); backdrop-filter: blur(2px);
}
.dv-mix-panel {
    background: #fff; width: 100%; max-width: 420px; max-height: 100%;
    display: flex; flex-direction: column; border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}
.dv-mix-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.dv-mix-head h3 { margin: 0; flex: 1; font-size: 17px; font-weight: 800; color: #1f2937; }
.dv-mix-x {
    width: 32px; height: 32px; border: none; border-radius: 8px; background: #f3f4f6; color: #374151;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; outline: none; box-shadow: none;
}
.dv-mix-x .material-icons { font-size: 18px; }
.dv-mix-x:focus, .dv-mix-x:focus-visible { outline: none; box-shadow: none; }
.dv-mix-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 16px 8px; }
.dv-mix-ayuda { margin: 0 0 10px; font-size: 13px; color: #6b7280; line-height: 1.35; }
.dv-mix-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f3f4f6; }
.dv-mix-row img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; flex: 0 0 42px; background: #f3f4f6; }
.dv-mix-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; color: #1f2937; }
.dv-mix-step { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.dv-mix-step button {
    width: 28px; height: 28px; border: none; border-radius: 8px; background: #ec2227; color: #fff;
    font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; outline: none; box-shadow: none;
}
.dv-mix-step button:disabled { background: #e5e7eb; color: #9ca3af; cursor: default; }
.dv-mix-step button:focus, .dv-mix-step button:focus-visible { outline: none; box-shadow: none; }
.dv-mix-step span { min-width: 42px; text-align: center; font-size: 13px; font-weight: 800; color: #1f2937; }
.dv-mix-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f3f4f6;
}
.dv-mix-foot > span { font-size: 14px; font-weight: 800; color: #4b5563; }
.dv-mix-ok {
    border: none; border-radius: 10px; padding: 10px 18px; background: linear-gradient(135deg, #c41b1f, #ec2227);
    color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; outline: none; box-shadow: none;
}
.dv-mix-ok:focus, .dv-mix-ok:focus-visible { outline: none; box-shadow: none; }
.dv-card-stock { font-size: 11px; color: var(--dv-warn); font-weight: 600; }

.dv-tag-top {
    position: absolute; top: 8px; left: 8px; z-index: 2; background: #fff; color: var(--dv-red-700); border: 1px solid var(--dv-red-200);
    border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Selector − cantidad + (misma pieza que /pedidos, en rojo).
   No usa .dv-step: esa clase es la barra del seguimiento y le pinta un trazo a cada <i>. */
.dv-qtybox {
    display: flex; align-items: center; margin: 0 10px 8px; border-radius: 10px; overflow: hidden;
    border: 1.5px solid #e5e7eb;
}
/* En la fila, todas las botoneras quedan en la misma línea (el hueco queda arriba). */
.dv-card > .dv-qtybox { margin-top: auto; }
.dv-qtybox-btn {
    flex: 0 0 34px; width: 34px; height: 34px; border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0; outline: none; box-shadow: none; background: transparent;
}
.dv-qtybox-btn .material-icons {
    display: block; width: auto; height: auto; margin: 0; background: none; border-radius: 0;
    font-size: 18px; line-height: 1;
}
.dv-qtybox-btn:disabled { cursor: not-allowed; }
.dv-qtybox-input {
    flex: 1; min-width: 0; width: 36px; height: 34px; border: none; text-align: center; font-size: 0.85rem;
    font-weight: 600; background: transparent; -moz-appearance: textfield; outline: none;
}
.dv-qtybox-input::-webkit-outer-spin-button, .dv-qtybox-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dv-qtybox-off { border-color: #e5e7eb; background: #fff; }
.dv-qtybox-off .dv-qtybox-btn { background: #f3f4f6; color: #9ca3af; }
.dv-qtybox-off .dv-qtybox-plus:not(:disabled) { color: #6b7280; cursor: pointer; }
.dv-qtybox-off .dv-qtybox-plus:not(:disabled):hover { background: #e5e7eb; color: #374151; }
.dv-qtybox-off .dv-qtybox-input { background: #fff; color: #9ca3af; font-weight: 500; }
.dv-qtybox-on { border-color: #ec2227; box-shadow: 0 0 0 3px rgba(236, 34, 39, 0.15); background: #fff; }
.dv-qtybox-on .dv-qtybox-btn { background: linear-gradient(135deg, #c41b1f, #ec2227); color: #fff; }
.dv-qtybox-on .dv-qtybox-btn:not(:disabled):hover { background: linear-gradient(135deg, #9e1518, #c41b1f); }
.dv-qtybox-on .dv-qtybox-btn:disabled { opacity: 0.4; }
.dv-qtybox-on .dv-qtybox-input { background: #fff; color: #c41b1f; font-weight: 700; }

/* Sueltos en pantallas grandes: foto a la izquierda y nombre, precio y cantidad a la derecha.
   Así las 3 tarjetas usan todo el ancho en vez de dejar un hueco. */
@media (min-width: 1100px) {
    .dv-section-sueltos .dv-track-sueltos > .dv-card {
        width: calc((100% - 32px) / 3);
        display: grid;
        grid-template-columns: minmax(148px, 44%) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        align-items: stretch;
    }
    .dv-section-sueltos .dv-track-sueltos > .dv-card > .dv-card-img {
        grid-column: 1;
        grid-row: 1 / span 2;
        display: block;
        aspect-ratio: auto;
        width: 100%;
        height: auto;
        align-self: stretch;
    }
    .dv-section-sueltos .dv-track-sueltos > .dv-card > .dv-card-img::before {
        content: "";
        display: block;
        padding-top: 100%;
    }
    .dv-section-sueltos .dv-track-sueltos > .dv-card > .dv-card-body {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        padding: 12px 14px 0;
    }
    .dv-section-sueltos .dv-track-sueltos > .dv-card > .dv-qtybox {
        grid-column: 2;
        grid-row: 2;
        margin: 8px 14px 14px;
    }
    .dv-section-sueltos .dv-track-sueltos > .dv-card .dv-card-name {
        min-height: 0;
        -webkit-line-clamp: 3;
    }
}

/* Botones sueltos que quedan en el checkout y el cross-selling */
.dv-qty-btn {
    width: 34px; height: 34px; border-radius: 10px; border: none; cursor: pointer; font-size: 20px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; outline: none; box-shadow: none;
    background: var(--dv-grad); color: #fff;
}
.dv-qty-btn.minus { background: var(--dv-red-100); color: var(--dv-red-700); }
.dv-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.dv-add-btn {
    flex: 1; border: none; border-radius: 10px; padding: 9px 0; background: var(--dv-grad);
    color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; outline: none; box-shadow: none;
}
.dv-add-btn:hover { background: linear-gradient(135deg, var(--dv-red-900), var(--dv-red-700)); }
.dv-add-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.dv-empty { text-align: center; color: var(--dv-muted); padding: 36px 20px; font-size: 14px; }
.dv-empty .material-icons { font-size: 46px; color: var(--dv-red-200); display: block; margin: 0 auto 8px; width: 1em; height: 1em; overflow: hidden; line-height: 1; }
.dv-spinner {
    display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%;
    border: 3px solid #f3d0d1; border-top-color: #ec2227;
    animation: dvspin 0.8s linear infinite;
}
.material-icons.dv-spin { width: 1em; height: 1em; overflow: hidden; line-height: 1; }
.dv-more { text-align: center; padding: 14px; color: var(--dv-muted); font-size: 13px; }
.dv-spin { animation: dvspin 1s linear infinite; }
@keyframes dvspin { to { transform: rotate(360deg); } }

/* ---- Cross-selling ------------------------------------------------------- */
.dv-xsell { margin: 12px 0 0; }
.dv-xsell-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--dv-red-700); }
.dv-xsell-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.dv-xsell-row::-webkit-scrollbar { display: none; }
.dv-panel .dv-xsell-title { margin-left: 16px; }
.dv-panel .dv-xsell-row { padding-left: 16px; padding-right: 16px; }
.dv-xsell-item { flex: 0 0 150px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 2px 8px var(--dv-glow); display: flex; flex-direction: column; gap: 6px; }
.dv-xsell-item .img { height: 74px; background: var(--dv-red-50); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dv-xsell-item .img img { width: 100%; height: 100%; object-fit: cover; }
.dv-xsell-item .img .material-icons { color: var(--dv-red-200); font-size: 32px; }
.dv-xsell-item .nm { font-size: 12.5px; font-weight: 600; line-height: 1.2; height: 30px; overflow: hidden; }
.dv-xsell-item .pr { font-size: 13px; font-weight: 800; color: var(--dv-red-700); }
/* Checkout: foto redonda, sin tarjeta ni sombra. */
.dv-xsell.is-mini { margin-left: -16px; margin-right: -16px; }
.dv-xsell.is-mini .dv-xsell-title { color: #ec2227; font-weight: 800; }
.dv-xsell.is-mini .dv-xsell-stage { display: flex; align-items: center; }
.dv-xsell.is-mini .dv-xsell-row { flex: 1 1 auto; min-width: 0; padding-top: 8px; padding-left: 2px; padding-right: 2px; gap: 14px; scroll-behavior: smooth; }
.dv-xsell-nav {
    flex: 0 0 28px; width: 28px; height: 28px; margin: 0 2px; padding: 0;
    border: none; border-radius: 50%; background: #fff1f2; color: #ec2227; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(236, 34, 39, 0.18); outline: none;
}
.dv-xsell-nav .material-icons { font-size: 22px; line-height: 1; }
.dv-xsell-nav:disabled { opacity: 0.28; cursor: default; }
.dv-xsell-nav:focus,
.dv-xsell-nav:focus-visible,
.dv-xsell-nav:active { outline: none; box-shadow: 0 1px 4px rgba(236, 34, 39, 0.18); }
.dv-xsell.is-mini .dv-xsell-item {
    flex: 0 0 108px; align-items: center; text-align: center;
    margin: 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; gap: 4px;
}
.dv-xsell.is-mini .dv-xsell-thumb {
    position: relative; width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; overflow: hidden;
    background: transparent; border: none; box-shadow: none;
}
.dv-xsell.is-mini .dv-xsell-thumb .dv-photo { position: absolute; inset: 0; }
.dv-xsell.is-mini .dv-xsell-thumb .dv-photo > img { object-fit: cover; }
.dv-xsell.is-mini .dv-xsell-thumb .dv-photo > .material-icons { font-size: 28px; }
.dv-xsell.is-mini .dv-xsell-thumb .dv-photo-zoom,
.dv-xsell.is-mini .dv-xsell-thumb .dv-photo-nav { display: none; }
.dv-xsell.is-mini .dv-xsell-thumb.is-latido { animation: dvLatidoFoto 1.95s ease; }
@keyframes dvLatidoFoto {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 #ec2227; }
    5%   { transform: scale(1.08); box-shadow: 0 0 0 3px #ec2227; }
    12%  { transform: scale(1); box-shadow: 0 0 0 2px #ec2227; }
    18%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 34, 39, 0); }
    33%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 34, 39, 0); }
    38%  { transform: scale(1.08); box-shadow: 0 0 0 3px #ec2227; }
    45%  { transform: scale(1); box-shadow: 0 0 0 2px #ec2227; }
    51%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 34, 39, 0); }
    66%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 34, 39, 0); }
    71%  { transform: scale(1.08); box-shadow: 0 0 0 3px #ec2227; }
    78%  { transform: scale(1); box-shadow: 0 0 0 2px #ec2227; }
    84%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 34, 39, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 34, 39, 0); }
}
.dv-xsell.is-mini .nm {
    height: auto; max-height: 30px; width: 100%; color: #4b5563;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.dv-xsell.is-mini .dv-xsell-plus {
    width: 28px; height: 28px; margin-top: 2px; padding: 0; border: none; border-radius: 50%;
    background: transparent; color: #ec2227; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; outline: none; box-shadow: none;
}
.dv-xsell.is-mini .dv-xsell-plus .material-icons { font-size: 26px; line-height: 1; }
.dv-xsell.is-mini .dv-xsell-plus:focus,
.dv-xsell.is-mini .dv-xsell-plus:focus-visible,
.dv-xsell.is-mini .dv-xsell-plus:active { outline: none; box-shadow: none; }
.dv-xsell.is-mini .dv-xsell-qty { width: 100%; margin: 2px 0 0; }

/* ---- Carrito flotante ------------------------------------------------------ */
.dv-cart-dock {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(12px + var(--wf-bottom-reserve, 0px) + var(--wf-taskbar-height, 0px));
    z-index: 45;
}
/* Pantallas grandes: diseño Nuevo (borde fino, tamaño de Suave). */
.dv-cart-fab {
    position: relative; width: 67px; height: 67px; border-radius: 50%; border: none;
    background: #fff; color: #ec2227; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    box-shadow: 0 0 0 1.5px #f0f0f0, 0 8px 18px rgba(17,24,39,0.08); padding: 0; outline: none;
}
.dv-cart-fab:hover { box-shadow: 0 0 0 1.5px #e5e7eb, 0 10px 22px rgba(17,24,39,0.12); }
.dv-cart-fab:active { transform: scale(0.96); }
.dv-cart-fab .material-icons { font-size: 23px; line-height: 1; }
.dv-cart-fab-total { font-size: 0.56rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #1f2937; }
.dv-cart-fab-badge {
    position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px; background: #ec2227; color: #fff; font-size: 0.6rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.dv-cart-fab-pulse { animation: dvCartPulse 0.5s ease; }
.dv-cart-vuelo { border-radius: 50%; transform-origin: center center; }
@keyframes dvCartPulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}
/* Pantallas chicas: diseño Minimal (el mismo, más chico). */
@media (max-width: 700px) {
    .dv-cart-fab { width: 58px; height: 58px; }
}
.dv-fly {
    position: fixed; z-index: 90; width: 78px; height: 78px; border-radius: 50%;
    background: #fff; color: #ec2227; display: flex; align-items: center; justify-content: center;
    pointer-events: none; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); overflow: hidden;
    border: 3px solid #ec2227;
}
.dv-fly .material-icons { font-size: 32px; }
.dv-fly-img { border: none; background-size: cover; background-position: center; background-color: #fff; }
.dv-btn {
    border: none; border-radius: 10px; padding: 12px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
    background: var(--dv-grad); color: #fff; display: inline-flex; align-items: center; gap: 6px;
    outline: none; box-shadow: 0 4px 12px var(--dv-glow);
}
.dv-btn:hover { background: linear-gradient(135deg, var(--dv-red-900), var(--dv-red-700)); }
.dv-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.dv-btn-ghost { background: var(--dv-red-100); color: var(--dv-red-700); box-shadow: none; }
.dv-btn-ghost:hover { background: var(--dv-red-200); }
.dv-btn-sm { padding: 8px 12px; font-size: 13px; }
.dv-btn-block { width: 100%; justify-content: center; }

/* ---- Overlays (checkout, auth, puntos, envío, contraseña) ----------------- */
.dv-overlay {
    position: fixed; inset: 0; z-index: 60; background: rgba(38, 6, 4, 0.6); backdrop-filter: blur(2px);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0 0 calc(var(--wf-taskbar-height, 0px) + var(--wf-bottom-reserve, 0px));
    overflow: hidden; overscroll-behavior: none;
}
.dv-overlay-top { z-index: 70; }
@media (min-width: 700px) { .dv-overlay { align-items: center; padding: 16px; } }
.dv-panel {
    background: #fff; width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column;
    border-radius: 18px 18px 0 0; box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}
.dv-panel-sm { max-width: 440px; }
@media (min-width: 700px) { .dv-panel { border-radius: 18px; max-height: 92vh; } }
.dv-panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #f3f4f6; }
.dv-panel-head h3 { margin: 0; font-size: 17px; flex: 1; color: #1f2937; font-weight: 800; }
.dv-panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 12px; }
/* Checkout: barra fina, sin las flechas del sistema. */
.dv-checkout .dv-panel-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(236, 34, 39, 0.45) transparent;
}
.dv-checkout .dv-panel-body::-webkit-scrollbar { width: 5px; height: 5px; }
.dv-checkout .dv-panel-body::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.dv-checkout .dv-panel-body::-webkit-scrollbar-thumb {
    background: rgba(236, 34, 39, 0.4);
    border-radius: 999px;
}
.dv-checkout .dv-panel-body::-webkit-scrollbar-thumb:hover { background: #ec2227; }
.dv-checkout .dv-panel-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.dv-panel-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #f3f4f6; background: #fff; border-radius: 0 0 18px 18px; }
.dv-checkout { position: relative; }
.dv-checkout .dv-panel-body { padding-bottom: 76px; }
.dv-checkout .dv-totals { margin-top: 14px; }
.dv-send-float {
    position: absolute; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 3;
    min-width: 168px; background: #ec2227; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(236, 34, 39, 0.28);
}
.dv-send-float:hover { background: #c41b1f; }
.dv-btn.dv-send-float:disabled,
.dv-btn.dv-send-float:disabled:hover {
    opacity: 0.45; cursor: not-allowed; box-shadow: none; background: #ec2227;
}
.dv-close {
    background: #f3f4f6; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    color: #374151; outline: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center;
}
.dv-close .material-icons { font-size: 18px; }

/* Líneas del checkout */
.dv-line { padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.dv-line.is-nueva {
    transform-origin: center center;
    border-radius: 12px;
    animation: dvLineIn 1.04s ease;
}
@keyframes dvLineIn {
    0% {
        transform: scale(0.12);
        opacity: 0;
        box-shadow: inset 0 0 0 0 #ec2227;
        background: #fff1f2;
    }
    42% {
        transform: scale(1);
        opacity: 1;
        box-shadow: inset 0 0 0 2px #ec2227;
        background: #fff1f2;
    }
    68% {
        transform: scale(1);
        opacity: 1;
        box-shadow: inset 0 0 0 3px #ec2227;
        background: #fff5f5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: inset 0 0 0 0 rgba(236, 34, 39, 0);
        background: transparent;
    }
}
.dv-line:last-child { border-bottom: none; }
.dv-line-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dv-line-thumb {
    position: relative;
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: visible;
    background: #f3f4f6; display: flex; align-items: center; justify-content: center;
}
.dv-line-thumb img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.dv-line-thumb .material-icons { font-size: 24px; color: #d1d5db; }
.dv-line-copy {
    flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.dv-line-n {
    position: absolute; top: -4px; left: -4px; z-index: 1;
    width: 18px; height: 18px;
    border-radius: 50%; background: #ec2227; color: #fff;
    font-size: 11px; font-weight: 800; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
.dv-line-body { flex: 1; min-width: 0; }
.dv-line-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dv-line-title {
    flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-weight: 700; font-size: 14px; line-height: 1.25; color: #1f2937;
}
.dv-line-top { display: flex; align-items: center; gap: 8px; margin-top: 0; min-width: 0; }
.dv-line-unit { flex: 1; min-width: 0; margin-top: 0; font-size: 12px; font-weight: 600; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-line-incluye { margin-top: 2px; padding-left: 58px; font-size: 11.5px; font-weight: 500; color: #6b7280; }
.dv-line-mix {
    list-style: none; margin: 8px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 4px;
}
.dv-mix-badge {
    display: inline-flex; align-items: center; gap: 0; min-width: 0;
    flex: 0 1 calc((100% - 8px) / 3); max-width: calc((100% - 8px) / 3);
    padding: 1px; border-radius: 999px; color: #1f2937;
    background: color-mix(in srgb, var(--dv-candy, #f9a8d4) 22%, transparent);
}
.dv-mix-badge-txt {
    min-width: 0; padding: 0 2px; font-size: 10.5px; font-weight: 600; line-height: 1.15;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dv-mix-badge-txt b { margin-left: 2px; font-weight: 800; }
.dv-mix-badge-btn {
    flex: 0 0 16px; width: 16px; height: 16px; padding: 0; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.35); color: #1f2937;
    font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    outline: none; box-shadow: none;
}
.dv-mix-badge-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dv-mix-badge-btn:focus,
.dv-mix-badge-btn:focus-visible,
.dv-mix-badge-btn:active { outline: none; box-shadow: none; }
.dv-line-promo { flex: 0 0 auto; display: inline-block; background: #fbbf24; color: #78350f; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.dv-line-sub {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: flex-end;
    height: 30px; min-width: 5.6em; line-height: 1;
    font-weight: 800; color: #ec2227; font-size: 15px; white-space: nowrap;
}
.dv-line-mini { display: inline-flex; align-items: stretch; height: 30px; gap: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.dv-line-mini .dv-qty-btn {
    width: 28px; height: auto; font-size: 16px; line-height: 1; border-radius: 0;
    background: #fff; color: #374151; box-shadow: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.dv-line-mini .dv-qty-btn.minus,
.dv-line-mini .dv-qty-btn:not(.minus) { background: #fff; color: #374151; }
.dv-line-mini .dv-qty-btn:disabled { opacity: 0.4; }
.dv-line-mini .dv-qty-num {
    min-width: 22px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; line-height: 1; color: #1f2937;
}
.dv-line-falta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; row-gap: 6px; margin-top: 8px; }
.dv-line-k { flex: 1 0 100%; font-size: 12px; font-weight: 800; color: #6b7280; letter-spacing: 0.02em; white-space: nowrap; }
.dv-chip {
    flex: 1 1 0; min-width: 0; border: 1px solid #e5e7eb; background: #fff; color: #4b5563;
    border-radius: 999px; padding: 3px 6px; font-size: 11px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
    cursor: pointer; outline: none; box-shadow: none;
}
.dv-chip.on { background: #e5e7eb; border-color: #9ca3af; color: #374151; }
.dv-chip:focus, .dv-chip:focus-visible, .dv-chip:active { outline: none; box-shadow: none; }
@media (max-width: 700px) {
    .dv-line-falta .dv-chip { padding: 4px 2px; font-size: 9px; }
}
.dv-line-nota {
    display: block; width: 100%; margin-top: 6px; padding: 6px 0;
    border: none; border-bottom: 1px solid #e5e7eb; border-radius: 0;
    background: transparent; font-size: 13px; color: #1f2937; outline: none; box-shadow: none;
}
.dv-line-nota:focus { border-bottom-color: #ec2227; }
.dv-line-nota::placeholder { color: #9ca3af; }
.dv-field-label { font-size: 11.5px; color: var(--dv-muted); margin-bottom: 2px; display: block; }
.dv-req { color: var(--dv-danger); font-weight: 800; }
.dv-opcional { color: var(--dv-muted); font-weight: 400; }
.dv-input, .dv-select {
    width: 100%; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-size: 14px; background: #fff; color: var(--dv-text); outline: none;
}
.dv-input:focus, .dv-select:focus { border-color: #ec2227; box-shadow: 0 0 0 3px rgba(236, 34, 39, 0.12); }
.dv-totals { font-size: 14px; }
.dv-totals-row { display: flex; justify-content: space-between; padding: 3px 0; }
.dv-totals-row.big { font-size: 18px; font-weight: 800; color: #1f2937; padding-top: 8px; }
.dv-totals-row.big span:last-child { color: #ec2227; }
.dv-totals-row.disc { color: var(--dv-ok); font-weight: 600; }
.dv-totals-gana {
    display: block; width: fit-content; max-width: 100%; margin: 8px 0 0 auto;
    padding: 6px 10px; border-radius: 999px;
    background: #ecfdf5; color: #059669; font-size: 13px; font-weight: 600; line-height: 1.35;
}
.dv-totals-gana strong { font-weight: 800; }
.dv-note { font-size: 12.5px; color: var(--dv-muted); margin: 8px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.dv-note .material-icons { font-size: 16px; color: var(--dv-red-600); }

/* Modalidad de entrega */
.dv-modalidad { margin-top: 14px; padding: 12px; background: #fafafa; border-radius: 12px; }
.dv-modal-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.dv-modal-opt {
    display: flex; align-items: center; justify-content: center; text-align: center;
    border: 1.5px solid var(--dv-red-200); background: #fff; border-radius: 10px; padding: 11px 8px; font-size: 13.5px; font-weight: 700;
    line-height: 1.2; color: var(--dv-text); cursor: pointer; outline: none; box-shadow: none;
}
@media (max-width: 700px) {
    .dv-modal-opts { gap: 6px; }
    .dv-modal-opt { padding: 8px 4px; font-size: 11.5px; min-height: 48px; }
}
.dv-modal-opt.on { background: #fff1f1; border-color: #ec2227; color: #ec2227; }
.dv-envio-box { margin-top: 10px; }
.dv-envio-btn {
    margin-top: 10px; background: #fff; color: var(--dv-red-700); border: 1.5px solid var(--dv-red-200); border-radius: 999px;
    padding: 8px 14px; font-weight: 800; font-size: 13px; cursor: pointer; outline: none; box-shadow: none;
}
.dv-envio-btn:hover { background: var(--dv-red-100); }
.dv-envio-text { white-space: pre-line; font-size: 14.5px; line-height: 1.55; color: var(--dv-text); }
.dv-clave-intro { margin: 0 0 12px; font-size: 13.5px; color: var(--dv-muted); }

.dv-points-box { margin: 14px 0 6px; }
.dv-canje-q { margin: 0 0 10px; font-size: 14px; font-weight: 800; line-height: 1.35; color: #1f2937; }
.dv-canje-row {
    display: flex; align-items: flex-start; gap: 10px;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; scrollbar-width: none; -ms-overflow-style: none;
    margin: 0 -4px; padding: 8px 4px 12px;
}
.dv-canje-row::-webkit-scrollbar { display: none; width: 0; height: 0; }
.dv-canje-opt {
    flex: 0 0 86px; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 0; border: none; background: transparent; cursor: pointer; text-align: center;
    outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent;
}
.dv-canje-circle {
    width: 86px; height: 86px; border-radius: 50%;
    border: 1.5px solid #f3d0d1;
    background: radial-gradient(circle at 50% 38%, #fff 0%, #fff1f2 72%);
    color: #ec2227;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
    box-shadow: 0 8px 16px rgba(236, 34, 39, 0.12);
}
.dv-canje-pts { font-size: 11px; font-weight: 700; line-height: 1.2; color: #6b7280; white-space: nowrap; }
.dv-canje-opt.is-top .dv-canje-circle {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), 0 8px 16px rgba(236, 34, 39, 0.14);
}
.dv-canje-opt.on .dv-canje-circle {
    border-color: #ec2227;
    background: linear-gradient(160deg, #ff5a4f 0%, #ec2227 55%, #c41b1f 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(236, 34, 39, 0.32);
}
.dv-canje-opt.on .dv-canje-pts { color: #ec2227; font-weight: 800; }
.dv-canje-opt:focus, .dv-canje-opt:focus-visible, .dv-canje-opt:active { outline: none; box-shadow: none; }
@media (min-width: 560px) {
    .dv-canje-row { justify-content: center; }
}
@media (max-width: 420px) {
    .dv-canje-opt { flex-basis: 78px; width: 78px; }
    .dv-canje-circle { width: 78px; height: 78px; font-size: 13px; }
    .dv-canje-pts { font-size: 10px; }
}

/* Auth */
.dv-auth-form { padding-top: 14px; }
.dv-auth-top { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.dv-auth-top .dv-close { margin-left: auto; flex: 0 0 auto; }
.dv-auth-form .dv-clave-intro { margin: 0; font-size: 13px; line-height: 1.4; color: #6b7280; flex: 1; }
.dv-auth-ask {
    margin: 0; flex: 1; font-size: 15px; font-weight: 800; color: #1f2937;
}
.dv-auth-tabs {
    display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px;
    background: #fff1f1; border-radius: 10px;
}
.dv-auth-tabs.is-wa { background: #e7f8ef; }
.dv-auth-tab {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; background: transparent; color: #6b7280;
    font-weight: 600; font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 8px;
    cursor: pointer; outline: none; box-shadow: none; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.dv-auth-tab .material-icons,
.dv-auth-tab .dv-wa-ico { width: 16px; height: 16px; font-size: 16px; flex: 0 0 auto; }
.dv-auth-tab:focus,
.dv-auth-tab:focus-visible,
.dv-auth-tab:active { outline: none; box-shadow: none; }
.dv-auth-tabs.is-clave .dv-auth-tab.active { color: #ec2227; background: #fff; font-weight: 700; }
.dv-auth-tabs.is-wa .dv-auth-tab.active { color: #128C7E; background: #fff; font-weight: 700; }
.dv-auth-form .dv-link-btn { margin: 8px 0 0; }
.dv-auth-form .dv-form-row { margin-bottom: 14px; }
.dv-auth-form .dv-field-label {
    font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 6px; letter-spacing: 0.01em;
}
.dv-auth-form .dv-input {
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 10px 12px;
}
.dv-auth-form .dv-input:focus {
    background: #fff; border-color: #ec2227; box-shadow: 0 0 0 3px rgba(236, 34, 39, 0.12);
}
.dv-auth-form .dv-input::placeholder { color: #a1a1aa; }
.dv-auth-form .dv-error {
    background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: 8px 10px; margin: 0 0 10px;
}
.dv-user-hint { font-size: 12.5px; margin: 6px 0 0; color: var(--dv-muted); }
.dv-user-hint.is-ok { color: #047857; font-weight: 600; }
.dv-user-hint.is-bad { color: #b91c1c; font-weight: 600; }
.dv-user-suggest {
    display: inline-flex; margin-top: 6px; padding: 4px 10px; border: none; border-radius: 999px;
    background: #ecfdf5; color: #047857; font-weight: 700; font-size: 12.5px; cursor: pointer;
    outline: none; box-shadow: none;
}
.dv-user-suggest:focus, .dv-user-suggest:active { outline: none; box-shadow: none; }
.dv-user-note { font-size: 12.5px; color: var(--dv-muted); margin: 0 0 10px; }
.dv-clave-panel {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
}
.dv-clave-panel.is-open {
    max-height: 360px; opacity: 1; margin-top: 4px; margin-bottom: 4px;
    padding: 12px; background: #fff1f1; border-radius: 12px;
}
@media (max-width: 700px) {
    .dv-panel .dv-input { font-size: 16px; }
}
.dv-tab { flex: 1; border: none; background: transparent; padding: 8px; border-radius: 8px; font-weight: 600; color: var(--dv-muted); cursor: pointer; outline: none; box-shadow: none; }
.dv-tab.active { background: var(--dv-red-100); color: var(--dv-red-700); }
.dv-form-row { margin-bottom: 10px; }
.dv-error { color: var(--dv-danger); font-size: 13px; margin: 6px 0; }
.dv-link-btn {
    display: inline-block; margin: 0 0 12px; padding: 0; border: none; background: none;
    color: #ec2227; font-weight: 700; font-size: 13px; cursor: pointer;
    outline: none; box-shadow: none;
}
.dv-link-btn:focus, .dv-link-btn:active { outline: none; box-shadow: none; }
.dv-btn-wa {
    background: #128C7E; color: #fff; margin-bottom: 14px;
}
.dv-auth-actions {
    display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px;
}
.dv-auth-actions-pair { display: flex; justify-content: flex-end; gap: 8px; }
.dv-auth-actions .dv-btn-wa { margin-bottom: 0; }
.dv-auth-action {
    flex: 0 0 auto; width: auto; justify-content: center;
    padding: 8px 12px; font-size: 12px; font-weight: 700; line-height: 1.15;
    border-radius: 8px; text-align: left; gap: 6px; white-space: nowrap;
    box-shadow: none;
}
.dv-auth-action.dv-btn-ghost {
    background: #fff; color: #4b5563; border: 1.5px solid #e5e7eb;
}
.dv-auth-action.dv-btn-ghost:hover { background: #fff1f1; }
.dv-auth-action .material-icons,
.dv-auth-action .dv-wa-ico {
    width: 18px; height: 18px; font-size: 18px; flex: 0 0 auto;
}
.dv-wa-ico { display: block; }
.dv-auth-action.is-on {
    background: #fff1f1; color: #ec2227; border-color: #fecaca;
}
.dv-btn-wa .dv-wa-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.dv-auth-confirm {
    width: auto; padding: 8px 16px; font-size: 13px; border-radius: 999px;
    background: #ec2227; box-shadow: 0 6px 16px rgba(236, 34, 39, 0.28);
}
.dv-auth-confirm:hover { background: #c41b1f; }
.dv-auth-confirm.dv-btn-wa { background: #128C7E; box-shadow: 0 6px 16px rgba(18, 140, 126, 0.28); }
.dv-auth-confirm.dv-btn-wa:hover { background: #075E54; }
.dv-auth-confirm .material-icons { font-size: 16px; width: 16px; height: 16px; }
.dv-btn-wa:hover { background: #075E54; }
.dv-wa-lead { margin: 4px 0 14px; font-size: 14.5px; line-height: 1.45; color: #1f2937; }
.dv-wa-lead strong { color: #ec2227; letter-spacing: 0.04em; }
.dv-wa-wait { display: flex; align-items: center; gap: 6px; color: var(--dv-muted); font-size: 13px; margin: 12px 0; }
.dv-wa-qr-wrap { text-align: center; margin: 8px 0 4px; }
.dv-wa-qr-hint { font-size: 12.5px; color: var(--dv-muted); margin: 0 0 8px; }
.dv-wa-qr { display: inline-block; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.dv-wa-qr-row { display: flex; height: 4px; line-height: 0; }
.dv-wa-qr-row i { width: 4px; height: 4px; display: block; background: #fff; }
.dv-wa-qr-row i.on { background: #111827; }
.dv-wa-cred { background: #fff1f1; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.dv-wa-cred-label { display: block; font-size: 12px; color: #6b7280; margin-top: 8px; }
.dv-wa-cred-label:first-child { margin-top: 0; }
.dv-wa-cred-phone { display: block; font-size: 20px; color: #1f2937; }
.dv-wa-pass-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.dv-wa-pass { font-size: 32px; letter-spacing: 0.04em; color: #ec2227; line-height: 1.1; }

/* Puntos: una sola tarjeta, el mismo lenguaje que el resto de la tienda */
.dv-overlay.dv-overlay-pts {
    align-items: center;
    padding: 16px 16px calc(16px + var(--wf-taskbar-height, 0px) + var(--wf-bottom-reserve, 0px));
}
.dv-pts-sheet {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: 100%;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    border-top: 3px solid #ec2227;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    padding: 16px 16px 8px;
}
.dv-pts-x { position: absolute; top: 10px; right: 10px; }
.dv-pts-top { display: flex; align-items: center; gap: 10px; padding-right: 36px; }
.dv-pts-star {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
    background: #fff1f2; color: #f59e0b;
    display: inline-flex; align-items: center; justify-content: center;
}
.dv-pts-star .material-icons { font-size: 22px; width: 22px; height: 22px; line-height: 22px; color: #f59e0b; }
.dv-pts-top-txt { min-width: 0; }
.dv-pts-saldo {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ec2227;
    font-variant-numeric: tabular-nums;
}
.dv-pts-saldo span { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.dv-pts-vence { margin-top: 4px; font-size: 12px; font-weight: 600; color: #6b7280; }
.dv-pts-empty { text-align: center; color: var(--dv-muted); padding: 18px 8px; font-size: 13px; }
.dv-pts-sheet .dv-mov {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 12px; padding: 10px 0; border-top: 1px solid #fde8e8; font-size: 13px;
}
.dv-mov-txt { min-width: 0; color: #1f2937; font-weight: 600; line-height: 1.2; }
.dv-pts-sheet .dv-mov .pts {
    flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14px;
}
.dv-pts-sheet .dv-mov .pts.pos { color: #059669; }
.dv-pts-sheet .dv-mov .pts.neg { color: #dc2626; }
.dv-pts-sheet .dv-mov small { display: block; margin-top: 1px; color: #9ca3af; font-size: 11px; font-weight: 500; }

/* Menú de usuario */
.dv-menu { position: absolute; right: 24px; top: calc(100% - 6px); background: #fff; color: var(--dv-text); border-radius: 12px; min-width: 230px; box-shadow: 0 12px 30px rgba(0,0,0,0.3); padding: 6px; z-index: 50; }
@media (max-width: 700px) { .dv-menu { right: 12px; } }
.dv-menu button { display: flex; width: 100%; align-items: center; gap: 8px; background: none; border: none; padding: 10px; border-radius: 8px; font-size: 14px; cursor: pointer; text-align: left; color: var(--dv-text); outline: none; box-shadow: none; }
.dv-menu button:hover { background: var(--dv-red-50); }
.dv-menu .who { padding: 8px 10px; font-weight: 700; font-size: 13px; color: var(--dv-red-700); border-bottom: 1px solid var(--dv-red-100); margin-bottom: 4px; }

.dv-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 80; font-size: 14px; max-width: 90%; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ---- Chat flotante con la cajera de turno -------------------------------- */
.dv-chat-dock {
    position: fixed; right: 20px; bottom: calc(20px + var(--wf-bottom-reserve, 0px)); z-index: 46;
}
.dv-chat-dock.con-barra { bottom: calc(92px + var(--wf-bottom-reserve, 0px)); }
.dv-chat-fab {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
    width: 78px; max-width: 78px; padding: 0; border: none; border-radius: 0; background: transparent; color: #1f2937;
    font-size: 11px; font-weight: 700; line-height: 1.15; cursor: pointer; box-shadow: none; outline: none;
}
.dv-chat-fab .material-icons {
    width: 52px; height: 52px; border-radius: 50%; font-size: 22px; color: #ec2227; margin: 0; background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1.5px #f0f0f0, 0 6px 14px rgba(17, 24, 39, 0.06);
}
.dv-chat-fab.sin-turno { color: #6b7280; }
.dv-chat-fab-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 78px; text-align: center; }
.dv-chat-fab .dv-chat-avatar {
    width: 52px; height: 52px; font-size: 18px; background: #fff; color: #374151;
    box-shadow: 0 0 0 1.5px #f0f0f0, 0 6px 14px rgba(17, 24, 39, 0.06);
}
.dv-chat-fab .dv-chat-avatar img { width: 52px; height: 52px; }
.dv-chat-avatar {
    position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: visible; flex: 0 0 auto;
    background: #f3f4f6; color: #374151; display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
}
.dv-chat-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.dv-chat-avatar .dv-chat-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid #fff; box-shadow: none; }
.dv-chat-avatar-sm { width: 28px; height: 28px; font-size: 13px; }
.dv-chat-avatar-sm img { width: 28px; height: 28px; }
.dv-chat-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.dv-chat-dot.ok { background: #22c55e; }
.dv-chat-dot.off { background: #9ca3af; }
.dv-chat-unread {
    position: absolute; top: -2px; left: calc(50% + 14px);
    background: #ec2227; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; line-height: 18px;
    font-size: 11px; text-align: center; padding: 0 5px;
}

.dv-chat-win {
    position: fixed; right: 20px; bottom: calc(82px + var(--wf-bottom-reserve, 0px)); z-index: 47; width: 370px; max-width: calc(100vw - 24px);
    height: 480px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; background: #fff; border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5); overflow: hidden;
}
.dv-chat-win.con-barra { bottom: calc(154px + var(--wf-bottom-reserve, 0px)); max-height: calc(100vh - 210px); }
@media (max-width: 520px) { .dv-chat-win { right: 12px; left: 12px; width: auto; max-width: none; } }
/* En el celular el chat queda a la misma altura que el carrito, a la derecha. */
@media (max-width: 700px) {
    .dv-chat-dock {
        right: 10px;
        bottom: calc(2px + var(--wf-bottom-reserve, 0px) + var(--wf-taskbar-height, 0px));
    }
    .dv-chat-win { bottom: calc(82px + var(--wf-bottom-reserve, 0px) + var(--wf-taskbar-height, 0px)); }
}
.dv-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; color: #1f2937; border-bottom: 1px solid #f3f4f6; }
.dv-chat-head-info { flex: 1; min-width: 0; }
.dv-chat-head-title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dv-chat-head .dv-chat-avatar { background: #fff1f1; color: #ec2227; box-shadow: 0 0 0 1.5px #fecaca; }
.dv-chat-head-sub { font-size: 12px; color: #16a34a; font-weight: 700; margin-top: 1px; }
.dv-chat-close {
    background: #f3f4f6; border: none; color: #374151; width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; outline: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center;
}
.dv-chat-close .material-icons { font-size: 18px; width: auto; height: auto; background: none; box-shadow: none; margin: 0; color: #374151; }
.dv-chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: #fafafa; display: flex; flex-direction: column; gap: 8px; }
.dv-chat-empty { text-align: center; color: #6b7280; font-size: 13.5px; line-height: 1.45; padding: 28px 16px; }
.dv-msg { max-width: 82%; background: #fff; border-radius: 12px 12px 12px 4px; padding: 7px 10px; align-self: flex-start; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.dv-msg.mine { align-self: flex-end; background: #fff1f1; border-radius: 12px 12px 4px 12px; }
.dv-msg.system { align-self: center; max-width: 94%; background: #fef3c7; color: #78350f; text-align: center; border-radius: 10px; font-size: 12.5px; }
.dv-msg.pending { opacity: 0.65; }
.dv-msg.failed { background: #fee2e2; }
.dv-msg-autor { font-size: 11px; font-weight: 800; color: var(--dv-red-700); margin-bottom: 1px; }
.dv-msg-texto { font-size: 14px; line-height: 1.35; word-break: break-word; }
.dv-msg-texto a { color: var(--dv-red-700); text-decoration: underline; }
.dv-reponer-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.dv-msg-texto a.dv-reponer-badge {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 4px 10px; border-radius: 999px; background: #fff1f1; color: #ec2227;
    border: 1px solid #fecaca; font-size: 12px; font-weight: 700; line-height: 1.2;
    text-decoration: none;
}
.dv-msg-texto a.dv-reponer-badge:hover { background: #ec2227; color: #fff; border-color: #ec2227; }
.dv-msg-hora { font-size: 10.5px; color: var(--dv-muted); text-align: right; margin-top: 2px; }
.dv-chat-aviso { background: #fffbeb; color: #92400e; font-size: 12.5px; padding: 8px 12px; border-top: 1px solid #fde68a; line-height: 1.3; }
.dv-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7eb; background: #fff; }
.dv-chat-form input { flex: 1; min-width: 0; border: 1.5px solid #e5e7eb; border-radius: 999px; padding: 9px 14px; font-size: 14px; outline: none; }
.dv-chat-form input:focus { border-color: #ec2227; box-shadow: 0 0 0 3px rgba(236, 34, 39, 0.12); }
.dv-chat-form input:disabled { background: #f3f4f6; }
.dv-chat-form button {
    width: 40px; height: 40px; border-radius: 50%; border: none; background: #ec2227; color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; outline: none;
    box-shadow: 0 4px 12px rgba(236, 34, 39, 0.28);
}
.dv-chat-form button .material-icons { font-size: 20px; width: auto; height: auto; background: none; box-shadow: none; margin: 0; color: #fff; }
.dv-chat-form button:disabled { opacity: 0.45; cursor: not-allowed; }
.dv-chat-quien { font-size: 11px; color: var(--dv-muted); text-align: center; padding: 0 10px 8px; background: #fff; }

/* Swal moderno (mismo diseño que el resto del sistema, en rojo) */
.swal-modern-popup { border-radius: 16px !important; padding: 22px 20px 18px !important; box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5) !important; max-width: 420px !important; }
.swal-modern-title { color: #1f2937 !important; font-size: 17px !important; font-weight: 700 !important; margin: 0 0 0.35rem !important; padding: 0 !important; }
.swal-modern-content { margin: 0.35rem 0 0 !important; padding: 0 !important; color: #6b7280 !important; }
.swal-modern-icon { border: 2px solid var(--dv-red-100) !important; background: var(--dv-red-50) !important; width: 56px !important; height: 56px !important; margin: 0.1rem auto 0.75rem !important; box-shadow: none !important; color: inherit !important; }
.swal-modern-icon .swal2-icon-content { display: flex !important; align-items: center !important; justify-content: center !important; font-size: inherit !important; }
.swal-modern-confirm { background: var(--dv-grad) !important; color: #fff !important; border: none !important; border-radius: 8px !important; padding: 10px 20px !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important; box-shadow: 0 4px 12px var(--dv-glow) !important; display: inline-flex !important; align-items: center !important; margin: 0 4px !important; }
.swal-modern-cancel { background: #f3f4f6 !important; color: #6b7280 !important; border: none !important; border-radius: 8px !important; padding: 10px 20px !important; font-size: 14px !important; font-weight: 500 !important; cursor: pointer !important; margin: 0 4px !important; }

/* ---- Promos 2: artículo principal y combinaciones al tocarlo -------------- */
.dv-p2-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; align-items: stretch;
    container-type: inline-size;
}
.dv-p2-track::-webkit-scrollbar { display: none; }
.dv-p2-track.is-detalle { scroll-snap-type: none; }
.dv-p2-card {
    scroll-snap-align: start; background: #fff; border-radius: 16px; padding: 8px;
    border: none; box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}
.dv-p2-card.dv-p2-combo { display: flex; flex-direction: column; flex: 0 0 calc((100% - 16px) / 2.25); }
@media (min-width: 700px) { .dv-p2-card.dv-p2-combo { flex-basis: calc((100% - 32px) / 3); } }
@media (min-width: 900px) { .dv-p2-card.dv-p2-combo { flex-basis: calc((100% - 48px) / 4); } }
@media (min-width: 1100px) { .dv-p2-card.dv-p2-combo { flex-basis: calc((100% - 64px) / 5); } }
.dv-p2-card.dv-p2-combo.is-open {
    display: flex; flex-direction: row; align-items: flex-start;
    flex: 0 0 auto; width: auto;
}
.dv-p2-card.dv-p2-combo.is-open .dv-p2-hero { width: calc((100cqi - 16px) / 2.25); flex: 0 0 auto; }
@container (min-width: 700px) {
    .dv-p2-card.dv-p2-combo.is-open .dv-p2-hero { width: calc((100cqi - 32px) / 3); }
}
@container (min-width: 900px) {
    .dv-p2-card.dv-p2-combo.is-open .dv-p2-hero { width: calc((100cqi - 48px) / 4); }
}
@container (min-width: 1100px) {
    .dv-p2-card.dv-p2-combo.is-open .dv-p2-hero { width: calc((100cqi - 64px) / 5); }
}

.dv-p2-hero {
    position: relative; flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; height: 100%;
    border: none; background: transparent; padding: 0; margin: 0; text-align: left;
    color: inherit; outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent;
}
.dv-p2-hit {
    position: absolute; inset: 0; z-index: 2; border: none; background: transparent; padding: 0; margin: 0;
    cursor: pointer; outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent;
}
.dv-p2-hit:focus, .dv-p2-hit:focus-visible, .dv-p2-hit:active { outline: none; box-shadow: none; }
.dv-p2-side {
    flex: 0 0 280px; width: 280px; margin-left: 10px; padding-left: 12px;
    border-left: 1px solid #f3f4f6; align-self: stretch; min-width: 0;
}
@media (max-width: 700px) {
    .dv-p2-card.dv-p2-combo.is-open {
        flex: 0 0 100%; width: 100%; max-width: 100%; box-sizing: border-box;
    }
    .dv-p2-card.dv-p2-combo.is-open .dv-p2-hero {
        flex: 0 0 40%; width: 40%; max-width: 40%; min-width: 0;
    }
    .dv-p2-card.dv-p2-combo.is-open .dv-p2-hero-img img { max-width: 100%; }
    .dv-p2-side {
        flex: 1 1 60%; width: auto; max-width: none; min-width: 0;
        margin-left: 8px; padding-left: 8px;
    }
}
.dv-p2-hero:focus, .dv-p2-hero:focus-visible, .dv-p2-hero:active { outline: none; box-shadow: none; }
.dv-p2-hero-img {
    position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
    background: #f9fafb; display: flex; align-items: center; justify-content: center;
}
.dv-p2-hero-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dv-p2-hero-img > .material-icons { font-size: 40px; color: #d1d5db; }
.dv-p2-opts {
    position: absolute; right: 8px; top: auto; z-index: 4;
    bottom: 8px;
    width: 58px; height: 58px; padding: 0; border: none; border-radius: 10px;
    background: #fff; cursor: pointer; pointer-events: auto; overflow: hidden;
    box-shadow: none;
    outline: none; -webkit-tap-highlight-color: transparent;
}
.dv-p2-opts:focus, .dv-p2-opts:focus-visible, .dv-p2-opts:active { outline: none; box-shadow: none; }
.dv-p2-opt { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; }
.dv-p2-hero-img .dv-p2-opt img { width: 58px; height: 58px; object-fit: contain; }
.dv-p2-opt .material-icons { font-size: 28px; color: #d1d5db; }
.dv-opt-enter-active, .dv-opt-leave-active { transition: opacity 0.35s ease, transform 0.35s ease; }
.dv-opt-enter { opacity: 0; transform: translateY(10px); }
.dv-opt-leave-to { opacity: 0; transform: translateY(-10px); }
.dv-opt-leave-active { position: absolute; left: 0; right: 0; top: 0; }
.dv-p2-oferta {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    background: #fbbf24; color: #78350f; border-radius: 12px; padding: 4px 10px;
    font-size: 11px; font-weight: 800; line-height: 1.15; text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.dv-p2-oferta-a, .dv-p2-oferta-b { white-space: nowrap; }
.dv-p2-oferta-b { font-size: 10px; }
.dv-p2-off {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 58px; height: 58px; border-radius: 50%; padding: 1px;
    background: #fbbf24; color: #78350f;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; line-height: 1.02; font-size: 11px; font-weight: 700;
    box-shadow: 0 4px 10px rgba(120, 53, 15, 0.28);
}
.dv-p2-off > span:first-child { font-size: 13px; font-weight: 800; line-height: 1; }
.dv-p2-off-n { font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.02; }

/* El diseño cambia solo la palabra Promo. El círculo del % es siempre el mismo. */
.dv-etiq-cinta .dv-p2-oferta {
    top: 22px; left: -46px; width: auto; min-width: 132px; padding: 5px 22px 5px 46px;
    border-radius: 0; text-align: center; overflow: hidden;
    background: #ec2227; color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(-42deg);
}
.dv-etiq-cinta .dv-p2-oferta::after {
    content: ""; position: absolute; top: -40%; bottom: -40%; width: 36%; left: -70%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}
.dv-etiq-sello .dv-p2-oferta {
    border: 2px solid #ec2227;
    border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase;
    box-shadow: none; transform: rotate(-8deg);
}
.dv-p2-card .dv-p2-oferta { background: #ec2227; color: #fff; border-color: #ec2227; }
.dv-etiq-ticket .dv-p2-oferta {
    top: 0; border-radius: 0 0 10px 10px; transform-origin: center top;
    padding: 10px 8px 6px;
}
.dv-etiq-ticket .dv-p2-oferta::before {
    content: ""; display: block; width: 6px; height: 6px; margin: 0 auto 3px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
@media (max-width: 700px) {
    .dv-p2-oferta {
        top: 6px; left: 6px; padding: 3px 7px; border-radius: 10px; font-size: 9px;
    }
    .dv-p2-oferta-b { font-size: 8px; }
    .dv-p2-off {
        top: 6px; right: 6px; width: 44px; height: 44px; font-size: 8px;
    }
    .dv-p2-off > span:first-child { font-size: 9px; }
    .dv-p2-off-n { font-size: 9px; }
    .dv-etiq-cinta .dv-p2-oferta {
        top: 16px; left: -32px; min-width: 104px; padding: 3px 14px 3px 32px;
    }
    .dv-etiq-ticket .dv-p2-oferta { padding: 6px 6px 4px; }
    .dv-p2-opts, .dv-p2-opt, .dv-p2-hero-img .dv-p2-opt img {
        width: 42px; height: 42px;
    }
    .dv-p2-opts { right: 6px; bottom: 6px; border-radius: 8px; }
}
.dv-etiq-destello .dv-p2-oferta { overflow: hidden; }
.dv-etiq-destello .dv-p2-oferta::after {
    content: ""; position: absolute; top: -50%; bottom: -50%; width: 42%; left: -70%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}
.dv-etiq-pastilla.is-promo-pop .dv-p2-oferta { animation: dvEtiquetaFlota 1.2s ease-in-out 1; }
.dv-etiq-cinta.is-promo-pop .dv-p2-oferta { animation: dvCinta 1.32s ease-in-out 1; }
.dv-etiq-cinta.is-promo-pop .dv-p2-oferta::after { animation: dvBrillo 1.32s ease-in-out 1; }
.dv-etiq-sello.is-promo-pop .dv-p2-oferta { animation: dvSello 1.32s ease-in-out 1; }
.dv-etiq-ticket.is-promo-pop .dv-p2-oferta { animation: dvColumpio 1.32s ease-in-out 1; }
.dv-etiq-destello.is-promo-pop .dv-p2-oferta::after { animation: dvBrillo 1.08s ease-in-out 1; }
.is-off-pop .dv-p2-off { animation: dvOffPulso 0.36s ease-in-out 1; }
.is-foto-pop .dv-p2-hero-img .dv-photo > img { animation: dvBotellaGiro 0.54s ease-in-out 1; }
@keyframes dvEtiquetaFlota {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes dvCinta {
    0%, 100% { transform: rotate(-42deg); }
    50% { transform: rotate(-36deg) scale(1.04); }
}
@keyframes dvSello {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    40% { transform: rotate(7deg) scale(1.08); }
    70% { transform: rotate(-4deg) scale(1); }
}
@keyframes dvColumpio {
    0%, 100% { transform: rotate(0deg); }
    35% { transform: rotate(8deg); }
    70% { transform: rotate(-7deg); }
}
@keyframes dvBrillo {
    0%, 20% { left: -70%; }
    100% { left: 140%; }
}
@keyframes dvOffPulso {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.16); }
}
@keyframes dvBotellaGiro {
    0%, 100% { transform: rotate(0deg); }
    35% { transform: rotate(-7deg); }
    70% { transform: rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
    .dv-p2-oferta, .dv-p2-oferta::after, .dv-p2-off, .dv-p2-hero-img .dv-photo > img { animation: none !important; }
    .dv-opt-enter-active, .dv-opt-leave-active { transition: none !important; }
}
.dv-p2-hero-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.dv-p2-title {
    font-size: 13.5px; font-weight: 800; color: #1f2937; line-height: 1.25; min-height: 2.5em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dv-p2-title.is-completo { -webkit-line-clamp: 4; }
.dv-p2-foot { display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; }
.dv-p2-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; }
.dv-p2-precio { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.dv-p2-old { color: #9ca3af; text-decoration: line-through; font-size: 11px; font-weight: 600; }
.dv-p2-now { color: #ec2227; font-size: 15px; font-weight: 800; }
.dv-p2-count { color: #6b7280; font-size: 11px; font-weight: 700; text-align: right; line-height: 1.2; min-height: 2.4em; }
.dv-p2-picked { color: #ec2227; font-size: 12px; font-weight: 800; text-align: right; line-height: 1.2; }
.dv-p2-chevron { color: #9ca3af; font-size: 22px; flex: 0 0 auto; }
.dv-p2-combo.is-open .dv-p2-chevron { color: #ec2227; }
.dv-p2-direct { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 6px; position: relative; z-index: 3; }
.dv-p2-direct .dv-qtybox { width: 60%; flex: 0 0 60%; }

.dv-p2-vars { display: flex; flex-direction: column; margin-top: 2px; }
.dv-p2-var {
    display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "thumb name" "step step";
    column-gap: 8px; row-gap: 4px; align-items: center;
    background: transparent; border: none; border-radius: 0; padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}
.dv-p2-var:last-child { border-bottom: none; padding-bottom: 0; }
.dv-p2-thumb { grid-area: thumb; width: 28px; height: 28px; border-radius: 6px; overflow: hidden; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.dv-p2-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dv-p2-thumb .material-icons { font-size: 18px; color: #d1d5db; }
.dv-p2-var-body { grid-area: name; min-width: 0; }
.dv-p2-name {
    font-size: 11px; font-weight: 400; color: #1f2937; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dv-p2-prices { display: flex; align-items: baseline; gap: 6px; margin-top: 1px; }
.dv-p2-left { font-size: 11px; font-weight: 700; color: #d97706; }
.dv-p2 .dv-qtybox {
    grid-area: step; justify-self: end; width: 60%; margin: 0; border-radius: 8px;
}
.dv-p2 .dv-qtybox-btn { flex: 0 0 22px; width: 22px; height: 24px; }
.dv-p2 .dv-qtybox-btn .material-icons { font-size: 16px; }
.dv-p2 .dv-qtybox-input { height: 24px; font-size: 0.75rem; }
