/* ============================================================
   TOKENS — SISTEMA DE TEMAS
   ─────────────────────────────────────────────────────────
   USO:
     Tema oscuro (default):  <html>
     Tema claro:             <html data-theme="light">

   CAMBIAR DE CLIENTE:
     Solo edita las 3 variables --marca-* en cada :root.
     Todo lo demás se deriva automáticamente.
============================================================ */

/* ── TEMA OSCURO (default) ───────────────────────────────── */
:root {
  /* MARCA — edita solo esto por cliente */
  --marca-edzi: #c9184a;
  --marca-blanco: #fff;
  --marca-principal:  #e8c547;   /* La Perla: dorado */
  --marca-secundario: #d4824a;   /* La Perla: naranja coral */
  --marca-terceario:  #e8c547;   /* La Perla: mismo dorado */

  /* SISTEMA — no tocar */
  --c-bg:        #0a0a0a;
  --c-surface:   #141414;
  --c-surface2:  #1c1c1c;
  --c-border:    #2a2a2a;
  --c-text:      #f0ede8;
  --c-muted:     #888;

  --c-accent:    var(--marca-principal);
  --c-accent2:   var(--marca-secundario);
  --c-brand:     var(--marca-principal);

  --c-open:      #3ecf8e;
  --c-closed:    #ff5b5b;
  --c-wa:        #25d366;

  --r-card:      14px;
  --r-pill:      999px;
  --r-modal:     20px;

  --f-display:   'Noto Sans', sans-serif;
  --f-body:      'DM Sans', sans-serif;

  --shadow-card: 0 2px 16px rgba(0,0,0,.45);
  --shadow-float:0 8px 32px rgba(0,0,0,.6);

  --header-h:    60px;

  /* Helpers internos */
  --c-accent-rgb:    232, 197, 71;
  --c-brand-text:    #0a0a0a;    /* color del texto sobre --c-brand */
  --c-btn-text:      #0a0a0a;    /* texto sobre botones de acento */
  --header-bg:       rgba(10,10,10,.85);
}

/* ── TEMA CLARO ──────────────────────────────────────────── */
[data-theme="light"] {
  /* MARCA — edita solo esto por cliente */
  --marca-principal:  #7a543d;   /* La Perla light: café */
  --marca-secundario: #11ace4;   /* La Perla light: azul mar */
  --marca-terceario:  #f8b13d;   /* La Perla light: amarillo sol */

  /* SISTEMA — no tocar */
  --c-bg:        #f7f5f2;
  --c-surface:   #ffffff;
  --c-surface2:  #f6f6f6;
  --c-border:    #e6e0d8;
  --c-text:      #1e1a16;
  --c-muted:     #9a9088;

  --c-accent:    var(--marca-terceario);
  --c-accent2:   var(--marca-secundario);
  --c-brand:     var(--marca-principal);

  --c-open:      #1a9e6a;
  --c-closed:    #d94040;
  --c-wa:        #25d366;

  --shadow-card: 0 2px 10px rgba(122,84,61,.08);
  --shadow-float:0 8px 32px rgba(122,84,61,.16);

  /* Helpers internos */
  --c-accent-rgb:    248, 177, 61;
  --c-brand-text:    #ffffff;    /* texto sobre --c-brand */
  --c-btn-text:      #1e1a16;    /* texto sobre botones de acento */
  --header-bg:       rgba(247,245,242,.93);
}

/* ============================================================
   EJEMPLO DE OTROS CLIENTES
   Descomenta y ajusta las 3 variables --marca-*
============================================================ */

/*
── Cliente: Taquería El Güero (rojo + verde) ──
[data-theme="dark"] {
  --marca-principal:  #e63946;
  --marca-secundario: #2a9d8f;
  --marca-terceario:  #e9c46a;
}
[data-theme="light"] {
  --marca-principal:  #c1121f;
  --marca-secundario: #2a9d8f;
  --marca-terceario:  #e9c46a;
}

── Cliente: Cafetería Nube (morado + crema) ──
[data-theme="dark"] {
  --marca-principal:  #9b5de5;
  --marca-secundario: #f15bb5;
  --marca-terceario:  #fee440;
}
[data-theme="light"] {
  --marca-principal:  #7b2d8b;
  --marca-secundario: #d4488a;
  --marca-terceario:  #f4c430;
}
*/

    /* ============================================================
       RESET / BASE
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--f-body);
      background: var(--c-bg);
      color: var(--c-text);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    img { display: block; }
    button { cursor: pointer; border: none; background: none; font-family: inherit; }
    a { text-decoration: none; color: inherit; }

    /* ============================================================
       SPLASH SCREEN
    ============================================================ */
    #splash {
      position: fixed; inset: 0; z-index: 9999;
      background: var(--c-bg);
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 16px;
      transition: opacity .5s ease, visibility .5s ease;
    }
    #splash.out { opacity: 0; visibility: hidden; }
    #splash img { width: 72px; animation: splashPulse 1s ease infinite alternate; }
    #splash .bar {
      width: 120px; height: 2px;
      background: var(--c-border);
      border-radius: 2px; overflow: hidden;
    }
    #splash .bar::after {
      content: ''; display: block; height: 100%;
      background: var(--c-accent);
      animation: splashLoad 1s ease forwards;
    }
    @keyframes splashPulse { from { opacity:.5 } to { opacity:1 } }
    @keyframes splashLoad  { from { width:0 } to { width:100% } }

    /* ============================================================
       HEADER
    ============================================================ */
    #header {
      position: -webkit-sticky; /* Necesario para Safari */
      position: sticky; top: 0; left: 0; right: 0; z-index: 900;
      height: var(--header-h);
      background: var(--marca-edzi);
      border-bottom: 1px solid var(--c-border);
      display: flex; align-items: center;
    }
    .header-inner {
      width: 100%; max-width: 1200px; margin: auto;
      padding: 0 20px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .header-logo img { height: 32px; }
    .header-nav { display: flex; align-items: center; gap: 20px; }
    .back-link {
      display: flex; align-items: center; gap: 5px;
      font-size: 13px; color: var(--marca-blanco);
      transition: color .2s;
    }
    .back-link:hover { color: var(--c-accent); }
    .header-socials { display: flex; gap: 14px; }
    .header-socials a {
      color: var(--marca-blanco); font-size: 16px;
      transition: color .2s;
    }
    .header-socials a:hover { color: var(--c-accent); }

    /* ============================================================
       HERO — 100vh, imagen con overlay oscuro
    ============================================================ */
    #hero {
      position: relative;
      height: 100svh; min-height: 560px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background: url('../img/hero-bg.png') center/cover no-repeat;
    }
    /* grain texture overlay */
    /*.hero-bg::before {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.04'/%3E%3C/svg%3E") repeat;
      opacity: .4; pointer-events: none;
    }
    .hero-bg::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(10,10,10,.3) 0%,
        rgba(10,10,10,.55) 40%,
        rgba(10,10,10,.92) 100%
      );
    }*/
    .hero-content {
      position: relative; z-index: 2;
      text-align: center;
      padding: 0 20px;
      animation: heroFadeUp .8s ease both;
    }
    @keyframes heroFadeUp {
      from { opacity:0; transform:translateY(24px) }
      to   { opacity:1; transform:translateY(0) }
    }
    .hero-logo {
      width: 80%; margin: 0 auto 20px;
      /*filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));*/
    }
    .hero-title {
      font-family: var(--f-display);
      font-size: clamp(2.4rem, 8vw, 5rem);
      font-weight: 800;
      letter-spacing: -.02em;
      line-height: 1;
      margin-bottom: 10px;
      color: var(--marca-secundario);
    }
    .hero-sub {
      font-size: clamp(.9rem, 2.5vw, 1.05rem);
      color: var(--marca-principal);
      font-weight: 300;
      margin-bottom: 20px;
    }
    /* Open/closed chip */
    .status-chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 5px 14px;
      border-radius: var(--r-pill);
      font-size: 12px; font-weight: 500;
      letter-spacing: .03em;
      margin-bottom: 20px;
    }
    .status-chip .dot {
      width: 7px; height: 7px;
      border-radius: 50%;
    }
    .status-chip.open  { background: rgba(62,207,142,.12); color: var(--c-open);  border: 1px solid rgba(62,207,142,.25); }
    .status-chip.open  .dot { background: var(--c-open);  box-shadow: 0 0 6px var(--c-open); }
    .status-chip.closed{ background: rgba(255,91,91,.1);  color: var(--c-closed); border: 1px solid rgba(255,91,91,.2); }
    .status-chip.closed .dot { background: var(--c-closed); }

    .hero-services {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      font-size: 13px; color: var(--marca-principal);
      margin-bottom: 28px;
    }
    .hero-services i { font-size: 15px; }
    .hero-sep { width: 1px; height: 14px; background: var(--c-border); }

    .hero-cta {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--marca-secundario);
      color: var(--marca-blanco);
      font-family: var(--f-display);
      font-weight: 700;
      font-size: 14px;
      letter-spacing: .04em;
      padding: 13px 28px;
      border-radius: var(--r-pill);
      transition: transform .2s, box-shadow .2s;
    }
    .hero-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(232,197,71,.3);
      color: var(--marca-blanco);
    }
    .hero-cta i { font-size: 16px; }

    /* scroll indicator */
    .hero-scroll {
      position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
      z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
      animation: bounce 2s ease infinite;
      color: rgba(240,237,232,.3); font-size: 11px; letter-spacing: .08em;
    }
    .hero-scroll i { font-size: 18px; }
    @keyframes bounce {
      0%,100% { transform: translateX(-50%) translateY(0) }
      50%      { transform: translateX(-50%) translateY(6px) }
    }

    /* ============================================================
       PROMO SWIPER
    ============================================================ */
    .promo-section { padding: 28px 0 0; }
    .swiper-promo { border-radius: var(--r-card); overflow: hidden; }
    .swiper-promo .swiper-slide img {
      width: 100%; border-radius: var(--r-card);
      aspect-ratio: 16/5; object-fit: cover;
    }

    /* ============================================================
       MENU SECTION
    ============================================================ */
    #menu-section { padding-top: 32px; padding-bottom: 80px; }

    .section-title {
      font-family: var(--f-display);
      font-size: 1.6rem; font-weight: 700;
      margin-bottom: 4px;
      color: var(--marca-principal);
    }
    .section-sub { font-size: 13px; color: var(--c-muted); margin-bottom: 20px; }

    /* ---- Filter chips ---- */
    .filter-bar {
      position: sticky; top: var(--header-h);
      z-index: 700;
      background: var(--c-bg);
      padding: 12px 0;
      margin: 0 -16px;
      padding-left: 16px;
      overflow-x: auto;
      white-space: nowrap;
      scrollbar-width: none;
      border-bottom: 1px solid var(--c-border);
      margin-bottom: 24px;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    
    .chip {
      display: inline-flex; align-items: center;
      padding: 7px 16px;
      border-radius: var(--r-pill);
      font-size: 13px; font-weight: 500;
      color: var(--c-muted);
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      margin-right: 8px;
      transition: all .2s;
      white-space: nowrap;
    }
    .chip:hover  { color: var(--c-text); border-color: var(--c-accent); }
    .chip.active {
      background: var(--c-accent);
      color: var(--marca-blanco);
      border-color: var(--c-accent);
      font-weight: 600;
    }
    .chip.hidden-chip { display: none; }

    /* ---- Product cards ---- */
    .product-col { transition: opacity .25s, transform .25s; }
    .product-col.hidden { display: none !important; }
    .product-col.is-hiding { opacity: 0; transform: scale(.97); pointer-events: none; }
    .product-col.is-showing { opacity: 1; transform: scale(1); }

    /* Category header */
    .cat-header {
      padding: 28px 0 8px;
      font-family: var(--f-display);
      font-size: 1.1rem; font-weight: 700;
      color: var(--marca-principal);
      letter-spacing: .02em;
      border-bottom: 1px solid var(--c-border);
      margin-bottom: 8px;
    }

    .badge-agotado {
      position: absolute; top: 8px; left: 8px; z-index: 2;
      background: rgba(217,64,64,.9); color: #fff;
      font-size: 10px; font-weight: 800; letter-spacing: .06em;
      text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
    }
    .product-card.is-agotado { opacity: .65; }
    .product-card.is-agotado img { filter: grayscale(.4); }

    /* Single product card */
    .product-card {
      display: flex; align-items: center;
      gap: 14px;
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--r-card);
      padding: 14px;
      transition: border-color .2s, transform .15s;
      cursor: default;
      position: relative;
    }
    .product-card:hover { border-color: var(--marca-principal); transform: translateY(-1px); }

    .size-row.is-agotado { opacity: .5; }
    .size-row.is-agotado .qty-btn { cursor: not-allowed; }

    .product-img {
      width: 80px; height: 80px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--c-surface2);
    }
    .product-img.no-img {
      display: flex; align-items: center; justify-content: center;
      font-size: 28px;
    }

    .product-body { flex: 1; min-width: 0; }
    .product-name {
      font-size: 16px; font-weight: 600;
      margin-bottom: 3px;
      color: var(--marca-principal);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .product-desc {
      font-size: 12px; color: var(--c-muted);
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 6px;
    }
    .product-price {
      font-family: var(--f-display);
      font-size: 15px; font-weight: 700;
      color: var(--c-accent);
    }

    /* promo ribbon */
    .product-card.is-promo { position: relative; }
    .promo-tag {
      position: absolute; top: 10px; left: 10px;
      background: var(--c-accent2);
      color: #fff;
      font-size: 10px; font-weight: 700;
      padding: 2px 8px; border-radius: var(--r-pill);
      letter-spacing: .06em;
    }

    /* add button */
    .btn-add {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--c-accent);
      color: var(--marca-blanco);
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; line-height: 1;
      flex-shrink: 0;
      transition: transform .15s, box-shadow .15s, background .2s;
    }
    .btn-add:hover  { transform: scale(1.1); box-shadow: 0 4px 12px rgba(232,197,71,.35); }
    .btn-add:active { transform: scale(.95); }
    .btn-add:disabled { background: var(--c-surface2); color: var(--c-muted); box-shadow: none; transform: none; cursor: not-allowed; }

    /* modal trigger (product with options) */
    .btn-options {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 7px 14px;
      border-radius: var(--r-pill);
      background: var(--c-surface2);
      border: 1px solid var(--c-border);
      color: var(--c-text);
      font-size: 12px; font-weight: 500;
      transition: border-color .2s, background .2s;
    }
    .btn-options:hover { border-color: var(--c-accent); background: rgba(232,197,71,.07); }

    /* ============================================================
       CART
    ============================================================ */
    /* Desktop: sticky sidebar */
    .cart-sidebar {
      position: sticky;
      top: calc(var(--header-h) + 16px);
      max-height: calc(100svh - var(--header-h) - 32px);
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: var(--c-border) transparent;
    }
    .cart-box {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--r-card);
      padding: 20px;
    }
    .cart-title {
      font-family: var(--f-display);
      font-size: 1rem; font-weight: 700;
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 16px; color: var(--marca-principal);
    }
    .cart-badge {
      background: var(--c-accent);
      color: #0a0a0a;
      font-size: 11px; font-weight: 700;
      width: 22px; height: 22px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
    }
    .cart-empty {
      text-align: center;
      padding: 32px 16px;
      color: var(--c-muted);
      font-size: 13px;
    }
    .cart-empty i { font-size: 36px; display: block; margin-bottom: 8px; opacity:.4; }

    /* cart items */
    .cart-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 0;
      border-bottom: 1px solid var(--c-border);
      font-size: 13px;
    }
    .cart-item:last-child { border-bottom: none; }
    .cart-item-name { flex: 1; font-weight: 500; }
    .cart-item-price { font-weight: 700; color: var(--c-accent); min-width: 52px; text-align: right; }
    .qty-ctrl { display: flex; align-items: center; gap: 6px; }
    .qty-btn {
      width: 26px; height: 26px; border-radius: 50%;
      background: var(--c-surface2);
      border: 1px solid var(--c-border);
      color: var(--c-text);
      font-size: 14px;
      display: flex; align-items: center; justify-content: center;
      transition: background .15s, border-color .15s;
    }
    .qty-btn:hover { background: var(--c-border); }
    .qty-val { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; }

    /* form fields */
    .field-group { margin-bottom: 10px; }
    .field-label { font-size: 11px; font-weight: 600; color: var(--c-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
    .field-input {
      width: 100%;
      background: var(--c-surface2);
      border: 1px solid var(--c-border);
      border-radius: 10px;
      color: var(--c-text);
      font-family: var(--f-body);
      font-size: 13px;
      padding: 10px 13px;
      transition: border-color .2s;
      outline: none;
    }
    .field-input::placeholder { color: var(--c-muted); }
    .field-input:focus { border-color: var(--c-accent); }
    .field-input.error { border-color: var(--c-closed); }
    .field-error { font-size: 11px; color: var(--c-closed); margin-top: 3px; display: none; }
    .field-error.show { display: block; }

    /* address GPS button */
    .addr-row { display: flex; gap: 8px; }
    .addr-row .field-input { flex: 1; }
    .btn-gps {
      width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
      background: var(--c-surface2);
      border: 1px solid var(--c-border);
      color: var(--c-muted);
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
      transition: all .2s;
    }
    .btn-gps:hover  { border-color: var(--c-accent); color: var(--c-accent); }
    .btn-gps.loading{ animation: spin .8s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* mode toggle */
    .mode-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
    .mode-btn {
      flex: 1;
      padding: 9px 10px;
      border-radius: 10px;
      font-size: 12px; font-weight: 600;
      border: 1px solid var(--c-border);
      background: var(--c-surface2);
      color: var(--c-muted);
      transition: all .2s;
    }
    .mode-btn.active {
      background: rgba(232,197,71,.1);
      border-color: var(--c-accent);
      color: var(--c-accent);
    }
    .mode-btn i { display: block; font-size: 18px; margin-bottom: 2px; }

    /* totals */
    .cart-totals { border-top: 1px solid var(--c-border); padding-top: 14px; margin-top: 8px; }
    .total-row {
      display: flex; justify-content: space-between; align-items: center;
      font-size: 13px; color: var(--c-muted);
      margin-bottom: 6px;
    }
    .total-row.final {
      font-size: 16px; font-weight: 700; color: var(--c-text);
      margin-top: 8px; margin-bottom: 0;
    }
    .total-row.final span:last-child { color: var(--c-accent); font-family: var(--f-display); }

    /* action buttons */
    .btn-wa {
      width: 100%;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      background: var(--c-wa);
      color: #fff;
      font-family: var(--f-display);
      font-weight: 700; font-size: 14px;
      letter-spacing: .03em;
      padding: 13px;
      border-radius: var(--r-pill);
      margin-top: 14px;
      transition: transform .15s, box-shadow .15s;
    }
    .btn-wa:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.3); }
    .btn-wa:active { transform: scale(.98); }
    .btn-wa:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
    .btn-wa i { font-size: 18px; }

    .btn-clear {
      width: 100%;
      padding: 13px;
      border-radius: var(--r-pill);
      font-size: 14px; font-weight: 500;
      color: #fff;
      border: 1px solid var(--c-border);
      background: var(--marca-edzi);
      margin-top: 8px;
      transition: color .2s, border-color .2s;
    }
    .btn-clear:hover { color: #fff; border-color: var(--c-closed); }

    /* ============================================================
       MOBILE BOTTOM SHEET CART
    ============================================================ */
    @media (max-width: 991px) {
      .cart-sidebar { display: none !important; }

      .cart-fab {
        position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
        z-index: 750;
        display: flex; align-items: center; gap: 10px;
        background: var(--marca-edzi);
        color: #fff;
        font-family: var(--f-display);
        font-weight: 700; font-size: 14px;
        padding: 14px 24px;
        border-radius: var(--r-pill);
        box-shadow: var(--shadow-float);
        transition: transform .2s, box-shadow .2s;
        white-space: nowrap;
        min-width: 200px; justify-content: space-between;
      }

      /*BLACK*/
      /*.cart-fab {
        position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
        z-index: 750;
        display: flex; align-items: center; gap: 10px;
        background: var(--c-text);
        color: var(--c-bg);
        font-family: var(--f-display);
        font-weight: 700; font-size: 14px;
        padding: 14px 24px;
        border-radius: var(--r-pill);
        box-shadow: var(--shadow-float);
        transition: transform .2s, box-shadow .2s;
        white-space: nowrap;
        min-width: 200px; justify-content: space-between;
      }*/

      .cart-fab:hover { transform: translateX(-50%) translateY(-2px); }
      .cart-fab.hidden { transform: translateX(-50%) translateY(100px); opacity: 0; pointer-events: none; }

      /*CARRITO*/

      .cart-fab-count {
        background: #fff;
        color: var(--marca-edzi);
        width: 24px; height: 24px;
        border-radius: 50%;
        font-size: 12px;
        display: flex; align-items: center; justify-content: center;
      }
      /*BLACK*/
     /*.cart-fab-count {
        background: var(--c-accent);
        color: #0a0a0a;
        width: 24px; height: 24px;
        border-radius: 50%;
        font-size: 12px;
        display: flex; align-items: center; justify-content: center;
      }*/
      .cart-fab-total { font-size: 15px; }

      /* bottom sheet */
      .sheet-backdrop {
        position: fixed; inset: 0; z-index: 760;
        background: rgba(0,0,0,.6);
        backdrop-filter: blur(4px);
        opacity: 0; pointer-events: none;
        transition: opacity .3s;
      }
      .sheet-backdrop.show { opacity: 1; pointer-events: auto; }

      .cart-sheet-mobile {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 770;
        background: var(--c-surface);
        border-radius: 20px 20px 0 0;
        border-top: 1px solid var(--c-border);
        padding: 0 20px 32px;
        transform: translateY(100%);
        transition: transform .35s cubic-bezier(.32,0,.15,1);
        max-height: 92svh; overflow-y: auto;
        scrollbar-width: none;
      }
      .cart-sheet-mobile::-webkit-scrollbar { display: none; }
      .cart-sheet-mobile.open { transform: translateY(0); }

      .sheet-handle-bar {
        width: 36px; height: 4px;
        background: var(--c-border);
        border-radius: 2px;
        margin: 12px auto 16px;
      }
      .sheet-header {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 16px;
      }
      .sheet-header h2 {
        font-family: var(--f-display);
        font-size: 1.1rem; font-weight: 700; color: var(--marca-principal);
      }
      .btn-sheet-close {
        width: 30px; height: 30px; border-radius: 50%;
        background: var(--c-surface2);
        color: var(--c-muted); font-size: 16px;
        display: flex; align-items: center; justify-content: center;
      }
    }
    @media (min-width: 992px) {
      .cart-fab, .sheet-backdrop, .cart-sheet-mobile { display: none !important; }
      .cart-sidebar { display: block; }
    }

    /* ============================================================
       GENERIC MODAL (product options)
    ============================================================ */
    .modal-content {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--r-modal);
      color: var(--c-text);
    }
    .modal-header {
      border-bottom: 1px solid var(--c-border);
      padding: 18px 20px;
    }
    .modal-title { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--marca-principal);}
    .btn-close { filter: invert(1) brightness(.6); }
    .modal-body { padding: 20px; }
    .modal-footer { border-top: 1px solid var(--c-border); padding: 16px 20px; }

    .modal-product-img {
      width: 100%; height: 180px;
      object-fit: cover;
      border-radius: 12px;
      margin-bottom: 20px;
      background: var(--c-surface2);
    }

    /* size rows */
    .size-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid var(--c-border);
      font-size: 13px;
    }
    .size-row:last-of-type { border-bottom: none; }
    .size-label { font-weight: 500; }
    .size-price { color: var(--c-accent); font-weight: 700; font-size: 14px; min-width: 64px; text-align: right; }
    .size-qty-ctrl { display: flex; align-items: center; gap: 8px; }

    /* option checkboxes */
    .opt-section-title {
      font-size: 11px; font-weight: 700;
      color: var(--c-muted); letter-spacing: .07em; text-transform: uppercase;
      margin: 16px 0 8px;
    }
    .opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .opt-chip input { display: none; }
    .opt-chip label {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 6px 13px;
      border-radius: var(--r-pill);
      font-size: 12px; font-weight: 500;
      background: var(--c-surface2);
      border: 1px solid var(--c-border);
      color: var(--c-muted);
      cursor: pointer;
      transition: all .2s;
    }
    .opt-chip input:checked + label {
      background: rgba(232,197,71,.12);
      border-color: var(--c-accent);
      color: var(--c-accent);
    }

    .modal-summary {
      display: flex; justify-content: space-between;
      background: var(--c-surface2);
      border: 1px solid var(--c-border);
      border-radius: 12px;
      padding: 12px 16px;
      margin-top: 16px;
      font-size: 13px;
    }
    .modal-summary-item { text-align: center; }
    .modal-summary-item .val {
      font-family: var(--f-display);
      font-size: 1.1rem; font-weight: 700;
      color: var(--c-accent);
    }
    .modal-summary-item .lbl { font-size: 11px; color: var(--c-muted); margin-top: 2px; }

    .btn-add-cart {
      width: 100%;
      background: var(--c-accent);
      color: #0a0a0a;
      font-family: var(--f-display);
      font-weight: 700; font-size: 14px;
      padding: 13px;
      border-radius: var(--r-pill);
      transition: transform .15s, box-shadow .15s;
    }
    .btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,197,71,.3); }
    .btn-add-cart:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

    /* ============================================================
       MAP SECTION
    ============================================================ */
    .map-section { padding: 48px 0; border-top: 1px solid var(--c-border); }
    .map-section h3 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
    .map-wrap {
      border-radius: var(--r-card);
      overflow: hidden;
      border: 1px solid var(--c-border);
      height: 260px;
    }
    .map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
    .map-note { font-size: 13px; color: var(--c-muted); margin-top: 10px; }
    .map-note i { color: var(--c-open); }

    /* ============================================================
       FOOTER
    ============================================================ */
    .site-footer {
      border-top: 1px solid var(--c-border);
      padding: 40px 0 20px;
    }
    .footer-logo img { width: 30%; margin-bottom: 12px; }
    .footer-name { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--marca-principal);}
    .footer-sub { font-size: 13px; color: var(--c-muted); margin: 4px 0 8px; }
    .footer-addr { font-size: 12px; color: var(--c-muted); }
    .footer-socials { display: flex; gap: 14px; margin-top: 12px; justify-content: center; /* Centrado horizontal */
  align-items: center;     /* Centrado vertical */}
    .footer-socials a { color: var(--c-muted); font-size: 18px; transition: color .2s; }
    .footer-socials a:hover { color: var(--c-accent); }

    .edzi-bar {
      border-top: 1px solid var(--c-border);
      padding: 14px 0;
      margin-top: 32px;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      font-size: 12px; color: var(--c-muted);
    }
    .edzi-bar img { height: 18px; opacity: .5; }
    .edzi-bar a { color: var(--c-accent); font-weight: 600; transition:.5s ease; }
    .edzi-bar a:hover {color: var(--marca-edzi);}

    /* ============================================================
       ADMIN PANEL (toggle estado)
    ============================================================ */
    .admin-fab {
      position: fixed; bottom: 88px; right: 20px; z-index: 800;
      width: 40px; height: 40px; border-radius: 50%;
      background: var(--c-surface2);
      border: 1px solid var(--c-border);
      color: var(--c-muted); font-size: 16px;
      display: flex; align-items: center; justify-content: center;
      box-shadow: var(--shadow-card);
      transition: all .2s;
      opacity: .5;
    }
    .admin-fab:hover { opacity: 1; color: var(--c-accent); border-color: var(--c-accent); }

    /* ============================================================
       UTILITIES
    ============================================================ */
    .shake {
      animation: shake .35s ease;
    }
    @keyframes shake {
      0%,100% { transform: translateX(0) }
      25%      { transform: translateX(-6px) }
      75%      { transform: translateX(6px) }
    }

    /* AOS replacement — simple fade on load */
    [data-reveal] {
      opacity: 0; transform: translateY(20px);
      transition: opacity .5s ease, transform .5s ease;
    }
    [data-reveal].visible { opacity: 1; transform: translateY(0); }

    