        /* ═══════════════════════════════════════════════════════
        BASE RESET
        ═══════════════════════════════════════════════════════ */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --font-scale: 1;
            --hc-ink: inherit;
            --hc-bg: inherit;
            --hc-accent: inherit;
        }

        html {
            scroll-behavior: smooth;
        }

        html.high-contrast {
            --hc-ink: #ffffff;
            --hc-bg: #000000;
            --hc-accent: #ffff00;
        }

        body {
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* ═══════════════════════════════════════════════════════
        LOADING OVERLAY
        ═══════════════════════════════════════════════════════ */
        #page-loader {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            background: #f7f3ed;
            /* fallback neutral, se sobreescribe por template */
            transition: opacity 0.3s ease, visibility 0.3s ease;
            pointer-events: none;
        }

        #page-loader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .loader-spinner {
            width: 36px;
            height: 36px;
            border: 3px solid rgba(0, 0, 0, .1);
            border-top-color: currentColor;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            color: #b5894a;
            /* dorado por defecto, overrideable */
        }

        .loader-text {
            font-size: calc(13px * var(--font-scale));
            letter-spacing: .5px;
            opacity: .5;
            font-family: sans-serif;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ═══════════════════════════════════════════════════════
        MAI — WELCOME SCREEN
        ═══════════════════════════════════════════════════════ */
        .mai-welcome {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            background: #e3d7c0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
            overflow: hidden;
        }

        .mai-welcome.visible {
            opacity: 1;
            visibility: visible;
        }

        /* Cuando welcome visible: ocultar todo el menú */
        .mai-welcome.visible ~ .site-header,
        .mai-welcome.visible ~ .site-content-wrapper {
            display: none;
        }

        /* Background pattern */
        .mai-bg-pattern {
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 20c-5 0-10 5-10 10s5 10 10 10 10-5 10-10-5-10-10-10zm40 40c-5 0-10 5-10 10s5 10 10 10 10-5 10-10-5-10-10-10z' fill='%238C7D6A' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
            pointer-events: none;
        }

        /* Floating accent circles */
        .mai-accent-circle {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            animation: mai-float 8s ease-in-out infinite;
        }

        .mai-accent-1 {
            top: -10%;
            right: -10%;
            width: 500px;
            height: 500px;
            background: rgba(231, 226, 218, 0.4);
        }

        .mai-accent-2 {
            bottom: -10%;
            left: -10%;
            width: 400px;
            height: 400px;
            background: rgba(204, 188, 172, 0.3);
            animation-delay: -4s;
        }

        @keyframes mai-float {
            0% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
            100% { transform: translateY(0px) rotate(0deg); }
        }

        /* Welcome content container */
        .mai-welcome-content {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            padding: 24px 16px max(24px, env(safe-area-inset-bottom));
            gap: 0;
        }

        /* Brand title */
        .mai-brand {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 6px;
            padding: 32px 0 16px;
            flex-shrink: 0;
        }

        .mai-brand-name {
            font-family: 'Playfair Display', serif;
            font-size: calc(32px * var(--font-scale));
            font-weight: 700;
            color: #1a1510;
            letter-spacing: -0.3px;
        }

        .mai-brand-plus {
            font-family: 'Playfair Display', serif;
            font-size: calc(24px * var(--font-scale));
            font-weight: 400;
            color: #c8873a;
        }

        .mai-brand-sai {
            font-family: 'Playfair Display', serif;
            font-size: calc(28px * var(--font-scale));
            font-weight: 600;
            color: #1a1510;
            letter-spacing: 0.02em;
        }

        /* Buttons container: fills remaining space */
        .mai-buttons {
            display: flex;
            flex-direction: column;
            flex: 1;
            gap: 12px;
            min-height: 0;
        }

        /* Glass button: large, fills half the screen */
        .mai-glass-btn {
            flex: 1;
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 14px;
            padding: 24px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            -webkit-tap-highlight-color: transparent;
            opacity: 0;
            transform: translateY(20px);
            min-height: 0;
        }

        .mai-welcome.visible .mai-glass-btn {
            opacity: 1;
            transform: translateY(0);
        }

        .mai-welcome.visible .mai-btn-accessible {
            transition-delay: 0.15s;
        }

        .mai-welcome.visible .mai-btn-standard {
            transition-delay: 0.3s;
        }

        .mai-glass-btn:active {
            transform: scale(0.98);
        }

        /* Button text stack: centered */
        .mai-btn-text {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .mai-label-sm {
            font-family: 'Outfit', sans-serif;
            font-size: calc(13px * var(--font-scale));
            line-height: 18px;
            letter-spacing: 0.12em;
            font-weight: 600;
            text-transform: uppercase;
            color: #8c7d6a;
        }

        .mai-title-lg {
            font-family: 'Outfit', sans-serif;
            font-size: calc(28px * var(--font-scale));
            line-height: 36px;
            letter-spacing: 0.02em;
            font-weight: 700;
            color: #1a1510;
        }

        /* Icon circle */
        .mai-icon-circle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #1a1510;
            color: #fef9f1;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
            display: inline-block;
            line-height: 1;
            font-size: calc(28px * var(--font-scale));
        }

        /* ═══════════════════════════════════════════════════════
        ACCESIBILIDAD: LETRAS GRANDES + ALTO CONTRASTE
        ═══════════════════════════════════════════════════════ */

        /* ── Letras grandes ──────────────────────────────────── */
        html.text-lg { --font-scale: 1.5; }
        html.text-lg .product-price { --font-scale: 1.5; }
        html.text-lg .mai-label-sm { font-size: calc(13px * var(--font-scale)); }
        html.text-lg .mai-title-lg { font-size: calc(28px * var(--font-scale)); }
        html.text-lg .mai-brand-name { font-size: calc(32px * var(--font-scale)); }
        html.text-lg .mai-brand-sai { font-size: calc(28px * var(--font-scale)); }
        html.text-lg .loader-text { font-size: calc(13px * var(--font-scale)); }

        /* ── Alto contraste: redefine variables por template ─── */
        html.high-contrast .template-calida,
        html.high-contrast .template-ejecutiva,
        html.high-contrast .template-moderna,
        html.high-contrast .template-bistro,
        html.high-contrast .template-natural,
        html.high-contrast .template-editorial,
        html.high-contrast .dark .template-editorial {
            --bg: #000000 !important;
            --bg-card: #111111 !important;
            --bg-header: #000000 !important;
            --ink: #ffffff !important;
            --ink-soft: #f0f0f0 !important;
            --ink-muted: #cccccc !important;
            --ink-faint: #888888 !important;
            --accent: #ffff00 !important;
            --accent-dim: rgba(255, 255, 0, 0.15) !important;
            --border: #444444 !important;
            --red: #ff4444 !important;
            --cyan: #00ffff !important;
            --shadow: none !important;
            --shadow-hover: none !important;
            --font-mono: inherit;
        }

        /* Elementos con colores hardcodeados (no usan variables) */
        html.high-contrast .product-no-image {
            background: #222222 !important;
        }
        html.high-contrast .product-img-wrap {
            border-color: #555555 !important;
        }
        html.high-contrast .mai-welcome {
            background: #000000 !important;
        }
        html.high-contrast .mai-glass-btn {
            background: rgba(255, 255, 255, 0.1) !important;
            border-color: #555555 !important;
        }
        html.high-contrast .mai-icon-circle {
            background: #ffffff !important;
            color: #000000 !important;
        }
        html.high-contrast .mai-bg-pattern {
            opacity: 0.15;
        }
        html.high-contrast .mai-accent-circle {
            opacity: 0.2;
        }
        html.high-contrast #page-loader {
            background: #000000 !important;
            color: #ffffff !important;
        }
        html.high-contrast .loader-spinner {
            color: #ffff00 !important;
        }
        html.high-contrast .loader-text {
            color: #cccccc !important;
        }
        html.high-contrast .template-editorial .products-grid .product-number-badge {
            background: #ffff00 !important;
            color: #000000 !important;
        }
        html.high-contrast .template-editorial .product-card--featured .product-number-badge {
            background: #000000 !important;
            color: #ffff00 !important;
        }
        html.high-contrast .access-toggle[aria-pressed="true"] {
            background: #ffff00 !important;
            color: #000000 !important;
            border-color: #ffff00 !important;
        }

        html.high-contrast .product-add-btn {
            background: #ffff00 !important;
            color: #000000 !important;
        }

        html.high-contrast .mai-order-bar-btn {
            background: #ffff00 !important;
            color: #000000 !important;
        }

        html.high-contrast #mai-order-count {
            background: rgba(0, 0, 0, 0.25) !important;
            color: #000000 !important;
        }

        /* ═══════════════════════════════════════════════════════
        MAI ORDER — Botón Agregar, Barra flotante, Confirmación
        ═══════════════════════════════════════════════════════ */

        /* Botón Agregar: oculto por defecto, visible solo en modo accesible */
        html:not(.mai-active) .product-add-btn {
            display: none;
        }

        .product-add-btn {
            position: absolute;
            bottom: 12px;
            right: 12px;
            z-index: 10;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 50%;
            background: var(--accent, #b5894a);
            color: #fff;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
            transition: transform .2s ease, box-shadow .2s ease;
            padding: 0;
            line-height: 1;
        }

        .product-add-btn:active {
            transform: scale(0.9);
        }

        html.mai-active .product-card {
            position: relative;
        }

        /* ── Barra flotante inferior ──────────────────────── */
        .mai-order-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 9000;
            transform: translateY(100%);
            transition: transform .3s ease;
            padding: 0 16px max(16px, env(safe-area-inset-bottom));
            pointer-events: none;
        }

        .mai-order-bar.visible {
            transform: translateY(0);
        }

        .mai-order-bar-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 16px 20px;
            border: none;
            border-radius: 16px 16px 0 0;
            background: var(--accent, #b5894a);
            color: #fff;
            font-size: 1.1rem;
            font-weight: 600;
            font-family: var(--font-body, sans-serif);
            cursor: pointer;
            pointer-events: auto;
            box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
            transition: background .2s ease;
        }

        .mai-order-bar-btn:active {
            opacity: .85;
        }

        #mai-order-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 28px;
            height: 28px;
            border-radius: 14px;
            background: rgba(255,255,255,0.25);
            font-size: .9rem;
            font-weight: 700;
            padding: 0 8px;
        }

        .mai-order-arrow {
            margin-left: auto;
        }

        /* ── Confirmación overlay ─────────────────────────── */
        .mai-order-confirm {
            position: fixed;
            inset: 0;
            z-index: 11000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity .3s ease, visibility .3s ease;
        }

        .mai-order-confirm.visible {
            opacity: 1;
            visibility: visible;
        }

        .mai-confirm-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.5);
        }

        .mai-confirm-card {
            position: relative;
            z-index: 10;
            background: var(--bg-card, #fff);
            width: 100%;
            height: 100%;
            padding: 48px 32px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 16px;
        }

        .mai-confirm-title {
            font-family: var(--font-display, serif);
            font-size: calc(1.5rem * var(--font-scale));
            color: var(--ink, #1a1a1a);
        }

        .mai-confirm-text {
            font-size: calc(1.05rem * var(--font-scale));
            line-height: 1.5;
            color: var(--ink, #1a1a1a);
        }

        .mai-confirm-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .mai-confirm-btn {
            flex: 1;
            max-width: 200px;
            padding: 16px 24px;
            border: none;
            border-radius: 14px;
            font-size: calc(1.1rem * var(--font-scale));
            font-weight: 600;
            font-family: var(--font-body, sans-serif);
            cursor: pointer;
            transition: transform .15s ease;
        }

        .mai-confirm-btn:active {
            transform: scale(0.95);
        }

        .mai-confirm-btn--yes {
            background: #b5894a;
            color: #fff;
        }

        .mai-confirm-btn--no {
            background: var(--bg-alt, #f0f0f0);
            color: var(--ink, #1a1a1a);
        }

        /* ═══════════════════════════════════════════════════════
        MAI TICKET — Comanda estilo térmico
        ═══════════════════════════════════════════════════════ */
        .mai-ticket {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity .3s ease, visibility .3s ease;
        }

        .mai-ticket.visible {
            opacity: 1;
            visibility: visible;
        }

        .mai-ticket-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.4);
        }

        .mai-ticket-content {
            position: relative;
            z-index: 10;
            width: 100%;
            height: 100%;
            max-width: 100%;
            background: #f0f0f0;
            color: #1a1a1a;
            font-family: 'Courier New', 'Courier', monospace;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
            text-align: center;
            gap: 8px;
        }

        .mai-ticket-header {
            font-size: calc(1.4rem * var(--font-scale));
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .mai-ticket-sub {
            font-size: calc(1.1rem * var(--font-scale));
            letter-spacing: 0.3em;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .mai-ticket-divider {
            font-size: calc(0.75rem * var(--font-scale));
            opacity: 0.5;
            letter-spacing: 0.2em;
        }

        .mai-ticket-items {
            list-style: none;
            padding: 0;
            margin: 0;
            width: 100%;
            max-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 8px 0;
        }

        .mai-ticket-items li {
            font-size: calc(1rem * var(--font-scale));
            line-height: 1.4;
        }

        .mai-ticket-btn {
            margin-top: 16px;
            padding: 14px 32px;
            border: 2px solid #1a1a1a;
            border-radius: 8px;
            background: transparent;
            color: #1a1a1a;
            font-family: 'Courier New', 'Courier', monospace;
            font-size: calc(0.9rem * var(--font-scale));
            font-weight: 600;
            cursor: pointer;
            letter-spacing: 0.05em;
            transition: background .2s ease;
        }

        .mai-ticket-btn:active {
            background: rgba(0,0,0,0.08);
        }

        /* Adaptar colores del loader según template */
        .template-calida #page-loader {
            background: #f7f3ed;
        }

        .template-calida .loader-spinner {
            color: #b5894a;
        }

        .template-ejecutiva #page-loader {
            background: #f8fafc;
        }

        .template-ejecutiva .loader-spinner {
            color: #0f172a;
        }

        .template-moderna #page-loader {
            background: #0d0d0d;
            color: #e0e0e0;
        }

        .template-moderna .loader-spinner {
            color: #a78bfa;
        }

        .template-bistro #page-loader {
            background: #1a1209;
        }

        .template-bistro .loader-spinner {
            color: #d4a853;
        }

        .template-natural #page-loader {
            background: #f4f1eb;
        }

        .template-natural .loader-spinner {
            color: #5a7a52;
        }

        .template-editorial #page-loader {
            background: #fdfaf4;
        }

        .template-editorial .loader-spinner {
            color: #b59b7c;
        }

        /* ═══════════════════════════════════════════════════════
        PLANTILLA: CÁLIDA
        Papel crema, Cormorant serif, dorado cálido
        ═══════════════════════════════════════════════════════ */
        .template-calida {
            --bg: #f7f3ed;
            --bg-card: #faf8f5;
            --bg-header: #f7f3ed;
            --ink: #1c1814;
            --ink-soft: #3d3530;
            --ink-muted: #8a7f76;
            --ink-faint: #c4bbb2;
            --accent: #b5894a;
            --accent-dim: rgba(181, 137, 74, .1);
            --border: #ede8e0;
            --red: #c94c4c;
            --font-display: 'Cormorant Garamond', Georgia, serif;
            --font-body: 'DM Sans', sans-serif;
            --radius-card: 18px;
            --shadow: 0 2px 16px rgba(28, 24, 20, .08), 0 1px 4px rgba(28, 24, 20, .05);
            --shadow-hover: 0 8px 32px rgba(28, 24, 20, .14), 0 2px 8px rgba(28, 24, 20, .08);
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--ink);
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
        }

        .template-calida .tenant-name {
            font-family: var(--font-display);
            font-size: calc(2.5rem * var(--font-scale));
            font-weight: 600;
            letter-spacing: -.5px;
        }

        .template-calida .tenant-description {
            font-family: var(--font-display);
            font-style: italic;
            font-size: calc(1.05rem * var(--font-scale));
            color: var(--ink-muted);
        }

        .template-calida .category-title {
            font-family: var(--font-display);
            font-size: calc(1.9rem * var(--font-scale));
            font-weight: 500;
            letter-spacing: -.3px;
        }

        .template-calida .category-marker {
            width: 32px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px;
            margin: 8px 0 20px;
        }

        .template-calida .product-name {
            font-family: var(--font-display);
            font-size: calc(1.15rem * var(--font-scale));
            font-weight: 600;
        }

        .template-calida .product-price {
            font-family: var(--font-display);
            font-size: calc(1.25rem * var(--font-scale));
            font-weight: 600;
            color: var(--accent);
        }

        .template-calida .product-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid rgba(255, 255, 255, .8);
            box-shadow: var(--shadow);
        }

        .template-calida .product-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
        }

        .template-calida .product-no-image {
            background: linear-gradient(135deg, var(--border), var(--bg));
        }

        .template-calida .site-header {
            background: var(--bg-header);
            border-bottom: none;
        }

        .template-calida .cat-nav {
            background: var(--bg-header);
            border-bottom: none;
        }

        .template-calida .allergen-panel {
            background: var(--bg-header);
            border-bottom: none;
        }

        .template-calida .cat-btn.active {
            color: var(--accent);
            background: var(--accent-dim);
            border-color: rgba(181, 137, 74, .25);
        }

        .template-calida .lang-btn.active {
            background: var(--accent-dim);
            color: var(--accent);
            border-color: rgba(181, 137, 74, .2);
        }

        .template-calida .al-toggle.on {
            background: var(--accent-dim);
            border-color: rgba(181, 137, 74, .3);
            color: var(--accent);
        }

        .template-calida .al-toggle-dot {
            background: var(--accent);
        }

        .template-calida .al-chip-lbl {
            background: var(--bg);
            border-color: var(--border);
            color: var(--ink-soft);
        }

        .template-calida .allergen-tag {
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--ink-muted);
        }

        .template-calida .header-rule {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 20px 20px;
        }

        .template-calida .header-rule::before,
        .template-calida .header-rule::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        .template-calida .header-rule-icon {
            color: var(--accent);
            font-size: calc(10px * var(--font-scale));
        }

        .template-calida .scroll-top {
            background: var(--ink);
            color: var(--bg);
        }

        .template-calida .scroll-top:hover {
            background: var(--accent);
        }

        .template-calida .product-description {
            color: var(--ink-muted);
        }

        .template-calida .site-footer {
            border-top: 1px solid var(--border);
            color: var(--ink-faint);
        }

        .template-calida .site-footer a {
            color: var(--accent);
        }

        /* ═══════════════════════════════════════════════════════
        PLANTILLA: EJECUTIVA
        Gris pizarra, Inter sans-serif, acentos azul marino,
        estética corporativa y limpia
        ═══════════════════════════════════════════════════════ */
        .template-ejecutiva {
            --bg: #f8fafc;
            --bg-card: #ffffff;
            --bg-header: rgba(255, 255, 255, 0.8);
            --ink: #0f172a;
            --ink-soft: #1e293b;
            --ink-muted: #64748b;
            --ink-faint: #cbd5e1;
            --accent: #0f172a;
            --accent-dim: rgba(15, 23, 42, 0.05);
            --border: #e2e8f0;
            --red: #e11d48;
            --font-display: 'Inter', sans-serif;
            --font-body: 'Inter', sans-serif;
            --radius-card: 2px;
            --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
            --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--ink);
        }

        .template-ejecutiva .tenant-name {
            font-family: var(--font-display) !important;
            font-size: calc(3.5rem * var(--font-scale)) !important;
            font-weight: 800 !important;
            letter-spacing: -0.05em !important;
            text-transform: uppercase !important;
            line-height: 0.9 !important;
        }

        .template-ejecutiva .tenant-description {
            font-family: var(--font-body) !important;
            font-size: calc(0.875rem * var(--font-scale)) !important;
            font-style: normal !important;
            color: var(--ink-muted);
            max-width: 320px;
            margin-top: 12px;
        }

        .template-ejecutiva .category-title-wrap {
            display: flex;
            align-items: baseline;
            gap: 16px;
            margin-bottom: 40px;
        }

        .template-ejecutiva .category-title {
            font-family: var(--font-display) !important;
            font-size: calc(2.25rem * var(--font-scale)) !important;
            font-weight: 800 !important;
            letter-spacing: -0.025em !important;
            text-transform: uppercase !important;
            font-style: normal !important;
        }

        .template-ejecutiva .category-title-line {
            height: 2px;
            background: var(--ink);
            opacity: 1;
        }

        .template-ejecutiva .product-card {
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--border);
            border-radius: 0;
            padding: 24px 0 24px 48px;
            margin: 0;
            position: relative;
            transition: background-color 0.5s ease;
        }

        .template-ejecutiva .product-card:hover {
            background: #ffffff;
            transform: none;
            box-shadow: none;
        }

        .template-ejecutiva .product-number-badge {
            position: absolute;
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: calc(3.5rem * var(--font-scale));
            font-weight: 800;
            color: var(--ink);
            opacity: 0.08;
            background: transparent;
            box-shadow: none;
            width: auto;
            height: auto;
            z-index: 0;
            pointer-events: none;
        }

        .template-ejecutiva .product-name {
            font-family: var(--font-display);
            font-size: calc(1.25rem * var(--font-scale));
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: -0.025em;
        }

        .template-ejecutiva .product-price {
            font-family: var(--font-display);
            font-size: calc(1.25rem * var(--font-scale));
            font-weight: 700;
            letter-spacing: -0.05em;
        }

        .template-ejecutiva .product-description {
            font-size: calc(0.875rem * var(--font-scale));
            color: var(--ink-muted);
            font-weight: 500;
        }

        .template-ejecutiva .site-header {
            background: var(--bg-header);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
        }

        .template-ejecutiva .cat-nav {
            background: rgba(248, 250, 252, 0.5);
            backdrop-filter: blur(8px);
            margin-bottom: 40px;
        }

        .template-ejecutiva .cat-btn {
            font-size: calc(11px * var(--font-scale));
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.25em;
            color: var(--ink-muted);
            border-radius: 0;
            padding: 8px 0;
            border-bottom: 2px solid transparent;
        }

        .template-ejecutiva .cat-btn.active {
            color: var(--ink);
            background: transparent;
            border-bottom-color: var(--ink);
        }

        .template-ejecutiva .lang-btn {
            font-size: calc(11px * var(--font-scale));
            font-weight: 700;
            letter-spacing: 0.2em;
        }

        .template-ejecutiva .lang-btn.active {
            color: var(--ink);
            border-bottom: 2px solid var(--ink);
            border-radius: 0;
        }

        .template-ejecutiva .al-toggle {
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 2px;
            font-size: calc(11px * var(--font-scale));
            font-weight: 700;
            letter-spacing: 0.2em;
        }

        .template-ejecutiva .al-chip-lbl {
            border-radius: 2px;
            font-size: calc(11px * var(--font-scale));
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .template-ejecutiva .allergen-tag {
            border-radius: 0;
            font-size: calc(9px * var(--font-scale));
            font-weight: 700;
            border-color: var(--border);
            color: var(--ink-muted);
        }

        .template-ejecutiva .scroll-top {
            background: var(--ink);
            border-radius: 2px;
        }

        .template-ejecutiva .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 0 40px;
        }

        .template-ejecutiva .site-footer {
            border-top: 1px solid var(--border);
            padding: 64px 0;
        }

        .template-ejecutiva .tenant-logo {
            filter: grayscale(1);
            border-radius: 0;
        }

        .template-ejecutiva .tenant-logo-wrap {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
        }

        /* ═══════════════════════════════════════════════════════
        PLANTILLA: MODERNA
        Fondo oscuro, Syne display, fuchsia + cyan neón,
        Space Mono para precios, bordes con glow
        ═══════════════════════════════════════════════════════ */
        .template-moderna {
            --bg: #111114;
            --bg-card: #1a1a1f;
            --bg-header: #111114;
            --ink: #f0f0f5;
            --ink-soft: #c8c8d0;
            --ink-muted: #787888;
            --ink-faint: #3a3a44;
            --accent: #ff0066;
            --accent-dim: rgba(255, 0, 102, .12);
            --cyan: #00ccff;
            --border: #2a2a32;
            --red: #ff4444;
            --font-display: 'Syne', sans-serif;
            --font-body: 'Outfit', sans-serif;
            --font-mono: 'Space Mono', monospace;
            --radius-card: 10px;
            --shadow: 0 4px 24px rgba(0, 0, 0, .4);
            --shadow-hover: 0 0 0 1px var(--accent), 0 8px 32px rgba(255, 0, 102, .2);
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--ink);
        }

        .template-moderna .tenant-name {
            font-family: var(--font-display);
            font-size: calc(2.4rem * var(--font-scale));
            font-weight: 800;
            letter-spacing: -1px;
            text-transform: uppercase;
            line-height: 1;
        }

        .template-moderna .tenant-description {
            font-size: calc(.8rem * var(--font-scale));
            color: var(--ink-muted);
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .template-moderna .category-title {
            font-family: var(--font-display);
            font-size: calc(1.4rem * var(--font-scale));
            color: var(--ink-muted);
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .template-moderna .category-title {
            font-family: var(--font-display);
            font-size: calc(1.4rem * var(--font-scale));
            font-weight: 700;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: -.3px;
        }

        .template-moderna .category-marker {
            width: 24px;
            height: 2px;
            background: var(--cyan);
            margin: 8px 0 18px;
            box-shadow: 0 0 8px var(--cyan);
        }

        .template-moderna .product-name {
            font-family: var(--font-display);
            font-size: calc(1.05rem * var(--font-scale));
            font-weight: 600;
        }

        .template-moderna .product-price {
            font-family: var(--font-mono);
            font-size: calc(1rem * var(--font-scale));
            font-weight: 700;
            color: var(--cyan);
            text-shadow: 0 0 12px rgba(0, 204, 255, .4);
        }

        .template-moderna .product-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .template-moderna .product-card:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow-hover);
            transform: translateY(-1px);
        }

        .template-moderna .product-no-image {
            background: linear-gradient(135deg, #1e1e28, #12121a);
        }

        .template-moderna .site-header {
            background: var(--bg-header);
            border-bottom: none;
        }

        .template-moderna .site-header::before {
            content: '';
            display: block;
            height: 2px;
            background: linear-gradient(90deg, var(--accent), var(--cyan), var(--accent));
        }

        .template-moderna .cat-nav {
            background: var(--bg-header);
            border-bottom: none;
            backdrop-filter: blur(12px);
        }

        .template-moderna .allergen-panel {
            background: var(--bg-header);
            border-bottom: none;
        }

        .template-moderna .cat-btn {
            color: #555566;
        }

        .template-moderna .cat-btn:hover {
            color: var(--ink);
            background: rgba(255, 255, 255, .04);
        }

        .template-moderna .cat-btn.active {
            color: var(--accent);
            background: var(--accent-dim);
            border-color: rgba(255, 0, 102, .3);
        }

        .template-moderna .lang-btn {
            color: #555566;
        }

        .template-moderna .lang-btn:hover {
            color: var(--ink);
            background: rgba(255, 255, 255, .04);
        }

        .template-moderna .lang-btn.active {
            background: var(--accent-dim);
            color: var(--accent);
            border-color: rgba(255, 0, 102, .25);
        }

        .template-moderna .al-toggle {
            background: rgba(255, 255, 255, .04);
            border-color: var(--border);
            color: #777788;
        }

        .template-moderna .al-toggle:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .template-moderna .al-toggle.on {
            background: var(--accent-dim);
            border-color: rgba(255, 0, 102, .3);
            color: var(--accent);
        }

        .template-moderna .al-toggle-dot {
            background: var(--accent);
            box-shadow: 0 0 6px var(--accent);
        }

        .template-moderna .al-chip-lbl {
            background: rgba(255, 255, 255, .04);
            border-color: var(--border);
            color: #888899;
        }

        .template-moderna .al-chip input:checked+.al-chip-lbl {
            background: rgba(255, 68, 68, .1);
            border-color: rgba(255, 68, 68, .4);
            color: var(--red);
        }

        .template-moderna .allergen-tag {
            background: rgba(255, 255, 255, .04);
            border: 1px solid var(--border);
            color: #666677;
        }

        .template-moderna .header-rule {
            display: none;
        }

        .template-moderna .scroll-top {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 0 20px rgba(255, 0, 102, .4);
        }

        .template-moderna .scroll-top:hover {
            background: #ff4499;
        }

        .template-moderna .product-description {
            color: #666677;
        }

        .template-moderna .site-footer {
            border-top: 1px solid var(--border);
            color: var(--ink-faint);
        }

        .template-moderna .site-footer a {
            color: var(--cyan);
        }

        .template-moderna .tenant-logo {
            border-radius: 8px;
            box-shadow: 0 0 24px rgba(255, 0, 102, .2);
        }

        .template-moderna .allergen-panel-title {
            color: #555566;
        }

        /* ═══════════════════════════════════════════════════════
        PLANTILLA: BISTRO
        Elegante oscuro, dorado/bronce, serif clásico
        ═══════════════════════════════════════════════════════ */
        .template-bistro {
            --bg: #1a1209;
            --bg-card: #251c12;
            --bg-header: #1a1209;
            --ink: #f5f0e8;
            --ink-soft: #d4c4b0;
            --ink-muted: #a09080;
            --ink-faint: #5a5045;
            --accent: #d4a853;
            --accent-dim: rgba(212, 168, 83, .1);
            --border: #3a3020;
            --red: #e74c3c;
            --radius-card: 12px;
            --shadow: 0 4px 20px rgba(0, 0, 0, .4);
            --shadow-hover: 0 8px 32px rgba(0, 0, 0, .5);
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--ink);
        }

        .template-bistro .tenant-name {
            font-family: 'Cormorant Garamond', Georgia, serif !important;
            font-size: calc(2.6rem * var(--font-scale));
            font-weight: 500;
            letter-spacing: -0.5px;
        }

        .template-bistro .tenant-description {
            font-family: 'Cormorant Garamond', Georgia, serif !important;
            font-style: italic;
            font-size: calc(1.05rem * var(--font-scale));
            color: var(--ink-muted);
        }

        .template-bistro .category-title {
            font-family: 'Playfair Display', Georgia, serif !important;
            font-size: calc(1.8rem * var(--font-scale));
            font-style: italic;
            font-weight: 500;
            letter-spacing: -0.3px;
        }

        .template-bistro .product-name {
            font-family: 'Cormorant Garamond', Georgia, serif !important;
            font-size: calc(1.1rem * var(--font-scale));
            font-weight: 600;
        }

        .template-bistro .product-price {
            font-family: 'Cormorant Garamond', Georgia, serif !important;
            font-size: calc(1.2rem * var(--font-scale));
            color: var(--accent);
        }

        .template-bistro .product-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .template-bistro .product-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
            border-color: var(--accent);
        }

        .template-bistro .product-no-image {
            background: linear-gradient(135deg, #2a2015, #1a1209);
        }

        .template-bistro .site-header,
        .template-bistro .cat-nav,
        .template-bistro .allergen-panel {
            background: var(--bg-header);
        }

        .template-bistro .cat-btn.active {
            color: var(--accent);
            background: var(--accent-dim);
            border-color: rgba(212, 168, 83, .3);
        }

        .template-bistro .lang-btn.active {
            background: var(--accent-dim);
            color: var(--accent);
            border-color: rgba(212, 168, 83, .2);
        }

        .template-bistro .al-toggle.on {
            background: var(--accent-dim);
            border-color: rgba(212, 168, 83, .3);
            color: var(--accent);
        }

        .template-bistro .al-toggle-dot {
            background: var(--accent);
        }

        .template-bistro .header-rule-icon {
            color: var(--accent);
        }

        .template-bistro .product-number-badge {
            background: var(--accent);
            color: #1a1209;
        }

        .template-bistro .site-footer a {
            color: var(--accent);
        }

        .template-bistro .scroll-top:hover {
            background: var(--accent);
        }

        /* ═══════════════════════════════════════════════════════
        PLANTILLA: NATURAL
        Tono tierra, verde musgo, orgánico y limpio
        ═══════════════════════════════════════════════════════ */
        .template-natural {
            --bg: #f4f1eb;
            --bg-card: #faf9f6;
            --bg-header: #f4f1eb;
            --ink: #2d2d2d;
            --ink-soft: #4a4a4a;
            --ink-muted: #7a7a7a;
            --ink-faint: #b5b5b5;
            --accent: #5a7a52;
            --accent-dim: rgba(90, 122, 82, .1);
            --border: #e0ddd5;
            --red: #c45c4a;
            --radius-card: 16px;
            --shadow: 0 2px 12px rgba(45, 45, 45, .06);
            --shadow-hover: 0 6px 24px rgba(45, 45, 45, .1);
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--ink);
        }

        .template-natural .tenant-name {
            font-family: 'DM Sans', sans-serif !important;
            font-size: calc(2.4rem * var(--font-scale));
            font-weight: 500;
            letter-spacing: -0.5px;
        }

        .template-natural .tenant-description {
            font-family: 'DM Sans', sans-serif !important;
            font-size: calc(1rem * var(--font-scale));
            color: var(--ink-muted);
        }

        .template-natural .category-title {
            font-family: 'Playfair Display', Georgia, serif !important;
            font-size: calc(1.7rem * var(--font-scale));
            font-style: italic;
            font-weight: 500;
            letter-spacing: -0.2px;
        }

        .template-natural .product-name {
            font-family: 'DM Sans', sans-serif !important;
            font-size: calc(1.05rem * var(--font-scale));
            font-weight: 600;
        }

        .template-natural .product-price {
            font-family: 'DM Sans', sans-serif !important;
            font-size: calc(1.15rem * var(--font-scale));
            color: var(--accent);
        }

        .template-natural .product-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .template-natural .product-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
        }

        .template-natural .product-no-image {
            background: linear-gradient(135deg, #e8e5df, #f4f1eb);
        }

        .template-natural .site-header,
        .template-natural .cat-nav,
        .template-natural .allergen-panel {
            background: var(--bg-header);
        }

        .template-natural .cat-btn.active {
            color: var(--accent);
            background: var(--accent-dim);
            border-color: rgba(90, 122, 82, .25);
        }

        .template-natural .lang-btn.active {
            background: var(--accent-dim);
            color: var(--accent);
            border-color: rgba(90, 122, 82, .2);
        }

        .template-natural .al-toggle.on {
            background: var(--accent-dim);
            border-color: rgba(90, 122, 82, .3);
            color: var(--accent);
        }

        .template-natural .al-toggle-dot {
            background: var(--accent);
        }

        .template-natural .header-rule-icon {
            color: var(--accent);
        }

        .template-natural .product-number-badge {
            background: var(--accent);
            color: #fff;
        }

        .template-natural .site-footer a {
            color: var(--accent);
        }

        .template-natural .scroll-top:hover {
            background: var(--accent);
        }

        /* ═══════════════════════════════════════════════════════
        PLANTILLA: EDITORIAL
        Crema/negro, Playfair Display, números gigantes de fondo,
        fotos superpuestas con card de texto, modo oscuro
        ═══════════════════════════════════════════════════════ */
        .template-editorial {
            --bg:           #fdfaf4;
            --bg-card:      #fdfaf4;
            --bg-header:    rgba(253, 250, 244, 0.85);
            --ink:          #3d2b1f;
            --ink-soft:     #5a4035;
            --ink-muted:    #9b8578;
            --ink-faint:    #c9b9ae;
            --accent:       #b59b7c;
            --accent-dim:   rgba(181, 155, 124, 0.1);
            --border:       rgba(61, 43, 31, 0.08);
            --red:          #c94c4c;
            --font-display: 'Playfair Display', Georgia, serif;
            --font-body:    'Inter', system-ui, sans-serif;
            --radius-card:  2px;
            --shadow:       0 4px 40px rgba(61, 43, 31, 0.10), 0 2px 8px rgba(61, 43, 31, 0.06);
            --shadow-hover: 0 16px 64px rgba(61, 43, 31, 0.18), 0 4px 16px rgba(61, 43, 31, 0.10);
            font-family:    var(--font-body);
            background:     var(--bg);
            color:          var(--ink);
        }

        /* Modo oscuro */
        .dark .template-editorial {
            --bg:       #1a1614;
            --bg-card:  #1a1614;
            --ink:      #f0ebe4;
            --ink-soft: #d5c9be;
            --ink-muted:#8a7a6e;
            --ink-faint:#4a3e36;
            --border:   rgba(240, 235, 228, 0.08);
            background: var(--bg);
            color:      var(--ink);
        }

        /* Layout Sidebar */
        .editorial-sidebar-layout {
            max-width: 1600px;
            margin: 0 auto;
            display: flex;
            padding: 0 32px;
        }

        .template-editorial .cat-nav {
            width: 280px;
            position: sticky;
            top: 96px;
            height: calc(100vh - 120px);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: transparent !important;
            border-right: 1px solid var(--border);
            padding-right: 32px;
            z-index: 40;
        }

        .template-editorial .cat-nav-scroll {
            flex-direction: column;
            overflow-x: visible;
            gap: 20px;
            padding: 0;
        }

        .template-editorial .editorial-sidebar-header {
            font-size: calc(10px * var(--font-scale));
            text-transform: uppercase;
            letter-spacing: 0.4em;
            color: var(--accent);
            font-weight: 700;
            margin-bottom: 40px;
        }

        .template-editorial .cat-btn {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: calc(11px * var(--font-scale));
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--ink-muted);
            padding: 8px 0;
            text-align: left;
            border: none !important;
            background: transparent !important;
            transition: color 0.3s ease;
        }

        .template-editorial .editorial-btn-line {
            width: 0;
            height: 1px;
            background: var(--ink);
            transition: width 0.3s ease;
        }

        .template-editorial .cat-btn:hover,
        .template-editorial .cat-btn.active {
            color: var(--ink);
        }

        .template-editorial .cat-btn:hover .editorial-btn-line,
        .template-editorial .cat-btn.active .editorial-btn-line {
            width: 16px;
        }

        .template-editorial .editorial-sidebar-footer {
            padding-bottom: 32px;
        }

        .template-editorial .editorial-info-box {
            padding: 20px;
            border: 1px solid rgba(181, 155, 124, 0.2);
            background: rgba(181, 155, 124, 0.05);
            border-radius: 2px;
        }

        .template-editorial .editorial-info-box span {
            color: var(--accent);
            margin-bottom: 8px;
            display: block;
        }

        .template-editorial .editorial-info-box p {
            font-size: calc(9px * var(--font-scale));
            line-height: 1.6;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--ink-muted);
        }

        /* Main Content logic */
        .template-editorial .main-content {
            flex: 1;
            padding-left: 64px;
            padding-top: 0;
            max-width: none;
        }

        .template-editorial .category-section {
            margin-bottom: 120px;
            padding-top: 0;
        }

        .template-editorial .category-title-wrap {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 64px;
            border-bottom: none;
        }

        .template-editorial .category-title {
            font-family: var(--font-display) !important;
            font-size: calc(clamp(3rem, 6vw, 5rem) * var(--font-scale)) !important;
            font-style: italic !important;
            font-weight: 400 !important;
            line-height: 1 !important;
            margin-bottom: 8px;
            white-space: normal;
        }

        .template-editorial .editorial-cat-subtitle {
            font-size: calc(11px * var(--font-scale));
            text-transform: uppercase;
            letter-spacing: 0.5em;
            color: var(--accent);
            font-weight: 700;
        }

        .template-editorial .editorial-quote {
            max-width: 300px;
            text-align: right;
        }

        .template-editorial .editorial-quote p {
            font-family: var(--font-display);
            font-style: italic;
            font-size: calc(1.1rem * var(--font-scale));
            color: var(--ink-muted);
            line-height: 1.4;
        }

        /* Featured Cards */
        .template-editorial .product-card--featured {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            align-items: center;
            margin-bottom: 120px;
            border: none !important;
            background: transparent !important;
            overflow: visible;
        }

        .template-editorial .product-card--featured .product-img-wrap,
        .template-editorial .product-card--featured .product-no-image {
            grid-column: 1 / 9;
            grid-row: 1;
            aspect-ratio: 4 / 5; /* Móvil: vertical */
            width: 100%;
            height: auto;
            border-radius: 2px;
            overflow: hidden;
        }

        .template-editorial .product-card--featured .product-image {
            filter: grayscale(0.2);
            transition: transform 1s ease;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .template-editorial .product-card--featured:hover .product-image {
            transform: scale(1.05);
        }

        .template-editorial .product-card--featured .product-body {
            grid-column: 8 / 13;
            grid-row: 1;
            z-index: 10;
            background: var(--bg-card);
            padding: 48px;
            box-shadow: var(--shadow);
            align-self: end;
            transform: translateY(60px);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .template-editorial .product-card--featured:nth-child(even) .product-img-wrap,
        .template-editorial .product-card--featured:nth-child(even) .product-no-image {
            grid-column: 5 / 13;
        }

        .template-editorial .product-card--featured:nth-child(even) .product-body {
            grid-column: 1 / 6;
        }

        .template-editorial .product-card--featured .product-number-badge {
            position: absolute;
            top: 32px;
            left: 32px;
            font-size: calc(6rem * var(--font-scale));
            font-family: var(--font-display);
            font-weight: 700;
            color: var(--accent);
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 10px 24px;
            border-radius: 16px;
            pointer-events: none;
            width: auto;
            height: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
            z-index: 20;
            opacity: 1;
            line-height: 1;
        }

        .template-editorial .product-card--featured:nth-child(even) .product-number-badge {
            left: auto;
            right: 32px;
        }

        /* Grid Cards */
        .template-editorial .products-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px 64px;
        }

        .template-editorial .products-grid .product-card {
            display: flex;
            flex-direction: column;
            gap: 24px;
            border: none;
            border-bottom: 1px solid var(--border);
            padding-bottom: 32px;
            background: transparent;
        }

        .template-editorial .products-grid .product-header-row {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            width: 100%;
        }

        .template-editorial .products-grid .product-visual {
            position: relative;
            width: 80px;
            height: 80px;
            flex-shrink: 0;
        }

        .template-editorial .products-grid .product-img-wrap,
        .template-editorial .products-grid .product-no-image {
            width: 80px;
            height: 80px;
            border-radius: 2px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent-dim);
            border: 1px solid var(--border);
        }

        .template-editorial .products-grid .product-no-image-icon {
            font-size: calc(24px * var(--font-scale));
            color: var(--ink-muted);
            opacity: 0.5;
        }

        .template-editorial .products-grid .product-number-badge {
            position: absolute;
            top: -8px;
            left: -16px;
            z-index: 10;
            font-family: var(--font-display);
            font-size: calc(1.1rem * var(--font-scale));
            font-weight: 800;
            color: var(--ink);
            background: #fff;
            padding: 6px 10px;
            border-radius: 2px;
            line-height: 1;
            box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1);
            opacity: 1;
            border: 1px solid var(--border);
        }

        .template-editorial .products-grid .product-title-price {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex: 1;
            gap: 16px;
        }

        .template-editorial .products-grid .product-name {
            font-size: calc(1.2rem * var(--font-scale)) !important;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin: 0;
            line-height: 1.2;
        }

        .template-editorial .products-grid .product-price {
            font-family: var(--font-display);
            font-size: calc(1.25rem * var(--font-scale));
            font-weight: 600;
            color: var(--accent);
            white-space: nowrap;
        }

        .template-editorial .products-grid .product-body {
            padding: 0;
            width: 100%;
        }

        .template-editorial .products-grid .product-description {
            font-style: italic;
            color: var(--ink-muted);
            display: block;
            -webkit-line-clamp: none;
            overflow: visible;
            width: 100%;
            margin: 8px 0 0 0;
            line-height: 1.6;
        }

        /* Ajuste de contraste para números en modo oscuro */
        .dark .template-editorial .products-grid .product-number-badge {
            background: rgba(255, 255, 255, 0.95);
            color: #1a1614;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        /* Responsive overrides */
        @media (min-width: 1024px) {
            .template-editorial .product-card--featured .product-img-wrap,
            .template-editorial .product-card--featured .product-no-image {
                aspect-ratio: 16 / 10; /* Desktop: panorámico */
            }
        }

        @media (max-width: 1024px) {
            .editorial-sidebar-layout {
                flex-direction: column;
                padding: 0 20px;
            }

            .template-editorial .cat-nav {
                width: 100%;
                height: auto;
                position: sticky;
                top: 0; /* El header no es fixed, empieza desde 0 */
                background: var(--bg-header) !important;
                backdrop-filter: blur(12px);
                border-right: none;
                border-bottom: 1px solid var(--border);
                margin-bottom: 40px;
                padding: 0;
                z-index: 45;
            }

            .template-editorial .editorial-sidebar-header,
            .template-editorial .editorial-sidebar-footer {
                display: none;
            }

            .template-editorial .cat-nav-scroll {
                flex-direction: row;
                overflow-x: auto;
                padding: 12px 20px;
                gap: 8px;
            }

            .template-editorial .cat-btn {
                white-space: nowrap;
                padding: 8px 16px;
                border: 1px solid var(--border) !important;
                border-radius: 20px;
            }

            .template-editorial .editorial-btn-line {
                display: none;
            }

            .template-editorial .main-content {
                padding-left: 0;
            }

            .template-editorial .product-card--featured {
                grid-template-columns: 1fr;
            }

            .template-editorial .product-card--featured .product-img-wrap,
            .template-editorial .product-card--featured .product-no-image {
                grid-column: 1 / -1;
            }

            .template-editorial .product-card--featured .product-body {
                grid-column: 1 / -1;
                margin-top: 20px !important;
                padding: 32px;
                width: 90%;
                margin-left: auto;
                margin-right: auto;
                transform: translateY(80px);
            }

            .template-editorial .product-card--featured .product-number-badge {
                font-size: calc(3.6rem * var(--font-scale));
                top: 24px;
                left: 24px;
                padding: 6px 16px;
                border-radius: 12px;
            }

            .template-editorial .product-card--featured:nth-child(even) .product-number-badge {
                left: auto;
                right: 24px;
            }

            .template-editorial .products-grid {
                grid-template-columns: 1fr;
            }
        }

        .template-editorial .editorial-footer-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 48px;
            text-align: left;
            max-width: 1600px;
            margin: 0 auto;
            padding: 48px 0;
        }

        .template-editorial .editorial-footer-grid h2 {
            font-family: var(--font-display);
            font-size: calc(2rem * var(--font-scale));
            letter-spacing: 0.2em;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .template-editorial .editorial-footer-info {
            font-size: calc(11px * var(--font-scale));
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--ink-muted);
            line-height: 1.8;
        }

        .template-editorial .editorial-footer-label {
            font-size: calc(10px * var(--font-scale));
            text-transform: uppercase;
            letter-spacing: 0.4em;
            color: var(--accent);
            font-weight: 700;
            margin-bottom: 24px;
        }

        .template-editorial .editorial-social-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .template-editorial .editorial-social-links a {
            font-size: calc(11px * var(--font-scale));
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--ink);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .template-editorial .editorial-social-links a:hover {
            color: var(--accent);
        }

        .template-editorial .editorial-footer-copy {
            text-align: right;
            font-size: calc(10px * var(--font-scale));
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--ink-muted);
        }

        .template-editorial .editorial-footer-copy .italic {
            margin-top: 8px;
            font-style: italic;
        }

        /* Footer Responsive Editorial */
        @media (max-width: 1024px) {
            .template-editorial .editorial-footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 40px;
                padding: 40px 20px;
            }

            .template-editorial .editorial-social-links {
                align-items: center;
            }

            .template-editorial .editorial-footer-copy {
                text-align: center;
                margin-top: 20px;
                border-top: 1px solid var(--border);
                padding-top: 24px;
                grid-column: 1 / -1;
            }
        }

        /* ═══════════════════════════════════════════════════════
        ESTRUCTURA COMPARTIDA (layout, posicionamiento)
        ═══════════════════════════════════════════════════════ */

        /* Header */
        .site-header {
            position: relative;
        }

        .header-top {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            padding: 14px 20px 10px;
        }

        /* Language */
        .lang-selector {
            display: flex;
            gap: 4px;
        }

        .lang-btn {
            padding: 4px 7px;
            border-radius: 5px;
            font-size: calc(11px * var(--font-scale));
            font-weight: 500;
            font-family: var(--font-body);
            color: var(--ink-muted);
            text-decoration: none;
            border: 1px solid transparent;
            transition: all .15s ease;
            letter-spacing: .5px;
        }

        .lang-btn:hover {
            background: var(--accent-dim);
            color: var(--ink);
        }

        /* Allergen toggle */
        .al-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            background: var(--accent-dim);
            border: 1px solid var(--border);
            cursor: pointer;
            font-size: calc(12px * var(--font-scale));
            color: var(--ink-soft);
            font-family: var(--font-body);
            transition: all .15s ease;
            font-weight: 500;
        }

        .al-toggle-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            display: none;
        }

        .al-toggle.on .al-toggle-dot {
            display: block;
        }

        /* Allergen panel */
        .allergen-panel {
            overflow: hidden;
            max-height: 0;
            transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
        }

        .allergen-panel.open {
            max-height: 600px;
        }

        .allergen-panel-inner {
            padding: 16px 20px 20px;
        }

        .allergen-panel-title {
            font-size: calc(11px * var(--font-scale));
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--ink-muted);
            margin-bottom: 12px;
        }

        .al-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .al-chip {
            display: flex;
            cursor: pointer;
        }

        .al-chip input {
            display: none;
        }

        .al-chip-lbl {
            padding: 6px 13px;
            border-radius: 20px;
            font-size: calc(12.5px * var(--font-scale));
            font-weight: 500;
            border: 1.5px solid var(--border);
            transition: all .15s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-family: var(--font-body);
        }

        .al-chip input:checked+.al-chip-lbl {
            background: #fee2e2;
            border-color: #fca5a5;
            color: #c94c4c;
        }

        .al-emoji {
            font-size: calc(14px * var(--font-scale));
        }

        /* Hero */
        .header-hero {
            padding: 24px 20px 28px;
            text-align: center;
        }

        .tenant-logo {
            width: 72px;
            height: 72px;
            object-fit: contain;
            border-radius: 16px;
            margin-bottom: 14px;
        }

        .tenant-name {
            line-height: 1.1;
            color: var(--ink);
        }

        .tenant-description {
            margin-top: 8px;
            max-width: 280px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Rule (calida only, others hide it) */
        .header-rule {
            padding: 0 20px 20px;
        }

        .header-rule-icon {
            font-size: calc(10px * var(--font-scale));
        }

        /* Category nav */
        .cat-nav {
            position: sticky;
            top: 0;
            z-index: 50;
        }

        @media (max-width: 767px) {
            .cat-nav {
                display: none !important;
            }
        }

        .cat-nav-scroll {
            display: flex;
            gap: 4px;
            padding: 10px 16px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .cat-nav-scroll::-webkit-scrollbar {
            display: none;
        }

        .cat-btn {
            flex-shrink: 0;
            padding: 7px 15px;
            border-radius: 20px;
            font-size: calc(13px * var(--font-scale));
            font-weight: 500;
            font-family: var(--font-body);
            color: var(--ink-muted);
            background: none;
            border: 1.5px solid transparent;
            cursor: pointer;
            transition: all .2s ease;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .cat-btn:hover {
            color: var(--ink);
            background: var(--accent-dim);
        }

        /* Main */
        .main-content {
            max-width: 680px;
            margin: 0 auto;
            padding: 0 16px 80px;
        }

        /* Category */
        .category-section {
            padding-top: 36px;
        }

        .category-title {
            line-height: 1.1;
        }

        .category-marker {
            border-radius: 2px;
        }

        /* Product card */
        .product-card {
            display: flex;
            align-items: stretch;
            min-height: 100px;
            margin-bottom: 12px;
            margin-top: 16px;
            overflow: visible;
            transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
            animation: cardIn .4s ease both;
        }

        /* Clip images within card to respect border radius */
        .product-img-wrap,
        .product-no-image {
            border-radius: var(--radius-card, 18px) 0 0 var(--radius-card, 18px);
            overflow: hidden;
        }

        .product-card.hidden {
            display: none;
        }

        @keyframes cardIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .product-card:nth-child(1) {
            animation-delay: .05s;
        }

        .product-card:nth-child(2) {
            animation-delay: .10s;
        }

        .product-card:nth-child(3) {
            animation-delay: .15s;
        }

        .product-card:nth-child(4) {
            animation-delay: .20s;
        }

        .product-card:nth-child(n+5) {
            animation-delay: .25s;
        }

        .product-img-wrap {
            flex-shrink: 0;
            width: 100px;
            overflow: hidden;
        }

        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .product-no-image {
            width: 100px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: calc(26px * var(--font-scale));
            opacity: .4;
            color: var(--ink-muted);
        }

        .product-body {
            flex: 1;
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 8px;
            min-width: 0;
        }

        .product-name {
            line-height: 1.2;
            color: var(--ink);
        }

        .product-description {
            font-size: calc(12.5px * var(--font-scale));
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }

        .product-price {
            line-height: 1;
            flex-shrink: 0;
        }

        /* Allergen tags on cards */
        .product-allergens {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
            min-width: 0;
            flex: 1;
            justify-content: flex-end;
        }

        .allergen-tag {
            font-size: calc(10.5px * var(--font-scale));
            padding: 2px 7px;
            border-radius: 10px;
            font-weight: 500;
        }

        .allergen-tag.excluded {
            background: #fee2e2 !important;
            border-color: #fca5a5 !important;
            color: #c94c4c !important;
        }

        .allergen-icon {
            width: 18px;
            height: 18px;
            object-fit: contain;
        }

        /* Empty */
        .cat-empty {
            text-align: center;
            padding: 32px 20px;
            color: var(--ink-muted);
            font-size: calc(14px * var(--font-scale));
            font-style: italic;
        }

        /* Global Allergy Notice */
        .global-allergy-notice {
            margin: 40px 0 20px;
            padding: 24px;
            background: var(--accent-dim, rgba(0,0,0,0.03));
            border: 1px solid var(--border);
            border-radius: var(--radius-card, 8px);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .notice-icon {
            color: var(--accent);
            font-size: calc(24px * var(--font-scale));
        }

        .global-allergy-notice p {
            font-size: calc(13px * var(--font-scale));
            line-height: 1.6;
            color: var(--ink-soft);
            max-width: 500px;
            margin: 0;
            font-weight: 500;
        }

        .allergen-emoji, .al-emoji {
            filter: grayscale(100%) contrast(1.2);
            opacity: 0.8;
            display: inline-block;
            transition: filter 0.3s ease, opacity 0.3s ease;
        }

        .al-chip input:checked + .al-chip-lbl .al-emoji {
            filter: grayscale(0%);
            opacity: 1;
        }

        /* Footer */
        .site-footer {
            text-align: center;
            padding: 24px 20px;
            font-size: calc(12px * var(--font-scale));
        }

        .site-footer a {
            text-decoration: none;
        }

        /* Scroll top */
        .scroll-top {
            position: fixed;
            bottom: 24px;
            right: 20px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: calc(18px * var(--font-scale));
            opacity: 0;
            transform: translateY(10px);
            transition: all .25s ease;
            z-index: 100;
        }

        .scroll-top.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 4px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 2px;
        }

        /* ── Accessibility toggles ──────────────────────────── */
        html:not(.mai-active) .access-toggle {
            display: none;
        }

        .access-toggle {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 20px;
            background: transparent;
            border: 1px solid var(--border);
            cursor: pointer;
            font-size: calc(11px * var(--font-scale));
            color: var(--ink-muted);
            font-family: var(--font-body);
            transition: all .15s ease;
            -webkit-tap-highlight-color: transparent;
            margin-left: 6px;
        }

        .access-toggle:hover {
            border-color: var(--ink-soft);
            color: var(--ink);
        }

        .access-toggle[aria-pressed="true"] {
            background: var(--ink);
            color: var(--bg);
            border-color: var(--ink);
        }

        .access-toggle-icon {
            font-size: 26px !important;
        }

        /* Responsive */
        @media (min-width: 600px) {
            .header-hero {
                padding: 32px 24px 36px;
            }

            .main-content {
                padding: 0 24px 100px;
            }

            .product-img-wrap,
            .product-no-image {
                width: 130px;
            }

            .product-description {
                -webkit-line-clamp: 5;
            }
        }

        @media (max-width: 480px) {
            .access-toggle-label {
                display: none;
            }
            .access-toggle {
                padding: 4px 8px;
            }
        }

        /* ── Compact language selector ───────────────────── */
        .lang-selector-compact {
            position: relative;
            margin-left: 6px;
            display: inline-flex;
        }

        .lang-cmpct-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--ink-muted);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            position: relative;
            z-index: 20;
            transition: .35s;
        }
        .lang-cmpct-btn:hover {
            border-color: var(--ink-soft);
            color: var(--ink);
        }
        .lang-cmpct-btn .material-symbols-outlined {
            font-size: 26px !important;
        }

        .lang-selector-compact.open .lang-cmpct-btn {
            transform: rotate(90deg);
        }

        .lang-backdrop {
            position: fixed;
            inset: 0;
            z-index: 15;
            background: rgba(0,0,0,0.15);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            opacity: 0;
            pointer-events: none;
            transition: opacity .35s ease;
        }
        .lang-selector-compact.open .lang-backdrop {
            opacity: 1;
            pointer-events: auto;
        }

        .lang-radial {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            z-index: 25;
            pointer-events: none;
        }

        .lang-item {
            position: absolute;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            background: white;
            color: #000000;
            font-weight: 700;
            box-shadow: 0 6px 20px rgba(0,0,0,.18);
            opacity: 0;
            transform: translate(0,0) scale(.15);
            transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s;
        }

        .lang-selector-compact.open .lang-radial {
            pointer-events: auto;
        }

        .lang-selector-compact.open .lang-es {
            transform: translate(110px,0px) scale(1);
            opacity: 1;
        }

        .lang-selector-compact.open .lang-en {
            transform: translate(101px,44px) scale(1);
            opacity: 1;
        }

        .lang-selector-compact.open .lang-fr {
            transform: translate(74px,81px) scale(1);
            opacity: 1;
        }

        .lang-selector-compact.open .lang-de {
            transform: translate(35px,104px) scale(1);
            opacity: 1;
        }

        .lang-selector-compact.open .lang-zh {
            transform: translate(-10px,110px) scale(1);
            opacity: 1;
        }

        .lang-item.active {
            background: var(--accent);
            color: #000000;
        }

        .access-toggle-icon-aa {
            font-family: Georgia, 'Times New Roman', Times, serif !important;
            font-size: 22px !important;
            font-weight: 700 !important;
            font-style: italic !important;
            line-height: 1 !important;
            letter-spacing: -0.04em !important;
        }



        @supports (padding-bottom: env(safe-area-inset-bottom)) {
            .main-content {
                padding-bottom: calc(80px + env(safe-area-inset-bottom));
            }
        }

        /* ═══════════════════════════════════════════════════════
        NUEVAS MEJORAS VISUALES
        ═══════════════════════════════════════════════════════ */

        /* Logo con marco/franja estilo tarjeta */
        .tenant-logo-wrap {
            display: inline-block;
            padding: 10px;
            background: var(--bg-card, #fff);
            border: 1px solid var(--border);
            border-radius: 20px;
            box-shadow: 0 2px 16px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
            margin-bottom: 16px;
        }

        .tenant-logo {
            width: 120px;
            height: 120px;
            object-fit: contain;
            border-radius: 12px;
            margin-bottom: 0;
            display: block;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

        /* Fuente Playfair para nombre y descripción del café */
        .tenant-name {
            font-family: 'Playfair Display', Georgia, serif !important;
            font-size: calc(3.5rem * var(--font-scale)) !important;
            font-weight: 400 !important;
            letter-spacing: -1px !important;
            line-height: 1.05 !important;
        }

        .tenant-description {
            font-family: 'Playfair Display', Georgia, serif !important;
            font-style: italic !important;
            font-size: calc(1.1rem * var(--font-scale)) !important;
            margin-top: 6px;
        }

        /* Título de categoría: Playfair italic + línea horizontal a la derecha */
        .category-title-wrap {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 6px;
        }

        .category-title {
            font-family: 'Playfair Display', Georgia, serif !important;
            font-size: calc(2rem * var(--font-scale)) !important;
            font-style: italic !important;
            font-weight: 500 !important;
            letter-spacing: -0.3px !important;
            white-space: nowrap;
            text-transform: capitalize;
        }

        .category-title-line {
            flex: 1;
            height: 1px;
            background: var(--accent, #b5894a);
            opacity: 0.35;
        }

        /* Ocultar el marcador horizontal original, lo reemplaza el wrap */
        .category-marker {
            display: none;
        }

        /* Número de producto */
        .product-number-badge {
            position: absolute;
            top: -10px;
            left: -10px;
            width: 40px;
            height: 40px;
            background: var(--ink, #1c1814);
            color: var(--bg, #fdfaf4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: calc(14px * var(--font-scale));
            font-weight: 700;
            letter-spacing: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,.2);
            z-index: 10;
            font-family: var(--font-body, sans-serif);
            flex-shrink: 0;
        }

        /* Override para template calida: usa el acento dorado */
        .template-calida .product-number-badge {
            background: var(--accent);
            color: #fff;
        }

        .template-moderna .product-number-badge {
            background: var(--accent);
            color: #fff;
        }

        /* Placeholder de imagen con ícono Material Symbols */
        .product-no-image {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .product-no-image-icon {
            font-size: calc(28px * var(--font-scale));
            font-weight: 100;
            line-height: 1;
            opacity: 0.35;
            color: var(--ink-muted, #8a7f76);
            font-style: normal;
        }

        /* Allergen chips mejoradas */
        .al-chip-lbl {
            background: var(--bg-card, #faf8f5) !important;
        }

        /* Material Symbols en allergen chips */
        .al-emoji-icon {
            font-family: 'Material Symbols Outlined';
            font-size: calc(15px * var(--font-scale));
            font-weight: 300;
            line-height: 1;
            font-style: normal;
            color: var(--ink-soft, #3d3530);
        }

        /* Título "Excluir Ingredientes" con líneas a los costados */
        .allergen-panel-title {
            display: flex !important;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }

        .allergen-panel-title::before,
        .allergen-panel-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border, #ede8e0);
        }

        .allergen-panel-title-text {
            white-space: nowrap;
            font-size: calc(10px * var(--font-scale));
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.25em;
            color: var(--ink-muted, #8a7f76);
        }

        /* MAI order bar room */
        html.mai-active .scroll-top {
            display: none;
        }

        html.mai-active .site-content-wrapper {
            padding-bottom: 80px;
        }

        /* ═══════════════════════════════════════════════════════════
        TEMPLATE ACCESIBLE — Night Sky
        ═══════════════════════════════════════════════════════════ */
        .template-accesible {
            --bg: #000000;
            --bg-card: #111111;
            --bg-header: #000000;
            --ink: #ffffff;
            --ink-soft: #f0f0f0;
            --ink-muted: #cccccc;
            --ink-faint: #888888;
            --accent: #ffee32;
            --accent-dim: rgba(255, 238, 50, 0.15);
            --accent-link: #8080ff;
            --border: #444444;
            --red: #ff4444;
            --radius-card: 12px;
            --shadow: none;
            --bg-alt: #222222;
            --shadow-hover: none;
            font-family: 'Atkinson Hyperlegible', sans-serif;
            background: var(--bg);
            color: var(--ink);
        }

        .template-accesible .tenant-name {
            font-family: 'Atkinson Hyperlegible', sans-serif !important;
            font-size: calc(2.2rem * var(--font-scale));
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .template-accesible .tenant-description {
            font-family: 'Atkinson Hyperlegible', sans-serif !important;
            font-size: calc(1.2rem * var(--font-scale));
            color: var(--ink-muted);
        }

        .template-accesible .category-title {
            font-family: 'Atkinson Hyperlegible', sans-serif !important;
            font-size: calc(1.6rem * var(--font-scale));
            font-weight: 700;
        }

        .template-accesible .product-name {
            font-family: 'Atkinson Hyperlegible', sans-serif !important;
            font-size: calc(1.2rem * var(--font-scale));
            font-weight: 600;
        }

        .template-accesible .product-price {
            font-family: 'Atkinson Hyperlegible', sans-serif !important;
            font-size: calc(1.35rem * var(--font-scale));
            color: var(--accent);
        }

        .template-accesible .product-description {
            display: none !important;
        }

        .template-accesible .product-card {
            background: var(--bg-card);
            border-radius: var(--radius-card);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            width: 100%;
            overflow: hidden;
        }

        .template-accesible .product-card.hidden {
            display: none;
        }

        .template-accesible .product-img-wrap {
            width: 100%;
            aspect-ratio: 4 / 3;
            overflow: hidden;
            border-radius: 12px 12px 0 0;
        }

        .template-accesible .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .template-accesible .product-no-image {
            aspect-ratio: 4 / 3;
            background: #222222;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px 12px 0 0;
        }

        .template-accesible .product-body {
            padding: 12px 16px 16px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .template-accesible .product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 4px;
        }

        .template-accesible .product-number-badge {
            display: none !important;
        }

        .template-accesible .site-header,
        .template-accesible .cat-nav,
        .template-accesible .allergen-panel {
            background: var(--bg-header);
        }

        .template-accesible .cat-btn.active {
            color: var(--accent);
            background: var(--accent-dim);
            border-color: rgba(255, 238, 50, 0.25);
        }

        .template-accesible .lang-btn.active {
            background: var(--accent-dim);
            color: var(--accent);
            border-color: rgba(255, 238, 50, 0.2);
        }

        .template-accesible .al-toggle.on {
            background: var(--accent-dim);
            border-color: rgba(255, 238, 50, 0.3);
            color: var(--accent);
        }

        .template-accesible .al-toggle-dot {
            background: var(--accent);
        }

        .template-accesible .header-rule-icon {
            display: none;
        }

        .template-accesible .site-footer a {
            color: var(--accent-link);
        }

        .template-accesible .allergen-tag {
            background: #222222;
            color: var(--ink-muted);
            border-color: #444444;
        }

        .template-accesible .allergen-tag.excluded {
            background: transparent;
            color: var(--ink-faint);
            border-color: transparent;
            text-decoration: line-through;
        }

        .template-accesible .product-allergens {
            display: none;
        }

        .template-accesible .mai-order-bar-btn {
            background: var(--accent) !important;
            color: #000000 !important;
        }

        .template-accesible .product-add-btn {
            background: var(--accent) !important;
            color: #000000 !important;
        }

        .template-accesible .access-toggle--contrast,
        .template-accesible .dark-mode-toggle-btn {
            display: none !important;
        }

        .template-accesible .products-grid {
            grid-template-columns: 1fr !important;
        }

        .template-accesible .product-header-row {
            display: flex !important;
            flex-direction: column !important;
        }

        .template-accesible .product-visual {
            width: 100% !important;
        }

        .template-accesible .product-title-price {
            padding: 12px 16px 4px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .template-accesible .product-header-row + .product-body {
            padding-top: 4px;
        }

        .template-accesible .product-card--featured {
            display: flex !important;
            flex-direction: column !important;
            grid-template-columns: none !important;
            border-radius: var(--radius-card);
            overflow: hidden;
        }

        .template-accesible .product-card--featured .product-img-wrap,
        .template-accesible .product-card--featured .product-no-image {
            aspect-ratio: 4 / 3;
            width: 100% !important;
            height: auto !important;
            border-radius: 12px 12px 0 0 !important;
        }

        .template-accesible .header-hero {
            padding: 24px 16px 20px;
        }

        .template-accesible #page-loader {
            background: #000000;
        }

        .template-accesible .loader-spinner {
            color: #ffee32;
        }

        .template-accesible .loader-text {
            color: #cccccc;
        }

        @media (max-width: 600px) {
            .template-accesible .products-grid {
                grid-template-columns: 1fr !important;
                gap: 16px;
            }
        }

        /* ── MAI onboarding pulse ──────────────────────────── */
        @keyframes mai-pulse {
            0%, 100% { outline-color: rgba(255, 238, 50, 0.6); outline-offset: 2px; }
            50% { outline-color: rgba(255, 238, 50, 0); outline-offset: 8px; }
        }
        .mai-hint-pulse {
            outline-width: 3px;
            outline-style: solid;
            outline-color: rgba(255, 238, 50, 0);
            animation: mai-pulse 2s ease-in-out infinite;
        }