  @import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&family=Spline+Sans+Mono:wght@400;500&display=swap');/* ─── NUEVAS MÉTRICAS (Estilo Imagen) ─────────────────── */
  /* ── MÉTRICAS UNIFICADAS (Borde difuminado inward11) ───────── */
  .metric-card-v2 {
    background: linear-gradient(145deg, #2E7D32 0%, #1B5E20 100%);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    height: 100%;
    /* Efecto principal: borde difuminado hacia adentro */
    box-shadow: inset 0 0 32px rgba(132, 204, 22, 0.18), 0 8px 32px rgba(27, 94, 32, 0.5);
  }

  /* Borde gradiente fino que refuerza el efecto */
  .metric-card-v2::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.6) 0%, rgba(46, 125, 50, 0.2) 50%, rgba(132, 204, 22, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
  }

  .metric-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 40px rgba(132, 204, 22, 0.25), 0 12px 40px rgba(27, 94, 32, 0.6);
  }

  .metric-card-v2:hover::before {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.8) 0%, rgba(46, 125, 50, 0.4) 50%, rgba(132, 204, 22, 0.8) 100%);
  }

  /* Estructura interna */
  .metric-text { flex: 1; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
  .metric-title { font-size: 0.82rem; font-weight: 600; color: #F4F1EA; margin: 0; letter-spacing: -0.01em; opacity: 0.9; }
  .metric-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #FFFFFF; margin: 0; line-height: 1; }
  .metric-subtitle { font-size: 0.85rem; color: #EFE9DD; margin: 0; font-weight: 500; opacity: 0.85; }

  /* Lado derecho: Icono o Burbujas */
  .metric-visual { flex: 0 0 auto; margin-left: 12px; display: flex; align-items: center; justify-content: center; color: #84CC16; opacity: 0.95; }
  .metric-visual i { font-size: 3.2rem; filter: drop-shadow(0 0 12px rgba(132, 204, 22, 0.4)); }

  .mineral-bubbles { display: flex; gap: 6px; }
  .mineral-bubble {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(244, 241, 234, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #F4F1EA; font-size: 0.78rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
  }

  /* Ajuste específico para la burbuja central pequeña */
  .mineral-bubbles.center-layout {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    flex-direction: column; gap: 4px;
  }
  .mineral-bubbles.center-layout .mineral-bubble { margin: 0; }
  .mineral-bubbles.center-layout .mineral-bubble:nth-child(2) { margin-left: 12px; } /* Ca */
  .mineral-bubbles.center-layout .mineral-bubble:nth-child(3) { margin-left: -6px; margin-top: -4px; } /* P */



  /* ─── TOKENS ─────────────────────────────────────────────── */
  /* ─── TOKENS ACTUALIZADOS ─────────────────────────────────────────────── */
  :root {
  /* Backgrounds - Nueva paleta */
  --c-navy:      #2E7D32;   /* Verde natural vivo (oscuro) */
  --c-deep:      #1B5E20;   /* Verde natural más oscuro */
  --c-mid:       #388E3C;   /* Verde natural medio */
  --c-surface:   rgba(239, 233, 221, 0.85); /* Crema suave con transparencia */

  /* Verdes - Adaptados de la paleta */
  --c-blue:      #2E7D32;   /* Verde natural vivo */
  --c-blue-lt:   #84CC16;   /* Verde lima */
  --c-water:     #4CAF50;   /* Verde naturaleza claro */
  --c-teal:      #66BB6A;   /* Verde salvia */
  --c-teal-lt:   #A5D6A7;   /* Verde pastel */
  --c-sapphire:  #2E7D32;   /* Verde oliva */

  /* Tonos cálidos - Adaptados */
  --c-gold:      #84CC16;   /* Verde lima (como acento dorado) */
  --c-gold-lt:   #9CCC65;   /* Verde lima claro */
  --c-gold-pale: #C5E1A5;   /* Verde pálido */
  --c-champagne: #F4F1EA;   /* Blanco lino */

  /* UI - Optimizados para legibilidad */
  --c-bg:        #F4F1EA;   /* Blanco lino - fondo principal */
  --c-border:    rgba(46, 125, 50, 0.3); /* Verde natural con transparencia */
  --c-text:      #1B5E20;   /* Verde natural oscuro (texto principal) */
  --c-muted:     #558B2F;   /* Verde apagado (texto secundario) */
  --c-green:     #2E7D32;   /* Verde natural */
  --c-red:       #C62828;   /* Rojo (mantener para errores) */

  /* Gradients - Nueva paleta */
  --grad-gold:    linear-gradient(135deg, #84CC16 0%, #9CCC65 40%, #C5E1A5 60%, #84CC16 100%);
  --grad-blue:    linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
  --grad-navy:    linear-gradient(180deg, #1B5E20 0%, #2E7D32 100%);
  --grad-surface: linear-gradient(145deg, rgba(244,241,234,0.95) 0%, rgba(239,233,221,0.85) 100%);

  /* Borders gradient */
  --grad-border-gold:   linear-gradient(135deg, rgba(132,204,22,0.6) 0%, rgba(156,204,101,0.4) 50%, rgba(132,204,22,0.5) 100%);
  --grad-border-blue:   linear-gradient(135deg, rgba(46,125,50,0.6) 0%, rgba(76,175,80,0.4) 50%, rgba(46,125,50,0.5) 100%);
  --grad-border-subtle: linear-gradient(135deg, rgba(46,125,50,0.3) 0%, rgba(76,175,80,0.2) 50%, rgba(46,125,50,0.15) 100%);

  /* Radii */
  --r:      20px;
  --r-sm:   10px;
  --r-lg:   28px;

  /* Shadows */
  --sh:       0 8px 32px rgba(46, 125, 50, 0.1);
  --sh-md:    0 16px 48px rgba(46, 125, 50, 0.15);
  --sh-gold:  0 8px 32px rgba(132, 204, 22, 0.25);
  --sh-blue:  0 8px 32px rgba(46, 125, 50, 0.2);
  --sh-glass: inset 0 1px 1px rgba(255, 255, 255, 0.8);

  /* Sidebar width */
  --sw:   240px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Tipografía */
  /* Tipografía */
  --font-display: 'Cormorant Infant', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --font-mono:    'Spline Sans Mono', monospace;
  }

  /* ─── RESET ──────────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
  html { font-size: 15px; 
    -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale }
  body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  background-image:
  radial-gradient(ellipse 1200px 700px at 15% 0%, rgba(46, 125, 50, 0.08) 0%, transparent 60%),
  radial-gradient(ellipse 900px 600px at 85% 90%, rgba(132, 204, 22, 0.06) 0%, transparent 55%),
  radial-gradient(ellipse 600px 400px at 50% 50%, rgba(46, 125, 50, 0.04) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--c-text);
  line-height: 1.55;
  overflow-x: hidden;
  }

  button { cursor: pointer; font-family: var(--font-body) }
  input, select, textarea { font-family: var(--font-body) }
  img { max-width: 100% }
  ul { list-style: none }

  /* Scrollbar refinada */
  ::-webkit-scrollbar { width: 3px; height: 3px }
  ::-webkit-scrollbar-track { background: transparent }
  ::-webkit-scrollbar-thumb { background: rgba(139, 111, 71, 0.25); border-radius: 99px }
  ::-webkit-scrollbar-thumb:hover { background: rgba(139, 111, 71, 0.45) }

  /* ─── TRUCO BORDE GRADIENTE (clase utilitaria) ──────────── */
  .gradient-border {
    position: relative;
    background: var(--grad-surface);
    border-radius: var(--r);
    isolation: isolate;
  }
  .gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-border-subtle);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
  }
  .gradient-border-gold::before { background: var(--grad-border-gold) }
  .gradient-border-blue::before { background: var(--grad-border-blue) }

  /* ─── AUTH ───────────────────────────────────────────────── */
  #auth-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-navy);
    background-image:
      radial-gradient(ellipse 80% 60% at 20% 80%, rgba(85,107,47,.2) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,168,87,.15) 0%, transparent 55%);
  }
  .auth-wrap { width: 100%; max-width: 440px; padding: 20px }
  .auth-card {
    background: rgba(61, 46, 34, 0.6);
    border: 1px solid rgba(139, 111, 71, 0.15);
    border-radius: var(--r-lg);
    padding: 44px 40px;
    backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px rgba(0,0,0,.5), var(--sh-glass);
  }
  .auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 36px }
  .auth-brand-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0; overflow: hidden;
  }
  .auth-brand-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px }
  .auth-brand h1 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -.01em }
  .auth-brand p { font-size: .68rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .16em; margin-top: 2px }
  .auth-heading { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: #fff; margin-bottom: 4px; letter-spacing: -.01em }
  .auth-sub { font-size: .82rem; color: var(--c-muted); margin-bottom: 28px }
  .auth-field { margin-bottom: 14px }
  .auth-field label { display: block; font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px }
  .auth-field input {
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-sm); color: #fff; font-size: .9rem;
    outline: none; transition: .15s var(--ease);
  }
  .auth-field input::placeholder { color: rgba(255,255,255,.2) }
  .auth-field input:focus { border-color: var(--c-gold); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(139,111,71,.12) }
  .auth-btn {
    width: 100%; padding: 12px; margin-top: 10px;
    background: var(--grad-gold);
    border: none; border-radius: var(--r-sm); color: var(--c-navy);
    font-size: .88rem; font-weight: 700; letter-spacing: .04em;
    transition: .15s var(--ease);
    box-shadow: 0 4px 20px rgba(139,111,71,.3);
  }
  .auth-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(139,111,71,.45) }
  .auth-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none }
  .auth-error {
    background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.25);
    border-radius: var(--r-sm); padding: 10px 14px; color: #fca5a5;
    font-size: .8rem; margin-bottom: 14px; display: none;
  }
  .auth-link { text-align: center; margin-top: 18px; font-size: .8rem; color: rgba(255,255,255,.35) }
  .auth-link span { color: var(--c-gold-lt); cursor: pointer; font-weight: 600 }
  .auth-link span:hover { text-decoration: underline }
  .auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: rgba(255,255,255,.25); font-size: .75rem;
  }
  .auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08);
  }
  .auth-google-btn {
    width: 100%; padding: 11px; margin-top: 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-sm); color: #fff; font-size: .86rem; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; transition: .15s var(--ease);
  }
  .auth-google-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); transform: translateY(-1px) }
  .auth-google-btn:disabled { opacity: .5; cursor: not-allowed; transform: none }
  .auth-google-btn img { width: 20px; height: 20px }

  /* ─── LAYOUT ─────────────────────────────────────────────── */
  #app { display: none; min-height: 100vh }
  #app.on { display: flex }
  .sidebar {
    width: var(--sw); min-width: var(--sw);
    background: #F4F1EA;
  border-right: 1px solid rgba(46,125,50,.15);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100; transition: transform .22s var(--ease);
  }
  .sb-head {
    padding: 22px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    display: flex; align-items: center; gap: 12px;
  }
  .sb-logo {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0; overflow: hidden;
  }
  .sb-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px }
  .sb-logo-text h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #1A1208; letter-spacing: -.01em }
  .sb-logo-text p { font-size: .6rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .14em }
  .sb-close-btn {
    display: flex; /* ✅ Visible siempre (antes era none) */
    margin-left: auto; width: 30px; height: 30px;
    border-radius: 8px; border: 1px solid rgba(255,255,255,.12);
    background: transparent; color: #1B5E20;
    cursor: pointer; align-items: center; justify-content: center;
    font-size: 14px; transition: .13s var(--ease); flex-shrink: 0;
  }
  .sb-close-btn:hover { background: rgba(255,255,255,.1); color: #63e617 }
  .sb-nav { flex: 1; overflow-y: auto; padding: 14px 10px }
  .sb-section { margin-bottom: 20px }
  .sb-section-label {
    font-size: .58rem; font-weight: 600; color: rgba(255,255,255,.2);
    text-transform: uppercase; letter-spacing: .16em;
    padding: 0 8px; margin-bottom: 6px;
  }
  .sb-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 10px;
    font-size: .82rem; font-weight: 400; color: rgba(255,255,255,.42);
    cursor: pointer; transition: .13s var(--ease);
    margin-bottom: 2px; position: relative;
  }
  .sb-item:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8) }
  .sb-item.active {
    background: linear-gradient(135deg, rgba(139,111,71,.12), rgba(196,149,106,.06));
    color: var(--c-gold-lt);
  }
  .sb-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--grad-gold);
    border-radius: 0 3px 3px 0;
  }
  .sb-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0 }
  .sb-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--c-blue); color: #fff; border-radius: 10px;
    font-size: .62rem; font-weight: 700; display: none;
    align-items: center; justify-content: center;
  }
  .sb-foot { padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.05) }
  .sb-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; transition: .13s var(--ease) }
  .sb-user:hover { background: rgba(255,255,255,.05) }
  .sb-avatar {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--c-blue), var(--c-mid));
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .sb-user-info p { font-size: .8rem; font-weight: 500; color: #fff; line-height: 1.2 }
  .sb-user-info span { font-size: .65rem; color: rgba(255,255,255,.3) }

  /* ─── MAIN + TOPBAR ──────────────────────────────────────── */
  .main { margin-left: var(--sw); flex: 1; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; min-width: 0 }
  .topbar {
    background: var(--c-bg);
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(46,125,50,.15) !important;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: fixed;
    top: 0;
    left: var(--sw);
    right: 0;
    z-index: 200;
    justify-content: flex-start;
    
  }
  @media (max-width: 768px) {
    .topbar {
      left: 0;
      height: 56px;
      padding: 0 16px;
    }
  }
  .topbar-toggle {
    display: none; width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid var(--c-border); background: var(--c-surface);
    align-items: center; justify-content: center; font-size: 18px; color: var(--c-muted);
    flex-shrink: 0;
  }
  .topbar-title { display: none }
  .topbar-title h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .topbar-title p { font-size: .7rem; color: var(--c-muted) }
  .topbar-right { margin-left: auto; display: none; align-items: center; gap: 10px; flex-shrink: 0 }
  .topbar-search {
    display: none; align-items: center; gap: 8px; padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 999px;
    background: rgba(255,255,255,.03); width: 200px;
  }
  .topbar-search input { background: none; border: none; outline: none; flex: 1; font-size: .8rem; color: var(--c-text) }
  .topbar-search i { color: var(--c-muted); font-size: .85rem }
  .topbar-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 5px;
    border: 1px solid rgba(139,111,71,.2);
    border-radius: 999px; cursor: pointer;
    background: rgba(139,111,71,.06);
    backdrop-filter: blur(10px);
    transition: .15s var(--ease); white-space: nowrap;
  }
  .topbar-pill:hover { background: rgba(139,111,71,.12); border-color: rgba(139,111,71,.4) }
  .topbar-pill-av {
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-blue), var(--c-mid));
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .topbar-pill span { font-size: .8rem; font-weight: 500 }

  .topbar-logo {
    position: static;
    width: 120px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform .2s var(--ease);
    z-index: 1;
    margin-right: 8px;
  }
  .topbar-logo:hover {
    transform: scale(1.05);
  }


  .topbar-logo img { border-radius: 11px; width: 85%; height: 85%; object-fit: contain }
  .topbar-logo:hover { transform: scale(1.05) }
  .content {
    padding: 28px;
    padding-top: 88px;
    flex: 1;
    overflow-x: hidden;
    min-width: 0
  }
  @media (max-width: 768px) {
    .content {
      padding: 16px;
      padding-top: 76px;
      overflow-x: hidden
    }
  }
  .main {
    margin-left: var(--sw);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    min-width: 0
  }
  @media (max-width: 768px) {
    .main {
      margin-left: 0;
      padding-bottom: 80px;
      overflow-x: hidden
    }
  }
  .page { display: none }
  .page.on { display: block }

  /* ─── CARDS ──────────────────────────────────────────────── */
  .card {
    position: relative;
    background: var(--grad-surface) !important;
    border-radius: var(--r) !important;
    padding: 24px;
    overflow: hidden;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    isolation: isolate;
  }
  .card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-border-subtle);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
  }

  /* ─── MÉTRICAS CARDS (PREMIUM) ───────────────────────────── */
  .metric-card-premium {
    position: relative;
    background: linear-gradient(145deg, rgba(61,46,34,.75) 0%, rgba(28,20,16,.6) 100%);
    border-radius: 18px;
    padding: 20px 18px;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    isolation: isolate;
    overflow: hidden;
  }
  .metric-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1.5px;
    background: linear-gradient(
      135deg,
      rgba(139,111,71,.85) 0%,
      rgba(196,149,106,.5) 30%,
      rgba(139,168,87,.4) 60%,
      rgba(85,107,47,.7) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  .metric-card-premium::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(139,111,71,.9) 30%,
      rgba(196,149,106,1) 50%,
      rgba(139,111,71,.9) 70%,
      transparent 100%
    );
    border-radius: 18px 18px 0 0;
  }
  .metric-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(196,149,106,.25);
  }
  /* Variante azul (→ verde aguacate) */
  .metric-card-premium.blue::before {
    background: linear-gradient(
      135deg,
      rgba(85,107,47,.85) 0%,
      rgba(139,168,87,.6) 40%,
      rgba(139,111,71,.35) 80%,
      rgba(85,107,47,.6) 100%
    );
  }
  .metric-card-premium.blue::after {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(139,168,87,.9) 30%,
      rgba(168,197,110,1) 50%,
      rgba(139,168,87,.9) 70%,
      transparent 100%
    );
  }
  /* Variante teal (→ verde bosque) */
  .metric-card-premium.teal::before {
    background: linear-gradient(
      135deg,
      rgba(85,107,47,.85) 0%,
      rgba(139,168,87,.5) 40%,
      rgba(139,111,71,.25) 80%,
      rgba(85,107,47,.6) 100%
    );
  }
  .metric-card-premium.teal::after {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(85,107,47,.9) 30%,
      rgba(139,168,87,1) 50%,
      rgba(85,107,47,.9) 70%,
      transparent 100%
    );
  }
  /* Variante green (→ verde naturaleza) */
  .metric-card-premium.green::before {
    background: linear-gradient(
      135deg,
      rgba(85,107,47,.85) 0%,
      rgba(139,168,87,.5) 40%,
      rgba(139,111,71,.2) 80%,
      rgba(85,107,47,.6) 100%
    );
  }
  .metric-card-premium.green::after {
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(85,107,47,.9) 30%,
      rgba(139,168,87,1) 50%,
      rgba(85,107,47,.9) 70%,
      transparent 100%
    );
  }
  .metric-card-premium .metric-label {
    font-size: .62rem;
    font-weight: 600;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
  }
  .metric-card-premium .metric-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -.02em;
  }
  .metric-card-premium .metric-unit {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 400;
    color: var(--c-muted);
    margin-left: 2px;
  }
  .metric-card-premium .metric-sub {
    font-size: .74rem;
    color: var(--c-muted);
    margin-bottom: 12px;
  }
  .metric-card-premium .metric-tag {
    display: inline-flex;
    align-items: center;
    font-size: .6rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    letter-spacing: .05em;
  }

  /* ─── STAT CARDS ─────────────────────────────────────────── */
  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
  }
  .stat {
    position: relative;
    background: var(--grad-surface);
    border-radius: var(--r);
    padding: 20px 22px;
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    isolation: isolate;
    min-width: 0;
  }
  .stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-border-subtle);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  .stat::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
  }
  .stat.s-blue::after { background: var(--grad-blue) }
  .stat.s-gold::after { background: var(--grad-gold) }
  .stat.s-green::after { background: linear-gradient(90deg, var(--c-green), #8BA857) }
  .stat.s-red::after   { background: linear-gradient(90deg, var(--c-red), #C4887A) }
  .stat:hover { transform: translateY(-3px); box-shadow: var(--sh-md) }
  .stat-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 14px }
  .stat-ico.blue  { background: rgba(85,107,47,.15);  color: var(--c-blue-lt) }
  .stat-ico.gold  { background: rgba(139,111,71,.15); color: var(--c-gold-lt) }
  .stat-ico.green { background: rgba(85,107,47,.15); color: #8BA857 }
  .stat-ico.red   { background: rgba(196,136,122,.15);  color: #C4887A }
  .stat-val {
    font-family: var(--font-display);
    font-size: 1.9rem; font-weight: 600;
    letter-spacing: -.03em; line-height: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .stat-lbl { font-size: .74rem; color: var(--c-muted); margin-top: 5px; font-weight: 400 }
  .stat-sub { font-size: .68rem; color: var(--c-muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-border) }

  /* ─── BOTONES ────────────────────────────────────────────── */
  .btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: var(--r-sm);
    font-size: .8rem; font-weight: 600; border: none;
    transition: .15s var(--ease); white-space: nowrap; cursor: pointer;
    flex-shrink: 0; letter-spacing: .01em;
    font-family: var(--font-body);
  }
  .btn-primary { background: var(--c-mid); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.08) }
  .btn-primary:hover { background: rgba(61,46,34,.9); border-color: rgba(255,255,255,.15) }
  .btn-blue {
    background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-lt) 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(85,107,47,.3), inset 0 1px 0 rgba(255,255,255,.12) !important;
  }
  .btn-blue:hover {
    box-shadow: 0 8px 24px rgba(85,107,47,.45), inset 0 1px 0 rgba(255,255,255,.15) !important;
    transform: translateY(-1px);
  }
  .btn-gold {
    background: var(--grad-gold) !important;
    color: var(--c-navy) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(139,111,71,.3) !important;
  }
  .btn-gold:hover { box-shadow: 0 8px 24px rgba(139,111,71,.45) !important; transform: translateY(-1px) }
  .btn-ghost {
    background: transparent; color: var(--c-muted);
    border: 1px solid var(--c-border);
  }
  .btn-ghost:hover { background: rgba(255,255,255,.04); color: var(--c-text); border-color: rgba(255,255,255,.14) }
  .btn-danger { background: rgba(220,38,38,.15); color: #F87171; border: 1px solid rgba(220,38,38,.2) }
  .btn-danger:hover { background: rgba(220,38,38,.25); border-color: rgba(220,38,38,.4) }
  .btn-success { background: rgba(85,107,47,.15); color: #8BA857; border: 1px solid rgba(85,107,47,.25) }
  .btn-success:hover { background: rgba(85,107,47,.25) }
  .btn-whatsapp { background: #25D366; color: #fff }
  .btn-whatsapp:hover { background: #22c55e; box-shadow: 0 4px 14px rgba(37,211,102,.35) }
  .btn-sm { padding: 6px 12px; font-size: .73rem }
  .btn-icon { padding: 7px; border-radius: 8px }
  .btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important }
  .btn-confirm-order {
    background: linear-gradient(135deg, var(--c-teal) 0%, #556B2F 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(85,107,47,.3) !important;
  }
  .btn-confirm-order:hover { box-shadow: 0 10px 28px rgba(85,107,47,.5) !important; transform: translateY(-2px) }
  .btn-comprar {
    background: var(--grad-gold) !important;
    color: var(--c-navy) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(139,111,71,.3) !important;
  }
  .btn-comprar:hover { box-shadow: 0 10px 28px rgba(139,111,71,.5) !important; transform: translateY(-2px) }

  /* ─── BADGES DE ESTADO ───────────────────────────────────── */
  .badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 99px;
    font-size: .67rem; font-weight: 700; white-space: nowrap;
  }
  .badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8 }
  .b-recibido    { background: rgba(85,107,47,.18);  color: #B8D49C;  border: 1px solid rgba(85,107,47,.3) }
  .b-preparacion { background: rgba(139,111,71,.18); color: #C4956A;  border: 1px solid rgba(139,111,71,.3) }
  .b-listo       { background: rgba(85,107,47,.18); color: #A8C56E;  border: 1px solid rgba(85,107,47,.3) }
  .b-en_camino   { background: rgba(139,168,87,.18); color: #B8D49C;  border: 1px solid rgba(139,168,87,.3) }
  .b-entregado   { background: rgba(85,107,47,.22); color: #8BA857;  border: 1px solid rgba(85,107,47,.35) }
  .b-cancelado   { background: rgba(220,38,38,.18);  color: #FCA5A5;  border: 1px solid rgba(220,38,38,.3) }
.b-pago_pendiente { background: rgba(245, 158, 11, 0.18); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }


  /* ─── CAMPOS DE FORMULARIO ───────────────────────────────── */
  .field { margin-bottom: 15px }
  .field label { display: block; font-size: .68rem; font-weight: 600; color: var(--c-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .08em }
  .field input, .field select, .field textarea {
    width: 100%; padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-sm);
    font-size: .85rem; color: #fff;
    background: rgba(255,255,255,.07) !important;
    outline: none; transition: .13s var(--ease);
  }
  .field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.22) !important }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--c-gold) !important;
    background: rgba(255,255,255,.1) !important;
    box-shadow: 0 0 0 3px rgba(139,111,71,.12) !important;
  }
  .field textarea { resize: vertical; min-height: 80px }
  .field select option { background: var(--c-mid); color: #fff }
  .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }

  /* ─── MODALES ────────────────────────────────────────────── */
  .overlay {
    position: fixed; inset: 0;
    background: rgba(18, 12, 6, .7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 20px;
  }
  .overlay.on { display: flex }
  .modal {
    position: relative;
    background: var(--c-bg);
    border-radius: var(--r-lg);
    box-shadow: 0 40px 100px rgba(0,0,0,.6);
    width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
    isolation: isolate;
  }
  .modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139,111,71,.4) 0%, rgba(139,168,87,.2) 50%, rgba(139,111,71,.25) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  .modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 26px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .modal-head h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--c-text) }
  .modal-x {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1); background: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--c-muted); cursor: pointer; transition: .13s;
  }
  .modal-x:hover { background: rgba(255,255,255,.07); color: #fff }
  .modal-body { padding: 24px 26px }
  .modal-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 26px 22px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
  }

  /* ─── TOAST ──────────────────────────────────────────────── */
  #toasts { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px }
  .toast {
    display: flex; align-items: center; gap: 12px; padding: 12px 18px;
    border-radius: 12px;
    background: rgba(28,20,16,.96) !important;
    backdrop-filter: blur(20px) !important;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.07) !important;
    font-size: .8rem; font-weight: 500;
    min-width: 260px; animation: toastIn .2s var(--ease);
  }
  .toast.success { border-left: 3px solid var(--c-green) !important }
  .toast.error   { border-left: 3px solid var(--c-red) !important }
  .toast.info    { border-left: 3px solid var(--c-blue) !important }
  .toast.warn    { border-left: 3px solid var(--c-gold) !important }
  @keyframes toastIn {
    from { transform: translateX(110%); opacity: 0 }
    to   { transform: none; opacity: 1 }
  }

  /* ─── CHIPS ──────────────────────────────────────────────── */
  .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px }
  .chip {
    padding: 6px 14px; border-radius: 99px; font-size: .73rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
    color: var(--c-muted); cursor: pointer; transition: .13s; white-space: nowrap;
  }
  .chip.on {
    background: linear-gradient(135deg, rgba(139,111,71,.2), rgba(196,149,106,.1)) !important;
    border-color: rgba(139,111,71,.4) !important;
    color: var(--c-gold-lt) !important;
    box-shadow: 0 2px 12px rgba(139,111,71,.15);
  }
  .chip:hover:not(.on) { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12) }

  /* ─── EMPTY STATE ────────────────────────────────────────── */
  .empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 56px 20px;
    color: var(--c-muted); text-align: center;
  }
  .empty-ico { font-size: 2.8rem; margin-bottom: 12px; opacity: .25 }
  .empty h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--c-text); margin-bottom: 4px }

  /* ─── TABLAS ─────────────────────────────────────────────── */
  .tbl-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch }
  table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 520px }
  thead tr { border-bottom: 1px solid rgba(255,255,255,.07) }
  th {
    padding: 10px 12px; text-align: left;
    font-size: .62rem; font-weight: 700; color: var(--c-muted);
    text-transform: uppercase; letter-spacing: .1em;
    white-space: nowrap; overflow: hidden;
  }
  td {
    padding: 12px 12px; font-size: .8rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  tbody tr { transition: background .1s }
  tbody tr:hover {
    background: rgba(139,168,87,.04) !important;
    box-shadow: inset 3px 0 0 rgba(139,111,71,.3);
  }
  tbody tr:last-child td { border-bottom: none }

  /* Column widths */
  #ord-body td:nth-child(1) { width: 100px }
  #ord-body td:nth-child(2) { width: 140px }
  #ord-body td:nth-child(3) { max-width: 130px }
  #ord-body td:nth-child(4) { width: 90px }
  #ord-body td:nth-child(5) { width: 110px }
  #ord-body td:nth-child(6) { width: 110px }
  #ord-body td:nth-child(7) { width: 90px }
  #ord-body td:nth-child(8) { width: 120px }
  #clients-body td:nth-child(1) { width: 160px }
  #clients-body td:nth-child(2) { max-width: 160px }
  #clients-body td:nth-child(3) { width: 110px }
  #clients-body td:nth-child(4) { width: 90px }
  #clients-body td:nth-child(5) { width: 80px }
  #clients-body td:nth-child(6) { width: 140px }
  #drivers-body td:nth-child(1) { width: 160px }
  #drivers-body td:nth-child(2) { max-width: 160px }
  #drivers-body td:nth-child(3) { width: 110px }
  #drivers-body td:nth-child(4) { width: 100px }
  #drivers-body td:nth-child(5) { width: 80px }
  #drivers-body td:nth-child(6) { width: 120px }
  #supervisors-body td:nth-child(1), #vendedores-body td:nth-child(1), #admins-body td:nth-child(1) { width: 160px }
  #supervisors-body td:nth-child(2), #vendedores-body td:nth-child(2), #admins-body td:nth-child(2) { max-width: 160px }
  #supervisors-body td:nth-child(3), #vendedores-body td:nth-child(3), #admins-body td:nth-child(3) { width: 110px }
  #supervisors-body td:nth-child(4), #vendedores-body td:nth-child(4), #admins-body td:nth-child(4) { width: 80px }
  #supervisors-body td:nth-child(5), #vendedores-body td:nth-child(5), #admins-body td:nth-child(5) { width: 130px }
  #bottles-body td:nth-child(1) { width: 90px }
  #bottles-body td:nth-child(2) { width: 110px }
  #bottles-body td:nth-child(3) { width: 110px }
  #bottles-body td:nth-child(4) { width: 70px }
  #bottles-body td:nth-child(5) { width: 100px }
  #bottles-body td:nth-child(6) { max-width: 110px }
  #bottles-body td:nth-child(7) { width: 110px }
  #sectors-body td:nth-child(1) { min-width: 120px }
  #sectors-body td:nth-child(2) { width: 160px }
  #sectors-body td:nth-child(3) { width: 110px }
  #sectors-body td:nth-child(4) { width: 60px }
  .card table td:nth-child(1) { width: 90px }
  .card table td:nth-child(2) { min-width: 100px }
  .card table td:nth-child(3) { width: 90px }
  .card table td:nth-child(4) { width: 110px }
  .card table td:nth-child(5) { width: 100px }
  #my-orders-body td { white-space: nowrap }
  .code {
    font-family: var(--font-mono); font-size: .76rem;
    background: rgba(139,111,71,.1); padding: 3px 8px;
    border-radius: 6px; white-space: nowrap;
    border: 1px solid rgba(139,111,71,.15); color: var(--c-gold-pale);
  }

  /* ─── PH (Page Header) ───────────────────────────────────── */
  .ph {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
  }
  .ph h2 {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 600;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #643204 0%, rgba(83, 43, 6, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .ph p { font-size: .78rem; color: var(--c-muted); margin-top: 2px }

  /* ─── SEARCH BOX ─────────────────────────────────────────── */
  .search-box {
    display: flex; align-items: center; gap: 8px; padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 999px;
    background: rgba(255,255,255,.03); margin-bottom: 18px; width: 100%;
  }
  .search-box input { background: none; border: none; outline: none; flex: 1; font-size: .8rem; color: var(--c-text); min-width: 0 }
  .search-box i { color: var(--c-muted); font-size: .85rem; flex-shrink: 0 }
  .search-box:focus-within { border-color: rgba(139,111,71,.25) }

  /* ─── TIENDA ─────────────────────────────────────────────── */
  /* ─── TIENDA ─────────────────────────────────────────────── */
.prod-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 24px;
}

.prod-card {
  position: relative;
  background: transparent; /* ✅ Fondo transparente */
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; 
  flex-direction: column;
  padding: 0;
  isolation: isolate;
  min-height: 480px; /* ✅ Altura fija del contenedor */
}

.prod-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--grad-border-subtle);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.prod-card:hover { 
  box-shadow: 0 20px 50px rgba(46, 125, 50, 0.2), 0 0 0 1px rgba(46, 125, 50, 0.2); 
  transform: translateY(-4px);
}

.prod-img {
  height: 300px; /* ✅ Altura fija de 300px */
  width: 100%; /* ✅ Ancho completo */
  background: var(--c-bg);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 4rem; 
  margin: 0; 
  padding: 0;
  overflow: hidden;
}

.prod-img img,
.prod-img video { 
  width: 100%; 
  height: 300px; 
  object-fit: contain; 
  display: block;
}

.prod-info { 
  padding: 20px; 
  flex: 1; 
  display: flex; 
  flex-direction: column;
  gap: 12px;
}

.prod-name { 
  font-family: var(--font-display); 
  font-size: 1.5rem; /* ✅ Más grande */
  font-weight: 600; 
  margin: 0; 
  line-height: 1.2; 
  color: var(--c-text);
}

.prod-price { 
  font-family: var(--font-display); 
  font-size: 1.4rem; /* ✅ Más grande */
  font-weight: 600; 
  color: var(--c-gold-lt); 
  margin-bottom: 0px;
}

.prod-name {
  margin-bottom: 0px !important;
  font-size: 1.4rem;
  line-height: 1.2 !important;
   text-align: center;
}

.prod-price {
  margin-bottom: 0px !important;
  font-size: 1.4rem !important;
  text-align: center;
}

btn-comprar {
  padding: 10px 14px !important;
  font-size: 1rem !important;
  margin-top: 4px !important;}

.prod-qty {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  background: rgba(255,255,255,.04); 
  border-radius: 14px; 
  padding: 12px 14px; 
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.06);
}

.qty-btn {
  width: 38px; 
  height: 38px; 
  border-radius: 11px; 
  border: 1px solid rgba(46, 125, 50, 0.25);
  background: rgba(46, 125, 50, 0.08); 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 20px; 
  font-weight: 700; 
  color: var(--c-green);
  transition: .15s;
  cursor: pointer;
}

.qty-btn:hover { 
  background: var(--c-green); 
  color: #fff; 
  border-color: var(--c-green); 
  transform: scale(1.05);
}

.qty-num { 
  font-family: var(--font-display); 
  font-size: 1.25rem; /* ✅ Más grande */
  font-weight: 600; 
  min-width: 36px; 
  text-align: center;
  color: var(--c-text);
}

/* ─── BOTÓN COMPRAR UNIFICADO ─────────────────────────────────────────── */
.btn-comprar {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem; /* ✅ Más grande */
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #2E7D32 !important; /* ✅ Verde sólido */
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
  margin-top: 12px;
}

.btn-comprar:hover { 
  background: #1B5E20 !important;
  box-shadow: 0 8px 28px rgba(46, 125, 50, 0.5) !important; 
  transform: translateY(-2px);
}

/* Eliminar estilos específicos de .prod-card.otros */
.prod-card.otros::before {
  background: var(--grad-border-subtle);
}

.prod-card.otros:hover { 
  box-shadow: 0 20px 50px rgba(46, 125, 50, 0.2), 0 0 0 1px rgba(46, 125, 50, 0.2) !important;
}

.prod-card.otros .prod-price { 
  color: var(--c-gold-lt) !important;
   font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #558B2F !important;
  text-align: center !important;
}

.prod-card.otros .prod-name { 
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #1B5E20 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  text-align: center !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


.prod-card.otros .qty-btn { 
  color: var(--c-green) !important; 
  border-color: rgba(46, 125, 50, 0.25) !important;
}

.prod-card.otros .qty-btn:hover { 
  background: var(--c-green) !important; 
  color: #fff !important;
}
  /* ─── CARRITO ────────────────────────────────────────────── */
  .cart-float {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--c-teal), var(--c-blue));
    color: #fff; border-radius: 999px;
    padding: 14px 28px; display: none; align-items: center; gap: 16px;
    box-shadow: 0 8px 40px rgba(139,168,87,.35); z-index: 200;
    cursor: pointer; transition: .15s var(--ease);
    border: 1px solid rgba(255,255,255,.15);
  }
  .cart-float.on { display: flex }
  .cart-float:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 14px 50px rgba(139,168,87,.5) }
  .cart-float-count {
    width: 24px; height: 24px;
    background: rgba(255,255,255,.25);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 800;
  }
  .cart-panel {
    position: fixed;
    z-index: 9999 !important;
    bottom: 0; left: 0; right: 0;
    height: 92vh;
    max-height: 92vh;
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(180deg, rgba(28,20,16,.99) 0%, rgba(18,12,6,1) 100%) !important;
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(139,111,71,.18);
    border-left: none;
    box-shadow: 0 -12px 60px rgba(0,0,0,.7);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32,0,.67,0) !important;
    overflow: hidden;
  }
  .cart-panel.on {
    transform: translateY(0) !important;
    transition: transform .35s cubic-bezier(.22,1,.36,1) !important;
  }
  .cart-drag-handle {
    width: 44px; height: 5px;
    background: rgba(255,255,255,.18);
    border-radius: 99px;
    margin: 10px auto 0;
    flex-shrink: 0;
    cursor: grab;
    transition: background 1.2s;
  }
  .cart-drag-handle:active { cursor: grabbing; background: rgba(255,255,255,.35); }
  .cart-head {
    padding: 12px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .cart-head h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
  }
  .cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05) }
  .cart-item:last-child { border-bottom: none }
  .cart-item-ico {
    width: 44px; height: 44px;
    background: rgba(61,46,34,.6);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.07);
  }
  .cart-item-name { font-size: .82rem; font-weight: 500 }
  .cart-item-price { font-size: .75rem; color: var(--c-muted) }
  .cart-item-total { margin-left: auto; font-size: .88rem; font-weight: 700; color: var(--c-gold-lt) }
  .cart-total-row { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 16px }
  #cart-sector, #cart-address {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: white !important; font-size: .9rem; padding: 12px;
  }


  /* ═══ FIX: Select de sector en carrito con mismos colores que otros inputs ═══ */
#cart-sector {
  background: var(--c-bg) !important;
  color: var(--c-text) !important;
  border: 1.5px solid var(--c-border) !important;
  border-radius: var(--r-sm) !important;
  padding: 12px 14px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5E20' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px !important;
}

#cart-sector:focus {
  outline: none !important;
  border-color: var(--c-green) !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

#cart-sector option {
  background: var(--c-bg) !important;
  color: var(--c-text) !important;
  padding: 8px !important;
}

/* Para que el placeholder "Selecciona tu sector" se vea con el color correcto */
#cart-sector:invalid {
  color: var(--c-muted) !important;
}

  .ldot {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.08); display: flex; align-items: center;
    justify-content: center; font-size: 13px; transition: .15s;
    border: 1px solid rgba(255,255,255,.06);
  }
  .ldot.on { background: var(--grad-gold); box-shadow: 0 4px 14px rgba(139,111,71,.4); border-color: transparent }

  /* ─── DELIVERY CARDS ─────────────────────────────────────── */
  .delivery-card {
    position: relative;
    text-align: left; 
    align-items: flex-start;
    background: var(--grad-surface);
    border-radius: var(--r); padding: 20px; margin-bottom: 14px;
    transition: .15s; isolation: isolate;
  }
  .delivery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-border-subtle);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  .delivery-card:hover { box-shadow: var(--sh-md) }
  .delivery-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px }
  .delivery-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px }
  .delivery-info-item p { font-size: .64rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px }
  .delivery-info-item strong { font-size: .82rem; font-weight: 500 }


 /* Alinear todo el texto a la izquierda en delivery-card */
@media (max-width: 768px) {
  .delivery-card,
  .delivery-card * {
    text-align: left !important;
  }
  
  .delivery-card-head {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  
  .delivery-info {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .delivery-info-item {
    text-align: left;
  }
  
  .delivery-info-item p,
  .delivery-info-item strong {
    text-align: left !important;
  }
  
  /* Alinear badges y botones a la izquierda */
  .delivery-card .badge,
  .delivery-card .btn {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  
  /* Alinear los botones de acción */
  .delivery-card > div:last-child,
  .delivery-card > div[style*="display:flex"] {
    justify-content: flex-start !important;
  }
}
  /* ─── CHARTS ─────────────────────────────────────────────── */
  .charts-row { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px }
  @media (min-width: 1100px) { .charts-row { grid-template-columns: 1fr 300px } }
  .chart-card {
    position: relative;
    background: var(--grad-surface);
    border-radius: var(--r); padding: 22px; overflow: hidden;
    isolation: isolate;
  }
  .chart-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-border-subtle);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  .chart-card h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 600; margin-bottom: 4px }
  .chart-card p { font-size: .72rem; color: var(--c-muted); margin-bottom: 18px }
  .bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; overflow: hidden }
  .bar-g { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0 }
  .bar-fill { width: 100%; border-radius: 5px 5px 0 0; min-height: 4px; transition: height .5s var(--ease) }
  .bar-fill.cur { background: linear-gradient(180deg, var(--c-gold-lt), rgba(139,111,71,.3)) }
  .bar-fill.prv { background: linear-gradient(180deg, var(--c-blue-lt), rgba(85,107,47,.2)); opacity: .6 }
  .bar-lbl { font-size: .62rem; color: var(--c-muted); white-space: nowrap }
  .donut-wrap { display: flex; flex-direction: column; align-items: center }
  .donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center }
  .donut-center strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em }
  .donut-center span { font-size: .65rem; color: var(--c-muted) }
  .donut-leg { width: 100%; margin-top: 14px }
  .donut-leg-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .73rem }
  .donut-leg-item:last-child { border-bottom: none }
  .dleg-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0 }
  .dleg-name { display: flex; align-items: center; gap: 8px; color: var(--c-muted) }

/* ═══ FIX: dialog-overlay usado por Fotos de Aris ═══ */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 6, .7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}  .dialog-container {
    position: relative;
    background: var(--c-bg);
    border-radius: var(--r-lg);
    box-shadow: 0 40px 100px rgba(0,0,0,.6);
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    display: flex; flex-direction: column;
    isolation: isolate;
  }
  .dialog-container::before {
    content: '';
    position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(139,111,71,.35), rgba(139,168,87,.2), rgba(139,111,71,.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  }
  .dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 18px; border-bottom: 1px solid rgba(255,255,255,.06) }
  .dialog-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 10px }
  .dialog-close { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: none; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--c-muted); cursor: pointer; transition: .13s }
  .dialog-close:hover { background: rgba(255,255,255,.07) }
  .dialog-body { padding: 24px 26px; flex: 1 }
  .dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap }

  /* ─── INFO BOXES ─────────────────────────────────────────── */
  .info-box {
    background: rgba(85,107,47,.1); border: 1px solid rgba(85,107,47,.2);
    border-radius: var(--r-sm); padding: 12px 14px; font-size: .8rem;
    color: #B8D49C; margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
  }
  .info-box i { margin-top: 2px; flex-shrink: 0 }
  .warn-box {
    background: rgba(139,111,71,.1); border: 1px solid rgba(139,111,71,.2);
    border-radius: var(--r-sm); padding: 12px 14px; font-size: .8rem;
    color: var(--c-gold-lt); margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
  }

  /* ─── PROMO BANNER ───────────────────────────────────────── */
  .promo-banner {
    background: linear-gradient(135deg, rgba(139,111,71,.2), rgba(196,149,106,.12));
    border: 1px solid rgba(139,111,71,.3);
    border-radius: var(--r); padding: 16px 20px; color: #fff;
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(139,111,71,.15);
    flex-wrap: wrap;
  }
  .promo-banner-ico { font-size: 2rem; flex-shrink: 0 }
  .promo-banner h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 600; margin-bottom: 2px; color: var(--c-gold-pale) }
  .promo-banner p { font-size: .76rem; color: rgba(255,255,255,.65) }

  /* ─── HEALTH BANNER ──────────────────────────────────────── */
  .health-banner {
    background: linear-gradient(135deg, rgba(28,20,16,.9), rgba(61,46,34,.7));
    border-radius: var(--r); padding: 18px 22px; color: #fff; margin-bottom: 20px;
    border-left: 3px solid var(--c-water);
    border-top: 1px solid rgba(139,168,87,.1);
    border-right: 1px solid rgba(139,168,87,.06);
    border-bottom: 1px solid rgba(139,168,87,.06);
  }
  .health-banner h4 { font-family: var(--font-display); font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--c-teal-lt) }
  .health-banner p { font-size: .76rem; opacity: .65; line-height: 1.65 }

  /* ─── STATUS BAR ─────────────────────────────────────────── */
  #status-bar {
    display: none !important;
    visibility: hidden !important;
  }
  #status-bar {
    transition: transform 0.35s cubic-bezier(.22,1,.36,1),
                box-shadow 0.35s ease,
                top 0.35s ease;
  }
  #status-bar.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(0) !important;
    animation: statusSlideDown 0.35s cubic-bezier(.22,1,.36,1) forwards;
    box-shadow: 0 4px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(139,168,87,.15);
  }
  @keyframes statusSlideDown {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  body.has-status-bar.scrolled .main {
    padding-top: 0;
  }
  #status-bar.on {
    display: flex;
    transform: translateY(0);
  }
  #status-bar.on.sticky {
    transform: translateY(0);
    box-shadow: 0 6px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(139,168,87,.2);
    animation: statusSlideDown 0.4s cubic-bezier(.22,1,.36,1);
  }
  @keyframes statusSlideDown {
    from { transform: translateY(-100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  body.has-status-bar .main { padding-top: 70px }
  @media (max-width: 768px) {
    #status-bar { padding: 8px 16px }
  }
  .status-bar-top { display: flex; align-items: center; justify-content: space-between; font-size: .8rem }
  .status-bar-code { font-family: var(--font-mono); font-size: .72rem; color: var(--c-gold-lt) }
  .status-bar-steps { display: flex; align-items: center; gap: 0; width: 100%; margin-top: 2px }
  .status-step { flex: 1; height: 3px; background: rgba(255,255,255,.12); border-radius: 99px; transition: background .4s }
  .status-step.done { background: var(--grad-gold) }
  .status-step-labels { display: flex; justify-content: space-between; margin-top: 4px; font-size: .6rem; color: rgba(255,255,255,.35) }

  /* ─── BOTELLONES ─────────────────────────────────────────── */
  .bottle-badge-alert { display: inline-flex; align-items: center; gap: 5px; background: var(--c-red); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: .65rem; font-weight: 700 }
  .bottle-banner {
    background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.2);
    border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px;
    display: flex; align-items: flex-start; gap: 12px;
  }
  .bottle-banner-ico { font-size: 1.6rem; flex-shrink: 0 }
  .bottle-banner h4 { font-family: var(--font-display); font-size: .88rem; font-weight: 600; color: #F87171; margin-bottom: 3px }
  .bottle-banner p { font-size: .76rem; color: rgba(248,113,113,.7) }
  .bottle-status-active   { background: rgba(85,107,47,.15); color: #A8C56E; border: 1px solid rgba(85,107,47,.25) }
  .bottle-status-expiring { background: rgba(139,111,71,.15); color: var(--c-gold-lt); border: 1px solid rgba(139,111,71,.25) }
  .bottle-status-expired  { background: rgba(220,38,38,.15);  color: #F87171; border: 1px solid rgba(220,38,38,.25) }
  .bottle-status-retired  { background: rgba(255,255,255,.06); color: var(--c-muted); border: 1px solid rgba(255,255,255,.08) }



  /* ─── PROMO MODAL ────────────────────────────────────────── */
  .promo-modal-hero { text-align: center; padding: 20px 0 }
  .promo-modal-hero .promo-icon { font-size: 4rem; margin-bottom: 12px }
  .promo-modal-hero h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--c-gold-lt); margin-bottom: 6px }
  .promo-modal-hero p { font-size: .82rem; color: var(--c-muted) }

  /* ─── UPLOAD ─────────────────────────────────────────────── */
  #prod-preview { max-height: 100px; border-radius: 8px; margin-top: 8px; display: none; border: 1px solid rgba(255,255,255,.08) }
  .file-upload-area {
    border: 1px dashed rgba(139,111,71,.25); border-radius: var(--r-sm);
    padding: 14px; text-align: center; cursor: pointer; transition: .13s var(--ease);
    background: rgba(139,111,71,.04);
  }
  .file-upload-area:hover { border-color: rgba(139,111,71,.5); background: rgba(139,111,71,.08) }
  .file-upload-area input[type=file] { display: none }
  #din-preview { max-height: 160px; border-radius: 10px; margin-top: 10px; display: none; border: 1px solid rgba(255,255,255,.08); width: 100%; object-fit: cover }
  .din-file-area {
    border: 1px dashed rgba(139,111,71,.25); border-radius: var(--r-sm);
    padding: 16px; text-align: center; cursor: pointer; transition: .13s var(--ease);
    background: rgba(139,111,71,.04);
  }
  .din-file-area:hover { border-color: rgba(139,111,71,.5); background: rgba(139,111,71,.08) }
  .din-file-area input[type=file] { display: none }

  /* ─── PBAR ───────────────────────────────────────────────── */
  .pbar { height: 5px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden }
  .pbar-fill { height: 100%; border-radius: 99px; background: var(--grad-gold); transition: width .5s var(--ease) }

  /* ─── SECTOR INACTIVE ────────────────────────────────────── */
  .sector-inactive-msg {
    background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.2);
    border-radius: var(--r-sm); padding: 10px 14px; color: #F87171;
    font-size: .8rem; font-weight: 600; margin-top: 8px; display: none;
    align-items: center; gap: 8px;
  }

  /* ─── WA FLOAT ───────────────────────────────────────────── */
  .wa-float {
    position: fixed; bottom: 100px; right: 20px; z-index: 1002;
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff; border: none;
    display: none !important;
    font-size: 28px; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    cursor: pointer; transition: all .3s var(--ease);
    transform: translateY(0);
  }
  .wa-float::before {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2.5s infinite;
  }
  .wa-float:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #28e56b 0%, #0f7a6b 100%);
  }
  @keyframes wa-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
  }
  .wa-float-label {
    position: absolute; right: 115%; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    color: #111; padding: 8px 14px; border-radius: 10px;
    font-size: 0.82rem; font-weight: 600; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all .3s var(--ease);
    transform-origin: right center;
    border: 1px solid rgba(0,0,0,0.05);
  }
  .wa-float-label::after {
    content: ''; position: absolute; top: 50%; right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.95);
  }
  .wa-float:hover .wa-float-label {
    opacity: 1; visibility: visible; transform: translateY(-50%) translateX(-8px);
  }
  @media (max-width: 768px) {
    .wa-float { bottom: 160px; right: 16px; width: 50px; height: 50px; font-size: 24px; }
    .wa-float::before { display: none; }
    .wa-float-label { display: none; }
  }

  /* ─── CARRUSEL PROMO ─────── */
  .promo-carousel-container {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 30px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .promo-carousel-container::-webkit-scrollbar { display: none }
  .promo-slide {
    flex: 0 0 85%;
    max-width: 420px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    background: var(--c-bg);
    transition: transform 2s cubic-bezier(0.25,1,.5,1), box-shadow 2s ease, opacity 2s ease;
    transform: scale(0.92);
    opacity: 0.6;
    cursor: pointer;
  }
  .promo-slide:first-child {
    flex: 0 0 90%;
    max-width: 520px;
    height: 220px;
    transform: scale(1);
    opacity: 1;
  }
  .promo-slide.active {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
  }
  .promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  .promo-slide:hover img {
    transform: scale(1.05);
  }
  .promo-slide:first-child img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .promo-slide:not(:first-child) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .promo-carousel-container .promo-slide:nth-child(2) {
    flex: 0 0 90%;
    max-width: 480px;
    height: 220px;
    border-radius: 20px;
  }
  .promo-carousel-container .promo-slide:nth-child(2) img {
    object-fit: contain;
    object-position: center;
  }

  /* ═══ MODALES DE BANNERS ═══ */
  #m-banner-agua, #m-banner-muerta {
    padding: 0 !important;
  }
  #m-banner-agua .modal,
  #m-banner-muerta .modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  @media (max-width: 768px) {
    #m-banner-agua .modal,
    #m-banner-muerta .modal {
      background: var(--c-navy);
      border: none;
    }
    #m-banner-agua .modal-body,
    #m-banner-muerta .modal-body {
      padding: 20px 24px 40px 24px !important;
      flex: 1;
    }
    #m-banner-agua .modal-x,
    #m-banner-muerta .modal-x {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 100;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(4px);
      border: 1px solid rgba(255,255,255,0.2);
      color: white;
      width: 40px;
      height: 40px;
    }
    #m-banner-agua .modal-head,
    #m-banner-muerta .modal-head {
      padding-top: 60px !important;
      padding-bottom: 10px !important;
    }
  }
  #m-banner-agua .modal,
  #m-banner-muerta .modal {
    max-width: 600px !important;
    width: 95% !important;
  }
  #m-banner-agua .modal-body,
  #m-banner-muerta .modal-body {
    padding: 24px 32px 32px 32px !important;
  }
  #m-banner-agua .modal-head,
  #m-banner-muerta .modal-head {
    padding: 20px 32px 10px 32px !important;
  }
  .mineral-modal-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: justify !important;
  }
  .mineral-benefit-item {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }
  @media (max-width: 768px) {
    #m-banner-agua .modal,
    #m-banner-muerta .modal {
      max-width: 100% !important;
      border-radius: 0 !important;
      height: 100% !important;
    }
    #m-banner-agua .modal-body,
    #m-banner-muerta .modal-body {
      padding: 20px 24px !important;
    }
  }

  /* ─── BOTTOM NAV ─────────────────────────────────────────── */


  /* ─── RIPPLE ─────────────────────────────────────────────── */
  @keyframes gold-ripple {
    0%   { box-shadow: 0 0 0 0 rgba(139,111,71,.35) }
    70%  { box-shadow: 0 0 0 20px rgba(139,111,71,0) }
    100% { box-shadow: 0 0 0 0 rgba(139,111,71,0) }
  }
  .ripple-container { border-radius: 50%; animation: gold-ripple 2s infinite; display: flex; align-items: center; justify-content: center }

  /* ═══ #inline-order-status COMPACTO ═══ */
  #inline-order-status {
    padding: 16px 18px 14px !important;
  }
  .ios-top-section {
    gap: 14px !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
  }
  .ios-bottle-icon {
    width: 54px !important;
    height: 54px !important;
  }
  .ios-main-title {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
    line-height: 1.15 !important;
  }
  .ios-main-sub {
    font-size: .78rem !important;
    margin-bottom: 8px !important;
  }
  .ios-time-pill {
    padding: 5px 12px !important;
    border-radius: 10px !important;
  }
  .ios-time-pill-label span:first-child {
    font-size: .54rem !important;
  }
  .ios-time-pill-label span:last-child {
    font-size: 1rem !important;
  }
  #ios-code {
    font-size: .66rem !important;
    padding: 3px 8px !important;
  }
  .ios-bottle-circle {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 6px !important;
    border-width: 1.5px !important;
  }
  .ios-bottle-circle svg {
    width: 24px !important;
    height: 24px !important;
  }
  .ios-bottle-circle.active {
    box-shadow:
      0 0 0 4px rgba(168, 197, 110, 0.12),
      0 0 14px rgba(168, 197, 110, 0.4) !important;
  }
  .ios-step-block:not(:last-child)::after {
    top: 21px !important;
  }
  .ios-step-label {
    font-size: .64rem !important;
  }
  .ios-step-sublabel {
    display: none !important;
  }
  @media (max-width: 768px) {
    #inline-order-status {
      padding: 12px 14px 10px !important;
    }
    .ios-bottle-icon {
      width: 42px !important;
      height: 42px !important;
    }
    .ios-main-title {
      font-size: 1.02rem !important;
    }
    .ios-main-sub {
      font-size: .7rem !important;
      margin-bottom: 6px !important;
    }
    .ios-bottle-circle {
      width: 36px !important;
      height: 36px !important;
    }
    .ios-bottle-circle svg {
      width: 20px !important;
      height: 20px !important;
    }
    .ios-step-block:not(:last-child)::after {
      top: 18px !important;
    }
    .ios-step-label {
      font-size: .58rem !important;
    }
  }
  @media (max-width: 380px) {
    .ios-top-section {
      gap: 10px !important;
    }
    .ios-bottle-icon {
      width: 38px !important;
      height: 38px !important;
    }
  }


  /* ─── LOADER PREMIUM ─────────────────────────────────────── */
  #minerapp-loader {
    position: fixed; inset: 0; z-index: 99999; background: var(--c-navy);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    transition: opacity .6s ease, visibility .6s;
  }
  .loader-drop {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--c-gold-lt), var(--c-gold));
    border-radius: 0 50% 50% 50%;
    transform: rotate(-45deg); margin-bottom: 28px;
    box-shadow: 0 0 40px rgba(139,111,71,.4);
    animation: loaderPulse 1.6s ease-in-out infinite;
  }
  @keyframes loaderPulse {
    0%,100% { transform: rotate(-45deg) scale(1); box-shadow: 0 0 40px rgba(139,111,71,.35) }
    50%      { transform: rotate(-45deg) scale(1.1); box-shadow: 0 0 60px rgba(139,111,71,.6) }
  }
  .loader-brand { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; letter-spacing: -.01em; margin-bottom: 6px }
  .loader-sub   { font-size: .68rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 32px }
  .loader-bar-wrap { width: 160px; height: 2px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden }
  .loader-bar-fill {
    height: 100%; width: 0%; border-radius: 99px;
    background: var(--grad-gold);
    animation: loaderFill 2.4s cubic-bezier(.4,0,.2,1) forwards;
  }
  @keyframes loaderFill { to { width: 100% } }
  .loader-dots { display: flex; gap: 6px; margin-top: 18px }
  .loader-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(139,111,71,.35); animation: loaderDot 1.2s ease-in-out infinite }
  .loader-dot:nth-child(2) { animation-delay: .2s }
  .loader-dot:nth-child(3) { animation-delay: .4s }
  @keyframes loaderDot { 0%,100% { background: rgba(139,111,71,.2); transform: scale(.8) } 50% { background: var(--c-gold-lt); transform: scale(1.3) } }

  /* ─── CARRUSEL PRINCIPAL ─────────────────────────────────── */
  .carousel-wrap {
    margin-top: 32px;
    border-radius: var(--r-lg);
    overflow: visible;
    position: relative;
    padding: 10px 0;
  }
  .carousel-track {
    display: flex;
    transition: transform 2s cubic-bezier(.25,1,.5,1);
    height: 540px;
    margin: -10px 0;
  }
  .carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    transition: transform 2s cubic-bezier(.25,1,.5,1);
    transform: scale(1);
  }
  .carousel-slide.active {
    transform: scale(1.06);
    z-index: 2;
  }
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,20,16,.92) 0%, rgba(28,20,16,.4) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  }
  .carousel-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 6px; letter-spacing: -.01em }
  .carousel-desc { font-size: .82rem; color: rgba(255,255,255,.65); max-width: 60% }
  .carousel-nav { position: absolute; bottom: 20px; right: 28px; display: flex; gap: 8px }
  .carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; transition: all .3s }
  .carousel-dot.active { background: var(--c-gold-lt); width: 28px; border-radius: 4px }
  .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(28,20,16,.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(139,111,71,.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-gold-lt); font-size: 1rem; cursor: pointer; transition: all .2s; z-index: 2;
  }
  .carousel-arrow:hover { background: rgba(139,111,71,.15); border-color: rgba(139,111,71,.5); transform: translateY(-50%) scale(1.05) }
  .carousel-arrow.prev { left: 16px }
  .carousel-arrow.next { right: 16px }
  @media (max-width: 768px) {
    .carousel-track { height: 280px }
    .carousel-title { font-size: 1.1rem }
    .carousel-desc { font-size: .76rem; max-width: 75% }
    .carousel-arrow { width: 34px; height: 34px; font-size: .85rem }
  }

  /* ─── DELIVERY TIME ESTIMATE ─────────────────────────────── */
  #delivery-time-est { font-size: .78rem; color: var(--c-muted); padding: 6px 10px; background: rgba(139,168,87,.07); border-radius: var(--r-sm); margin-top: 6px; display: none; border: 1px solid rgba(139,168,87,.15) }

  /* ─── CONF CODE INPUT ────────────────────────────────────── */
  #conf-code-input {
    background: rgba(255,255,255,.07) !important; color: #fff !important;
    border: 1.5px solid rgba(139,111,71,.2) !important; caret-color: var(--c-gold);
  }
  #conf-code-input:focus { border-color: var(--c-gold) !important; background: rgba(139,111,71,.08) !important; box-shadow: 0 0 0 3px rgba(139,111,71,.12) !important }
  #conf-code-input::placeholder { color: rgba(255,255,255,.2) !important; letter-spacing: .3em }
  #my-orders-body .code { color: var(--c-gold-pale) !important; background: rgba(139,111,71,.1) !important; border: 1px solid rgba(139,111,71,.2) !important }
  #wa-number-input, #sector-mins-input { background: rgba(255,255,255,.07) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.12) !important }
  #wa-number-input::placeholder, #sector-mins-input::placeholder { color: rgba(255,255,255,.25) !important }
  #wa-number-input:focus, #sector-mins-input:focus { border-color: var(--c-gold) !important }

  /* ─── WATER WAVES ────────────────────────────────────────── */
  .water-waves { position: relative; width: 100%; height: 60px; margin-top: 24px; overflow: hidden }
  .water-waves::before, .water-waves::after { content: ''; position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; background-repeat: repeat-x; background-size: 50% 100% }
  .water-waves::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%238BA857' fill-opacity='0.15' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E"); animation: waveSlide 12s linear infinite; opacity: .8 }
  .water-waves::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23A67B5B' fill-opacity='0.08' d='M0,256L48,261.3C96,267,192,277,288,272C384,267,480,245,576,245.3C672,245,768,267,864,261.3C960,256,1056,224,1152,218.7C1248,213,1344,235,1392,245.3L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E"); animation: waveSlide 18s linear infinite reverse; bottom: -5px }
  @keyframes waveSlide { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }

  /* ─── MÉTRICAS CON BORDE GRADIENTE ─────────────────────── */
  .metric-card-gradient {
    position: relative;
    background: var(--c-surface);
    border-radius: 16px;
    padding: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    isolation: isolate;
    border: none !important;
  }
  .metric-card-gradient::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
      135deg,
      rgba(139, 168, 87, 0.85) 0%,
      rgba(85, 107, 47, 0.65) 35%,
      rgba(196, 149, 106, 0.45) 70%,
      rgba(139, 168, 87, 0.85) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    transition: padding .3s var(--ease), opacity .3s var(--ease);
  }
  .metric-card-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(139, 168, 87, 0.25);
  }
  .metric-card-gradient:hover::before {
    padding: 2.5px;
    background: linear-gradient(
      135deg,
      rgba(139, 168, 87, 1) 0%,
      rgba(85, 107, 47, 0.9) 35%,
      rgba(196, 149, 106, 0.7) 70%,
      rgba(139, 168, 87, 1) 100%
    );
  }

  /* ─── ADMIN MÓVIL: PEDIDOS MODO TARJETA ─── */
  @media (max-width: 768px) {
    .tbl-wrap {
      overflow-x: hidden !important;
      max-width: 100%;
    }
    table:has(#ord-body),
    table:has(#clients-body),
    table:has(#drivers-body),
    table:has(#supervisors-body),
    table:has(#vendedores-body),
    table:has(#admins-body),
    table:has(#bottles-body),
    table:has(#sectors-body) {
      min-width: 0 !important;
      table-layout: auto !important;
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
    }
    table:has(#ord-body) thead,
    table:has(#clients-body) thead,
    table:has(#drivers-body) thead,
    table:has(#supervisors-body) thead,
    table:has(#vendedores-body) thead,
    table:has(#admins-body) thead,
    table:has(#bottles-body) thead,
    table:has(#sectors-body) thead {
      display: none !important;
    }
    #ord-body td,
    #clients-body td,
    #drivers-body td,
    #supervisors-body td,
    #vendedores-body td,
    #admins-body td,
    #bottles-body td,
    #sectors-body td {
      width: 100% !important;
      max-width: none !important;
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: unset !important;
    }
    #ord-body {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    #ord-body tr {
      display: flex;
      flex-direction: column;
      border-radius: 16px;
      padding: 16px;
      background: var(--grad-surface);
      border: 1px solid rgba(255,255,255,.08);
      box-shadow: var(--sh);
      margin: 0;
      gap: 0;
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }
    #ord-body tr::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1px;
      background: var(--grad-border-subtle);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
      pointer-events: none;
      z-index: 1;
    }
    #ord-body td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255,255,255,.05);
      font-size: .85rem;
      gap: 12px;
    }
    #ord-body td:last-child {
      border-bottom: none;
      padding-top: 14px;
    }
    #ord-body td::before {
      content: attr(data-label);
      font-weight: 700;
      color: var(--c-muted);
      font-size: .68rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      flex-shrink: 0;
      min-width: 90px;
    }
    #ord-body td:nth-child(1) {
      padding: 12px 14px;
      background: rgba(139,111,71,.08);
      border-radius: 12px;
      border: 1px solid rgba(139,111,71,.2);
      margin-bottom: 10px;
      justify-content: flex-start;
      gap: 10px;
    }
    #ord-body td:nth-child(1)::before {
      content: none;
    }
    #ord-body td:nth-child(1) .code {
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: .1em;
      padding: 6px 12px;
    }
    #ord-body td:nth-child(2) {
      font-weight: 700;
      color: var(--c-text);
      font-size: .95rem;
    }
    #ord-body td:nth-child(2)::before {
      color: var(--c-water);
    }
    #ord-body td:nth-child(3) {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
    #ord-body td:nth-child(3)::before {
      margin-bottom: 2px;
    }
    #ord-body td:nth-child(4) {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--c-green);
      font-family: var(--font-display);
    }
    #ord-body td:nth-child(4)::before {
      color: var(--c-gold-lt);
    }
    #ord-body td:nth-child(5) {
      justify-content: flex-end;
    }
    #ord-body td:nth-child(5) .badge {
      font-size: .75rem;
      padding: 5px 12px;
    }
    #ord-body td:nth-child(6) {
      color: var(--c-muted);
    }
    #ord-body td:nth-child(7) {
      color: var(--c-muted);
      font-size: .8rem;
    }
    #ord-body td:nth-child(8) {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      padding-top: 14px;
      margin-top: 6px;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    #ord-body td:nth-child(8)::before {
      content: none;
    }
    #ord-body td:nth-child(8) > div {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 8px !important;
      width: 100%;
    }
    #ord-body td:nth-child(8) .btn {
      justify-content: center;
      width: 100%;
      padding: 10px 12px;
      font-size: .78rem;
      border-radius: 10px;
    }
    #ord-body td:nth-child(8) .btn-icon {
      padding: 10px;
      font-size: .9rem;
    }
    #clients-body,
    #drivers-body,
    #supervisors-body,
    #vendedores-body,
    #admins-body {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    #clients-body tr,
    #drivers-body tr,
    #supervisors-body tr,
    #vendedores-body tr,
    #admins-body tr {
      display: flex;
      flex-direction: column;
      border-radius: 14px;
      padding: 14px 16px;
      background: var(--grad-surface);
      border: 1px solid rgba(255,255,255,.06);
      margin: 0;
    }
    #clients-body td,
    #drivers-body td,
    #supervisors-body td,
    #vendedores-body td,
    #admins-body td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,.04);
      font-size: .85rem;
      gap: 10px;
    }
    #clients-body td:last-child,
    #drivers-body td:last-child,
    #supervisors-body td:last-child,
    #vendedores-body td:last-child,
    #admins-body td:last-child {
      border-bottom: none;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      padding-top: 12px;
    }
    #clients-body td::before,
    #drivers-body td::before,
    #supervisors-body td::before,
    #vendedores-body td::before,
    #admins-body td::before {
      content: attr(data-label);
      font-weight: 700;
      color: var(--c-muted);
      font-size: .68rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      flex-shrink: 0;
      min-width: 80px;
    }
    #clients-body td:last-child::before,
    #drivers-body td:last-child::before,
    #supervisors-body td:last-child::before,
    #vendedores-body td:last-child::before,
    #admins-body td:last-child::before {
      content: none;
    }
    #clients-body td:last-child > div,
    #drivers-body td:last-child > div,
    #supervisors-body td:last-child > div,
    #vendedores-body td:last-child > div,
    #admins-body td:last-child > div {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 6px !important;
      width: 100%;
    }
    #clients-body td:last-child .btn,
    #drivers-body td:last-child .btn,
    #supervisors-body td:last-child .btn,
    #vendedores-body td:last-child .btn,
    #admins-body td:last-child .btn {
      justify-content: center;
      width: 100%;
      padding: 9px 10px;
      font-size: .78rem;
    }
    #bottles-body {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    #bottles-body tr {
      display: flex;
      flex-direction: column;
      border-radius: 14px;
      padding: 14px 16px;
      background: var(--grad-surface);
      border: 1px solid rgba(255,255,255,.06);
      margin: 0;
    }
    #bottles-body td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,.04);
      font-size: .85rem;
      gap: 10px;
    }
    #bottles-body td:last-child {
      border-bottom: none;
      padding-top: 12px;
    }
    #bottles-body td::before {
      content: attr(data-label);
      font-weight: 700;
      color: var(--c-muted);
      font-size: .68rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      flex-shrink: 0;
      min-width: 100px;
    }
    #bottles-body td:last-child::before {
      content: none;
    }
    #bottles-body td:last-child > div {
      display: grid !important;
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 6px !important;
      width: 100%;
    }
    #bottles-body td:last-child .btn {
      justify-content: center;
      width: 100%;
      padding: 9px 10px;
      font-size: .78rem;
    }
    #sectors-body {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    #sectors-body tr {
      display: flex;
      flex-direction: column;
      border-radius: 12px;
      padding: 12px 14px;
      background: var(--grad-surface);
      border: 1px solid rgba(255,255,255,.06);
      margin: 0;
      gap: 8px;
    }
    #sectors-body td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
      border: none;
      font-size: .85rem;
      gap: 10px;
    }
    #sectors-body td::before {
      content: attr(data-label);
      font-weight: 700;
      color: var(--c-muted);
      font-size: .68rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      flex-shrink: 0;
    }
    #sectors-body td:last-child {
      justify-content: flex-end;
      padding-top: 8px;
      border-top: 1px solid rgba(255,255,255,.05);
    }
    .stats {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }
    .charts-row {
      grid-template-columns: 1fr !important;
    }
    .ph {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .ph > div:last-child {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .ph > div:last-child .btn {
      flex: 1;
      justify-content: center;
      min-width: 120px;
      font-size: .82rem;
    }
    .search-box {
      width: 100%;
    }
    .chips {
      overflow-x: auto;
      flex-wrap: nowrap;
      padding-bottom: 6px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .chips::-webkit-scrollbar {
      display: none;
    }
    .chip {
      flex-shrink: 0;
    }
    .card {
      padding: 16px;
      border-radius: 14px;
    }
    #ord-body:empty + *,
    #ord-body:empty {
      display: block;
    }
  }

  @media (max-width: 380px) {
    #ord-body tr {
      padding: 12px;
    }
    #ord-body td {
      font-size: .8rem;
      padding: 8px 0;
    }
    #ord-body td:nth-child(4) {
      font-size: 1rem;
    }
    #ord-body td:nth-child(8) > div {
      grid-template-columns: 1fr !important;
    }
    .stats {
      grid-template-columns: 1fr !important;
    }
    .ph > div:last-child .btn {
      min-width: 100%;
    }
  }

  /* ─── OCULTAR BOTTOM NAV EN ADMIN ─────────────────────── */
  body.is-admin .bottom-nav {
    display: none !important;
  }
  body.is-admin.has-bottom-nav .content {
    padding-bottom: 16px !important;
  }
  body.is-admin.has-bottom-nav .cart-float {
    bottom: 24px !important;
  }
  body.is-admin.has-bottom-nav .wa-float {
    bottom: 100px !important;
  }
  @media (max-width: 768px) {
    body.is-admin .main {
      padding-bottom: 16px !important;
    }
    body.is-admin .bottom-nav {
      display: none !important;
    }
  }

  /* ─── MÓVIL ──────────────────────────────────────────────── */
  @media (max-width: 768px) {


    /* Bottom Nav - Navegación móvil */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(46,125,50,.15);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 500;
  color: #558B2F;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-decoration: none;
  flex: 1;
  justify-content: center;
  position: relative;
}

.bottom-nav-item i {
  font-size: 1.3rem;
  transition: all .2s var(--ease);
}

.bottom-nav-item:hover {
  background: rgba(46, 125, 50, .12);
  color: #1B5E20;
}

/* ✅ ESTADO ACTIVO - Igual que topbar-nav */
.bottom-nav-item.active {
  background: rgba(46, 125, 50, .15) !important;
  color: #1B5E20 !important;
  border: 1px solid rgba(46, 125, 50, .3) !important;
  box-shadow: 0 2px 8px rgba(46, 125, 50, .15) !important;
  font-weight: 700 !important;
}

.bottom-nav-item.active i {
  color: #1B5E20;
  transform: scale(1.1);
}

/* Indicador visual debajo del activo */
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 40%;
  height: 3px;
  background: var(--c-green);
  border-radius: 3px 3px 0 0;
}

.bottom-nav-center {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E7D32, #4CAF50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(46, 125, 50, .35);
  transition: all .2s var(--ease);
  margin: -20px 0 0;
  border: 3px solid var(--c-bg);
}

.bottom-nav-center:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(46, 125, 50, .45);
}

.bottom-nav-center.active {
  background: linear-gradient(135deg, #1B5E20, #2E7D32) !important;
  box-shadow: 0 6px 20px rgba(46, 125, 50, .5), 0 0 0 3px rgba(46, 125, 50, .2) !important;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex !important;
  }
}
    .sidebar { transform: translateX(-100%); z-index: 1001 }
    .sidebar.open { transform: translateX(0) }
    .sb-close-btn { display: flex }
    .sb-item { padding: 12px 10px; font-size: .88rem }
    .main { margin-left: 0; padding-bottom: 80px; overflow-x: hidden }
    .topbar { padding: 0 16px; height: 56px; overflow: hidden }
    .topbar-toggle { display: flex }
    .topbar-title { display: none }
    .topbar-search { display: none }
    .content { padding: 16px; overflow-x: hidden }
    .bottom-nav { display: flex; align-items: center; justify-content: space-around }
    .card { padding: 16px; border-radius: 14px; overflow-x: hidden }
    .ph { flex-direction: column; align-items: flex-start }
    .ph > div:last-child { width: 100%; display: flex; flex-wrap: wrap; gap: 8px }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px }
    .stat { padding: 14px 16px }
    .stat-val { font-size: 1.5rem }
    #my-orders-table { border: none; background: transparent; width: 100%; table-layout: auto !important; min-width: 0 !important }
    #my-orders-table thead { display: none }
    #my-orders-body { display: flex; flex-direction: column; gap: 14px }
    #my-orders-body tr { display: flex; flex-direction: column; border-radius: 14px; padding: 16px; background: var(--grad-surface); box-shadow: var(--sh); margin: 0; white-space: normal }
    #my-orders-body td { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .82rem; white-space: normal; overflow: visible; text-overflow: unset }
    #my-orders-body td:last-child { border-bottom: none }
    #my-orders-body td::before { content: attr(data-label); font-weight: 600; color: var(--c-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; margin-right: 12px }
    .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch }
    .chips::-webkit-scrollbar { display: none }
    .modal { margin: 16px; max-height: calc(100vh - 32px); border-radius: 18px }
    .dialog-container { margin: 16px; border-radius: 18px }
    .frow { grid-template-columns: 1fr }
    .cart-float { bottom: 108px; padding: 12px 20px; border-radius: 99px }
    .cart-panel {
      top: 0 !important;
      bottom: 0 !important;
      left: auto !important;
      right: 0 !important;
      width: 440px !important;
      max-width: 440px !important;
      height: 100% !important;
      max-height: 100% !important;
      border-radius: 20px 0 0 20px !important;
      border-top: none !important;
      border-left: 1px solid rgba(139,111,71,.12) !important;
      transform: translateX(100%) !important;

      @media (max-width: 768px) {
  .topbar {
    position: relative;
    justify-content: space-between;
  }
  
  /* Logo centrado */
  .topbar-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    width: 100px !important;
  }
  
  /* Botones de acción (carrito + perfil) a la derecha */
  .topbar-client-actions {
    margin-left: auto !important;
    margin-right: 0 !important;
    position: relative;
    z-index: 5;
  }
  
  /* Toggle (hamburguesa) a la izquierda */
  .topbar-toggle {
    position: relative;
    z-index: 5;
  }
}
    }
    .cart-panel.on {
      transform: translateX(0) !important;
    }
    #status-bar { padding: 8px 16px }
    .din-grid { grid-template-columns: 1fr }
    .prod-img img { width: 100%; height: 100%; object-fit: cover !important }
    .prod-grid.cat-agua { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 0 4px }
    .prod-grid.cat-agua .prod-card { width: 100%; max-width: 380px; border-radius: 20px }
    .prod-grid.cat-agua .prod-img { height: 260px; border-radius: 0; font-size: 5rem; margin: 0 }
    .prod-grid.cat-agua .prod-info { padding: 20px }
    .prod-grid.cat-agua .prod-name {  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #1B5E20 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  text-align: center !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; }
    .prod-grid.cat-agua .prod-price {  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #558B2F !important;
  text-align: center !important;
  margin:  0 !important;
  margin-bottom: 0px !important;}
    .prod-grid.cat-agua .btn { padding: 14px; font-size: .9rem; border-radius: 14px }
    .prod-grid.cat-otros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px }
    .prod-grid.cat-otros .prod-card { border-radius: 16px }
    .prod-grid.cat-otros .prod-info { padding: 4px 12px 12px }
    .prod-grid.cat-otros .prod-name {  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #1B5E20 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  text-align: center !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; }
    .prod-grid.cat-otros .prod-price {  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #558B2F !important;
  text-align: center !important;
  margin: 0 !important;
  margin-bottom: 0px !important;}
    .prod-grid.cat-otros .btn { padding: 9px; font-size: .76rem; border-radius: 10px }
  }

  @media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr }
    .chips { gap: 6px }
    .chip { padding: 5px 12px; font-size: .7rem }
    .prod-grid { grid-template-columns: 1fr }
    .ph h2 { font-size: 1.35rem }
  }
  @media (min-width: 769px) and (max-width: 1024px) {
    .sidebar { width: 220px; min-width: 220px }
    .main { margin-left: 220px }
    .stats { grid-template-columns: repeat(2, 1fr) }
  }
  @supports (padding: max(0px)) {
    .bottom-nav { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)) }
  }

  /* ─── MOBILE OVERLAY ─────────────────────────────────────── */
  .mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); z-index: 99; opacity: 0; transition: opacity .3s var(--ease) }
  .mobile-overlay.on { display: block; opacity: 1 }

  /* ─── SCIENCE BASE ───────────────────────────────────────── */

  /* ─── CART FLOAT OVERRIDE ────────────────────────────────── */
  .cart-float { display: none !important }

  /* ─── MODAL METRIC IMAGE ─────────────────────────────────── */
  #m-metric-img .modal { background: transparent; box-shadow: none }
  #m-metric-img .modal::before { display: none }

  /* ─── MÉTRICAS GLASS ──────────── */
  .metric-glass-card {
    background: var(--c-surface) !important;
    border: none !important;
    position: relative;
    isolation: isolate;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .metric-glass-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(184, 212, 156, 0.5) 0%, rgba(139, 168, 87, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
  }
  .metric-glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 168, 87, 0.15);
  }
  .metric-glass-card:hover::before {
    background: linear-gradient(135deg, rgba(184, 212, 156, 0.8) 0%, rgba(139, 168, 87, 0.3) 100%);
  }

  /* ── CARRITO FOOT ──────────────── */
  .cart-foot {
    padding: 16px 20px 20px !important;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(18,12,6,.8);
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 60vh;
  }
  .cart-foot .field {
    margin-bottom: 16px;
  }
  .cart-foot #btn-get-location {
    background: rgba(139,168,87,.08) !important;
    border-color: rgba(139,168,87,.25) !important;
    color: var(--c-water) !important;
  }
  .cart-foot #btn-get-location:hover {
    background: rgba(139,168,87,.15) !important;
    border-color: rgba(139,168,87,.5) !important;
  }

  /* ═══════════════════════════════════════
  SPLASH SCREEN — EXPERIENCIA PREMIUM
  ═══════════════════════════════════════ */
  #splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
      radial-gradient(ellipse 900px 600px at 20% 15%, rgba(139, 195, 74, .22) 0%, transparent 60%),
      radial-gradient(ellipse 800px 700px at 85% 85%, rgba(46, 125, 50, .28) 0%, transparent 60%),
      linear-gradient(160deg, #0F2410 0%, #1B3A1D 45%, #12280F 100%);
    transition: opacity .9s cubic-bezier(.4,0,.2,1), visibility .9s;
  }

  /* Aura pulsante detrás del logo */
  .splash-aura {
    position: absolute;
    width: min(70vw, 640px);
    height: min(70vw, 640px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 197, 110, .28) 0%, rgba(168, 197, 110, 0) 68%);
    filter: blur(4px);
    animation: auraPulse 4.5s ease-in-out infinite;
    z-index: 0;
  }
  @keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: .7; }
    50%      { transform: scale(1.18); opacity: 1; }
  }

  /* Partículas orgánicas flotantes */
  .splash-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .splash-particles span {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 235, 170, .95) 0%, rgba(168, 197, 110, .15) 70%);
    box-shadow: 0 0 12px 2px rgba(168, 197, 110, .5);
    animation: particleFloat 8s ease-in-out infinite;
  }
  .splash-particles span:nth-child(1)  { left: 12%; top: 70%; animation-delay: 0s;    animation-duration: 9s;  }
  .splash-particles span:nth-child(2)  { left: 22%; top: 30%; animation-delay: 1.2s;  animation-duration: 7s;  width: 4px; height: 4px; }
  .splash-particles span:nth-child(3)  { left: 78%; top: 25%; animation-delay: .6s;   animation-duration: 10s; }
  .splash-particles span:nth-child(4)  { left: 85%; top: 65%; animation-delay: 2s;    animation-duration: 8s;  width: 5px; height: 5px; }
  .splash-particles span:nth-child(5)  { left: 50%; top: 82%; animation-delay: 1.6s;  animation-duration: 9.5s;}
  .splash-particles span:nth-child(6)  { left: 65%; top: 12%; animation-delay: 2.4s;  animation-duration: 7.5s;width: 3px; height: 3px; }
  .splash-particles span:nth-child(7)  { left: 8%;  top: 40%; animation-delay: 3s;    animation-duration: 11s; }
  .splash-particles span:nth-child(8)  { left: 40%; top: 15%; animation-delay: .3s;   animation-duration: 8.5s;width: 4px; height: 4px; }
  .splash-particles span:nth-child(9)  { left: 92%; top: 45%; animation-delay: 1.8s;  animation-duration: 9s;  }
  .splash-particles span:nth-child(10) { left: 30%; top: 88%; animation-delay: 2.6s;  animation-duration: 7.8s;width: 5px; height: 5px; }

  @keyframes particleFloat {
    0%   { transform: translate(0, 0) scale(1);      opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translate(14px, -60px) scale(1.3); opacity: .85; }
    90%  { opacity: .3; }
    100% { transform: translate(-8px, -120px) scale(.6); opacity: 0; }
  }

  /* Contenido central */
  .splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: splashContentIn 1.1s cubic-bezier(.16,1,.3,1) .15s forwards;
  }
  @keyframes splashContentIn {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Anillo orbital + logo */
  .splash-ring-wrap {
    position: relative;
    width: clamp(120px, 28vw, 168px);
    height: clamp(120px, 28vw, 168px);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .splash-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: ringSpin 3.2s linear infinite;
    filter: drop-shadow(0 0 10px rgba(168, 197, 110, .45));
  }
  .splash-ring-track {
    fill: none;
    stroke: rgba(244, 241, 234, .12);
    stroke-width: 2.5;
  }
  .splash-ring-progress {
    fill: none;
    stroke: url(#splashRingGradient);
    stroke: #A8C56E;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 578;
    stroke-dashoffset: 420;
    transform-origin: center;
  }
  @keyframes ringSpin {
    to { transform: rotate(360deg); }
  }

  .splash-logo-wrapper {
    position: relative;
    width: 64%;
    height: 64%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoBreathe 3s ease-in-out infinite;
  }
  .splash-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(168, 197, 110, .55));
  }
  @keyframes logoBreathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
  }

  .splash-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0 0 6px;
    background: linear-gradient(100deg, #F4F1EA 0%, #C5E1A5 35%, #F4F1EA 60%, #A8C56E 85%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3.5s linear infinite;
  }
  @keyframes titleShine {
    to { background-position: 250% center; }
  }

  .splash-tagline {
    font-family: var(--font-body);
    font-size: clamp(.72rem, 1.6vw, .82rem);
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, .55);
    margin: 0 0 26px;
  }

  .splash-loader-dots {
    display: flex;
    gap: 8px;
  }
  .splash-loader-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(168, 197, 110, .35);
    animation: dotPulse 1.4s ease-in-out infinite;
  }
  .splash-loader-dots span:nth-child(2) { animation-delay: .18s; }
  .splash-loader-dots span:nth-child(3) { animation-delay: .36s; }
  @keyframes dotPulse {
    0%, 100% { background: rgba(168, 197, 110, .3); transform: scale(.85); }
    50%      { background: #A8C56E; transform: scale(1.25); box-shadow: 0 0 10px rgba(168,197,110,.7); }
  }

  /* Salida elegante */
  #splash-screen.fading {
    opacity: 0;
    visibility: hidden;
  }
  #splash-screen.fading .splash-content {
    animation: splashContentOut .7s cubic-bezier(.4,0,.2,1) forwards;
  }
  @keyframes splashContentOut {
    to { opacity: 0; transform: translateY(-14px) scale(1.04); }
  }

  @media (prefers-reduced-motion: reduce) {
    .splash-aura, .splash-particles span, .splash-ring, .splash-logo-wrapper,
    .splash-title, .splash-loader-dots span {
      animation: none !important;
    }
    .splash-content { animation: none !important; opacity: 1; }
  }

  @media (max-width: 480px) {
    .splash-aura { width: 90vw; height: 90vw; }
  }

  /* ─── PROD CARD MEDIA ─────────────────────────────── */
  .prod-img video {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    border-radius: 0;
  }
  .prod-img .media-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(28,20,16,.75); backdrop-filter: blur(6px);
    color: #fff; font-size: .6rem; font-weight: 700;
    padding: 3px 8px; border-radius: 99px;
    border: 1px solid rgba(255,255,255,.15);
    letter-spacing: .06em; text-transform: uppercase;
    pointer-events: none;
  }
  .prod-img { position: relative; overflow: hidden; }

  /* ─── CORRECCIÓN CARRITO ────────── */
  .cart-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 400px !important;
    max-width: 400px !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 20px 0 0 20px !important;
    border-left: 1px solid rgba(139,111,71,.15) !important;
    border-top: none !important;
    background: linear-gradient(180deg, rgba(28,20,16,.99) 0%, rgba(18,12,6,1) 100%) !important;
    box-shadow: -8px 0 40px rgba(0,0,0,.6);
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.32,0,0.67,0) !important;
    z-index: 10000 !important;
    overflow: hidden !important;
  }
  .cart-panel.on { transform: translateY(0) !important; }
  .cart-head {
    flex-shrink: 0 !important;
    padding: 18px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(28,20,16,0.98) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    z-index: 10 !important;
  }
  .cart-head h3 {
    font-family: var(--font-display) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #fff !important;
  }
  .cart-head .modal-x {
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 18px !important; color: #fff !important;
    cursor: pointer !important; transition: 0.2s !important;
    flex-shrink: 0 !important;
  }
  .cart-head .modal-x:hover {
    background: rgba(220,38,38,0.25) !important;
    border-color: rgba(220,38,38,0.5) !important;
  }
  .cart-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px 20px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex !important;
    flex-direction: column !important;
  }
  .cart-foot {
    flex-shrink: 0 !important;
    padding: 18px 20px 28px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(28,20,16,0.98) !important;
    backdrop-filter: blur(12px) !important;
    max-height: 62vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }
  .cart-foot .field { margin-bottom: 14px !important; }
  .cart-foot > .cart-total-row,
  .cart-foot > .field,
  .cart-foot > .btn-confirm-order,
  .cart-foot > #promo-free-notice {
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
  .cart-foot .field { margin-bottom: 20px !important; }
  .cart-foot .field label { padding-left: 4px; font-size: .75rem !important; }
  .cart-foot .btn-confirm-order { margin-top: 10px !important; }

  /* ─── INLINE ORDER STATUS BANNER ────────────────────────── */
  #inline-order-status {
    width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #2A1D14 0%, #332418 100%);
    border: 1px solid rgba(168, 197, 110, 0.35);
    padding: 20px 24px;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 0 40px rgba(139,168,87,0.08);
    position: relative;
  }
  #inline-order-status.active { display: block }
  @media (max-width: 768px) {
    #inline-order-status.active {
      position: fixed !important;
      top: 64px !important;
      left: 12px !important;
      right: 12px !important;
      width: auto !important;
      border-radius: 16px !important;
      z-index: 500 !important;
      margin-bottom: 0 !important;
      box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(168,197,110,.3) !important;
      padding: 14px 18px !important;
    }
  
    
  }
  #inline-order-status::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--ios-color, var(--c-water)) 30%, var(--ios-color, var(--c-water)) 70%, transparent 100%);
  }
  .ios-steps { display: flex; align-items: center; width: 100%; margin-top: 16px }
  .ios-step-item { flex: 1; display: flex; align-items: center }
  .ios-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    flex-shrink: 0;
    transition: background .4s, box-shadow .4s;
  }
  .ios-dot.done {
    background: var(--ios-color, var(--c-water));
    box-shadow: 0 0 8px var(--ios-color, var(--c-water));
  }
  .ios-dot.active {
    width: 13px; height: 13px;
    background: var(--ios-color, var(--c-water));
    box-shadow: 0 0 14px var(--ios-color, var(--c-water)), 0 0 0 4px rgba(139,168,87,.2);
  }
  .ios-line {
    flex: 1; height: 2px;
    background: rgba(255,255,255,.15);
    transition: background .4s; margin: 0 2px;
  }
  .ios-line.done { background: var(--ios-color, var(--c-water)) }
  .ios-labels { display: flex; justify-content: space-between; margin-top: 8px }
  .ios-label {
    flex: 1;
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255,255,255,.45);
    text-align: center;
    transition: color .4s;
    letter-spacing: .03em;
  }
  .ios-label.done { color: #fff }
  .ios-label:first-child { text-align: left }
  .ios-label:last-child { text-align: right }

  /* ─── AUMENTAR ALTURA DE CARDS DEL STORE ─────────────────── */
  .prod-card {
    min-height: 380px;
  }
  .prod-img {
    height: 280px;
  }
  @media (max-width: 768px) {
    .prod-grid.cat-agua .prod-card {
      min-height: 420px;
    
    }
    .prod-grid.cat-agua .prod-img {
      height: 390px;
      margin-top: 30px;
    }
  }
  .prod-grid.cat-otros .prod-card {
    min-height: unset;
  }
 .prod-grid.cat-otros .prod-img {
    height: 300px !important; /* Aumenté de 130px a 180px */
    border-radius: 16px 16px 0 0;
    font-size: 2.8rem;
}
  .prod-grid.cat-otros .prod-info {
    padding: 8px 12px 12px !important;
    gap: 0 !important;
  }
  .prod-grid.cat-otros .prod-info .btn {
    margin-top: 6px;
  }
  @media (max-width: 768px) {
    .prod-grid.cat-otros .prod-card {
      min-height: unset;
    }
    .prod-grid.cat-otros .prod-img {
        height: 300px !important; /* Aumenté de 260px a 320px */
        border-radius: 0;
        font-size: 5rem;
        margin: 0;
    }
    .prod-grid.cat-otros .prod-info {
      padding: 6px 10px 10px !important;
    }
  }

  @media (max-width: 768px) {
    #inline-order-status.active ~ #store-banner-img,
    #inline-order-status.active ~ .prod-grid {
      margin-top: 200px !important;
      transition: margin-top 0.35s cubic-bezier(0.32, 0, 0.67, 0);
    }
  }

  /* ─── CARRITO: ESTRUCTURA BASE ─── */
  .cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    width: 100%;
    flex-shrink: 0;
  }
  .cart-item-ico {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
  }
  .cart-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .cart-item-name {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--c-text);
  }
  .cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
  }
  .cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .qty-num {
    font-family: var(--font-display);
    font-weight: 800;
    min-width: 20px;
    text-align: center;
  }
  .cart-item-total {
    font-size: .9rem;
    font-weight: 700;
    color: var(--c-gold-lt);
    margin-left: auto;
    padding-left: 12px;
  }
  .cart-item-price { display: none; }

  @media (max-width: 380px) {
    .cart-item {
      flex-wrap: wrap;
      gap: 8px;
      padding: 14px 0;
    }
    .cart-item-ico {
      width: 40px;
      height: 40px;
    }
    .cart-item-content {
      width: calc(100% - 56px);
      margin-left: 16px;
      gap: 2px;
    }
    .cart-item-name {
      font-size: .92rem;
      font-weight: 700;
    }
    .cart-item-row {
      margin-top: 6px;
      justify-content: flex-start;
      gap: 16px;
      width: 100%;
    }
    .cart-item-total {
      margin-left: 0;
      font-size: 1.05rem;
      flex: 1;
      text-align: right;
    }
  }

  .cart-item-total {
    color: #7A9E6B !important;
    font-weight: 800 !important;
  }
  #cart-total {
    color: #7A9E6B !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
  }
  #cart-float-total {
    color: #ffffff !important;
  }

  /* ─── FIX métricas ─── */
  .metric-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    min-width: 0;
    overflow: hidden;
  }
  .metric-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.1;
    word-break: break-word;
  }
  .metric-visual {
    flex: 0 0 auto;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-water);
    opacity: 0.9;
    line-height: 1;
  }
  .metric-visual i {
    font-size: 2.8rem;
    filter: drop-shadow(0 0 12px rgba(139, 168, 87, 0.35));
    line-height: 1;
  }
  @media (max-width: 480px) {
    .metric-card-v2 {
      padding: 16px;
    }
    .metric-value {
      font-size: 1.8rem;
    }
    .metric-subtitle {
      font-size: 0.75rem;
    }
    .metric-visual i {
      font-size: 2.2rem;
    }
  }

  .din-card-img[style*="cursor:zoom-in"] {
    transition: transform 0.2s ease;
  }
  .din-card-img[style*="cursor:zoom-in"]:hover {
    transform: scale(1.03);
  }
  .din-card-img[style*="cursor:zoom-in"]:hover img {
    filter: brightness(1.1);
  }

  /* ─── MINERAL MATRIX CARDS ──────────────────────────────── */
  .mineral-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  .mineral-card {
    position: relative;
    background: linear-gradient(145deg, #2A1D14 0%, #3D2E22 100%);
    border-radius: 18px;
    padding: 16px 14px 14px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    border: none;
  }
  .mineral-card::before {
    content: '';
    position: absolute; inset: 0; border-radius: 18px; padding: 1px;
    background: linear-gradient(135deg, rgba(139,168,87,.5) 0%, rgba(184,212,156,.15) 50%, rgba(139,168,87,.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  }
  .mineral-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(139,168,87,.2); }
  .mineral-card:hover::before {
    background: linear-gradient(135deg, rgba(139,168,87,.9) 0%, rgba(184,212,156,.4) 50%, rgba(139,168,87,.8) 100%);
  }
  .mineral-card.full-width { grid-column: 1 / -1 }
  .atom-wrap { display: flex; justify-content: center; margin-bottom: 10px; height: 70px }
  .atom-wrap svg { overflow: visible }
  .orbit-1 { animation: orbit1 3s linear infinite }
  .orbit-2 { animation: orbit2 4s linear infinite }
  .orbit-3 { animation: orbit3 2.5s linear infinite }
  .electron-1 { animation: electron1 3s linear infinite }
  .electron-2 { animation: electron2 4s linear infinite }
  .electron-3 { animation: electron3 2.5s linear infinite }
  @keyframes orbit1  { from { transform: rotate(0deg) }   to { transform: rotate(360deg) } }
  @keyframes orbit2  { from { transform: rotate(120deg) } to { transform: rotate(480deg) } }
  @keyframes orbit3  { from { transform: rotate(240deg) } to { transform: rotate(600deg) } }
  @keyframes electron1 { from { transform: rotate(0deg) }   to { transform: rotate(360deg) } }
  @keyframes electron2 { from { transform: rotate(-120deg) } to { transform: rotate(240deg) } }
  @keyframes electron3 { from { transform: rotate(-240deg) } to { transform: rotate(120deg) } }
  .mineral-card-name {
    font-size: .88rem; font-weight: 700; color: #fff;
    text-align: center; margin-bottom: 2px; letter-spacing: -.01em;
  }
  .mineral-card-sub {
    font-size: .66rem; color: rgba(139,168,87,.8);
    text-align: center; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  }
  #m-mineral .modal { max-width: 420px }
  .mineral-modal-atom { display: flex; justify-content: center; padding: 24px 0 16px; background: linear-gradient(180deg, rgba(28,20,16,.8) 0%, transparent 100%); }
  .mineral-modal-atom svg { filter: drop-shadow(0 0 16px rgba(139,168,87,.35)) }
  .mineral-modal-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-align: center; color: var(--c-text); margin-bottom: 4px }
  .mineral-modal-symbol { text-align: center; font-family: var(--font-mono); font-size: .72rem; color: var(--c-water); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px }
  .mineral-modal-desc { font-size: .84rem; color: var(--c-muted); line-height: 1.65; margin-bottom: 16px }
  .mineral-benefits { background: rgba(139,168,87,.06); border: 1px solid rgba(139,168,87,.15); border-radius: 14px; padding: 16px }
  .mineral-benefits-title { font-size: .62rem; font-weight: 700; color: var(--c-water); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px }
  .mineral-benefit-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: .82rem; color: var(--c-text); line-height: 1.5 }
  .mineral-benefit-item:last-child { margin-bottom: 0 }
  .mineral-benefit-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-water); flex-shrink: 0; margin-top: 6px }

  /* ─── TIPOGRAFÍA GLOBAL ─── */
  html { font-size: 16px }
  .stat-val { font-size: 2.1rem }
  .stat-lbl { font-size: .82rem }
  .sb-item { font-size: .88rem }
  .sb-section-label { font-size: .65rem }
  td { font-size: .86rem; padding: 13px 12px }
  th { font-size: .68rem; padding: 11px 12px }
  .badge { font-size: .72rem; padding: 4px 11px }
  .chip { font-size: .78rem; padding: 7px 16px }
  .btn { font-size: .86rem; padding: 10px 20px }
  .btn-sm { padding: 7px 14px; font-size: .78rem }
  .cart-item-name { font-size: .92rem }
  .cart-item-total { font-size: .95rem }
  .qty-num { font-size: 1.1rem }
  .prod-name {  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #1B5E20 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  text-align: center !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; }
  .prod-price { font-size: 1.4rem }
  .delivery-info-item strong { font-size: .88rem }
  .delivery-info-item p { font-size: .7rem }
  .modal-head h3 { font-size: 1.18rem }
  .modal-body { font-size: .88rem }
  .field label { font-size: .72rem }
  .field input, .field select, .field textarea { font-size: .92rem; padding: 11px 14px }
  .metric-title { font-size: .88rem }
  .metric-value { font-size: 2.5rem }
  .metric-subtitle { font-size: .9rem }
  .ph h2 { font-size: 1.75rem }
  .ph p { font-size: .86rem }
  .topbar-search input { font-size: .86rem }
  .topbar-pill span { font-size: .86rem }
  .code { font-size: .82rem }

  @media (max-width: 768px) {
    html { font-size: 15.5px }
    .stat-val { font-size: 1.7rem }
    .ph h2 { font-size: 1.5rem }
    .metric-value { font-size: 2rem }
    .metric-title { font-size: .82rem }
    .prod-name { font-size: 1.3rem }
    .prod-price { font-size: 1.3rem }
    .btn { font-size: .84rem }
    td { font-size: .84rem; padding: 11px 10px }
    .chip { font-size: .76rem; padding: 6px 14px }
    .badge { font-size: .7rem }
    .cart-item-name { font-size: .9rem }
    .modal-head h3 { font-size: 1.08rem }
    .field input, .field select, .field textarea { font-size: .9rem }
  }
  @media (max-width: 480px) {
    html { font-size: 15px }
    .stat-val { font-size: 1.5rem }
    .ph h2 { font-size: 1.3rem }
    .metric-value { font-size: 1.75rem }
    .prod-name { font-size: 1rem }
    .prod-price { font-size: 1.2rem }
    .btn { font-size: .82rem; padding: 9px 16px }
    td { font-size: .82rem }
    .chip { font-size: .74rem; padding: 5px 12px }
  }
  @media (min-width: 1280px) {
    html { font-size: 16.5px }
    .stat-val { font-size: 2.3rem }
    .metric-value { font-size: 2.7rem }
    .ph h2 { font-size: 1.9rem }
    .prod-name { font-size: 1.5rem }
  }

  .content {
    padding: 28px;
    padding-top: 88px;
    flex: 1;
    overflow-x: hidden;
    min-width: 0;
  }
  @media (max-width: 768px) {
    .content {
      padding: 16px;
      padding-top: 76px;
      overflow-x: hidden;
    }
  }
  @media (max-width: 768px) {
    .prod-grid,
    .ph,
    #store-banner-img,
    .promo-banner {
      scroll-margin-top: 76px;
    }
  }

  #m-order-detail .modal-foot {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(28,20,16,.6);
    backdrop-filter: blur(12px);
  }
  #m-order-detail .modal-foot > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    width: 100%;
  }
  #m-order-detail .modal-foot .btn {
    flex-shrink: 0;
    font-size: .78rem;
    padding: 9px 14px;
  }
  @media (max-width: 480px) {
    #m-order-detail .modal-foot {
      padding: 14px 16px 18px;
    }
    #m-order-detail .modal-foot > div {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 8px !important;
    }
    #m-order-detail .modal-foot .btn {
      justify-content: center;
      width: 100%;
      font-size: .76rem;
      padding: 10px 12px;
    }
    #m-order-detail .modal-foot .btn.btn-ghost:first-child {
      grid-column: 1 / -1;
    }
  }

  /* ═══ TÍTULOS GRANDES — PANEL CLIENTE ═══ */
  .content p[style*="font-size:1.08rem"] {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
  }
  .content p[style*="font-size:.82rem"][style*="color:var(--c-muted)"] {
    font-size: .92rem !important;
  }
  .content h3[style*="font-size:1.3rem"] {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
  }
  .content p[style*="font-size:0.9rem"] {
    font-size: 1rem !important;
  }
  #rifas-track ~ * h3,
  .content p[style*="font-size:1.08rem;font-weight:800"] {
    font-size: 1.35rem !important;
  }
  .mineral-card-name {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
  }
  .mineral-card-sub {
    font-size: .78rem !important;
  }
  .content h3[style*="font-size:1.4rem"][style*="color:var(--c-gold-lt)"] {
    font-size: 1.7rem !important;
  }
  .content strong[style*="font-size:0.92rem"] {
    font-size: 1rem !important;
  }
  .page .ph h2 {
    font-size: 2rem !important;
  }
  .page .ph p {
    font-size: .95rem !important;
  }
  .din-card-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
  }
  .din-card-desc {
    font-size: .88rem !important;
  }
  .din-hero h2 {
    font-size: 1.7rem !important;
  }
  .din-hero p {
    font-size: .9rem !important;
  }
  .content h2[style*="font-size:1.8rem"] {
    font-size: 2.2rem !important;
  }
  .content p[style*="font-size:1rem"][style*="color:var(--c-muted)"] {
    font-size: 1.05rem !important;
  }
  .content p[style*="font-size:1.08rem"][style*="font-weight:800"] {
    font-size: 1.35rem !important;
  }
  .ph h2 {
    font-size: 2rem !important;
  }
  .ph p {
    font-size: .92rem !important;
    color: var(--c-muted);
  }
  .loyalty-bar > div:first-child {
    font-size: .82rem !important;
  }
  .loyalty-bar > div:nth-child(2) {
    font-size: 4rem !important;
  }
  .content div[style*="font-size:2.8rem"] {
    font-size: 3.5rem !important;
  }
  .content div[style*="font-size:.7rem"][style*="color:#A8C56E"] {
    font-size: .82rem !important;
  }
  #metrics-section > div > p:first-child {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
  }
  .metric-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  .metric-value {
    font-size: 2.8rem !important;
  }
  .metric-subtitle {
    font-size: .95rem !important;
  }
  #m-banner-agua .modal,
  #m-banner-muerta .modal {
    max-width: 340px !important;
  }
  #m-banner-agua .modal-body,
  #m-banner-muerta .modal-body {
    padding: 14px 18px 20px !important;
  }
  #m-banner-agua .mineral-modal-atom,
  #m-banner-muerta .mineral-modal-atom {
    padding: 12px 0 10px !important;
  }
  #m-banner-agua .mineral-modal-atom svg,
  #m-banner-muerta .mineral-modal-atom svg {
    width: 80px !important;
    height: 80px !important;
  }
  .mineral-modal-title {
    font-size: 1.2rem !important;
  }
  .mineral-modal-desc {
    font-size: .8rem !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
  }
  .mineral-benefit-item {
    font-size: .78rem !important;
    margin-bottom: 6px !important;
  }
  .mineral-benefits {
    padding: 12px !important;
  }
  .mineral-benefits-title {
    font-size: .6rem !important;
    margin-bottom: 8px !important;
  }
  @media (max-width: 768px) {
    .ph h2 {
      font-size: 1.75rem !important;
    }
    .content p[style*="font-size:1.08rem"] {
      font-size: 1.2rem !important;
    }
    .mineral-card-name {
      font-size: .95rem !important;
    }
    .din-card-title {
      font-size: 1.05rem !important;
    }
    .metric-title {
      font-size: .9rem !important;
    }
    .metric-value {
      font-size: 2.4rem !important;
    }
    #m-banner-agua .modal,
    #m-banner-muerta .modal {
      max-width: 300px !important;
    }
    #m-banner-agua .mineral-modal-atom svg,
    #m-banner-muerta .mineral-modal-atom svg {
      width: 70px !important;
      height: 70px !important;
    }
  }
  @media (max-width: 480px) {
    .ph h2 {
      font-size: 1.5rem !important;
    }
    .content p[style*="font-size:1.08rem"] {
      font-size: 1.1rem !important;
    }
    .metric-value {
      font-size: 2rem !important;
    }
    .din-card-title {
      font-size: .98rem !important;
    }
  }

  /* ═══ BANNERS AGUA — EFECTO NEÓN 3D (VERDE) ═══ */
  #store-bottom-banner-1,
  #store-bottom-banner-2 {
    position: relative !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow:
      0 0 0 1.5px rgba(168, 197, 110, 0.6),
      0 0 18px rgba(168, 197, 110, 0.35),
      0 0 40px rgba(139, 168, 87, 0.2),
      inset 0 0 30px rgba(139, 168, 87, 0.08) !important;
    transition: box-shadow .3s var(--ease), transform .2s var(--ease) !important;
  }
  #store-bottom-banner-1:hover,
  #store-bottom-banner-2:hover {
    box-shadow:
      0 0 0 2px rgba(168, 197, 110, 0.85),
      0 0 28px rgba(168, 197, 110, 0.55),
      0 0 60px rgba(139, 168, 87, 0.35),
      inset 0 0 40px rgba(139, 168, 87, 0.12) !important;
  }
  #store-bottom-banner-1::before,
  #store-bottom-banner-2::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -2px;
    width: 4px;
    height: 80%;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(168, 197, 110, 0.9) 30%,
      #A8C56E 50%,
      rgba(168, 197, 110, 0.9) 70%,
      transparent 100%
    );
    box-shadow:
      0 0 12px 4px rgba(168, 197, 110, 0.7),
      0 0 30px 8px rgba(139, 168, 87, 0.4);
    z-index: 3;
    pointer-events: none;
  }
  #store-bottom-banner-1::after,
  #store-bottom-banner-2::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -2px;
    width: 4px;
    height: 80%;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(168, 197, 110, 0.9) 30%,
      #A8C56E 50%,
      rgba(168, 197, 110, 0.9) 70%,
      transparent 100%
    );
    box-shadow:
      0 0 12px 4px rgba(168, 197, 110, 0.7),
      0 0 30px 8px rgba(139, 168, 87, 0.4);
    z-index: 3;
    pointer-events: none;
  }
  #store-bottom-banner-1 > div:last-child::before,
  #store-bottom-banner-2 > div:last-child::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg,
        rgba(139, 168, 87, 0.18) 0%,
        transparent 20%,
        transparent 80%,
        rgba(139, 168, 87, 0.18) 100%
      );
    pointer-events: none;
    z-index: 1;
  }
  #store-bottom-banner-1 > div:last-child > div,
  #store-bottom-banner-2 > div:last-child > div {
    position: relative;
    z-index: 2;
  }
  @keyframes neonPulse {
    0%, 100% {
      opacity: 1;
      box-shadow:
        0 0 12px 4px rgba(168, 197, 110, 0.7),
        0 0 30px 8px rgba(139, 168, 87, 0.4);
    }
    50% {
      opacity: 0.75;
      box-shadow:
        0 0 8px 2px rgba(168, 197, 110, 0.4),
        0 0 18px 4px rgba(139, 168, 87, 0.2);
    }
  }
  #store-bottom-banner-1::before,
  #store-bottom-banner-1::after,
  #store-bottom-banner-2::before,
  #store-bottom-banner-2::after {
    animation: neonPulse 2.8s ease-in-out infinite;
  }
  @media (max-width: 768px) {
    #store-bottom-banner-1::before,
    #store-bottom-banner-1::after,
    #store-bottom-banner-2::before,
    #store-bottom-banner-2::after {
      width: 3px;
      box-shadow:
        0 0 8px 3px rgba(168, 197, 110, 0.6),
        0 0 18px 5px rgba(139, 168, 87, 0.3);
    }
    #store-bottom-banner-1,
    #store-bottom-banner-2 {
      box-shadow:
        0 0 0 1px rgba(168, 197, 110, 0.5),
        0 0 12px rgba(168, 197, 110, 0.25),
        inset 0 0 20px rgba(139, 168, 87, 0.06) !important;
    }
  }

  /* ═══ INLINE ORDER STATUS — REDISEÑO ═══ */
  #inline-order-status {
    background: linear-gradient(135deg, #2A1D14 0%, #332418 60%, #3D2E22 100%) !important;
    border: 1.5px solid rgba(168, 197, 110, 0.5) !important;
    border-radius: 22px !important;
    padding: 24px 22px 20px !important;
    box-shadow:
      0 0 0 1px rgba(168, 197, 110, 0.15),
      0 0 40px rgba(139, 168, 87, 0.2),
      inset 0 0 60px rgba(139, 168, 87, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  #inline-order-status::before {
    content: '';
    position: absolute;
    top: 8%; left: -2px;
    width: 3px; height: 84%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, transparent, #A8C56E 35%, #A8C56E 65%, transparent);
    box-shadow: 0 0 12px 4px rgba(168,197,110,.6), 0 0 28px 8px rgba(139,168,87,.3);
    animation: neonPulse 2.8s ease-in-out infinite;
    z-index: 4;
  }
  #inline-order-status::after {
    content: '';
    position: absolute;
    top: 8%; right: -2px;
    width: 3px; height: 84%;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg, transparent, #A8C56E 35%, #A8C56E 65%, transparent);
    box-shadow: 0 0 12px 4px rgba(168,197,110,.6), 0 0 28px 8px rgba(139,168,87,.3);
    animation: neonPulse 2.8s ease-in-out infinite;
    z-index: 4;
  }
  .ios-top-section {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(168, 197, 110, 0.15);
  }
  .ios-bottle-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 16px rgba(168, 197, 110, 0.6));
    animation: bottleFloat 3s ease-in-out infinite;
  }
  @keyframes bottleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  .ios-text-block {
    flex: 1;
    min-width: 0;
  }
  .ios-main-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 4px;
  }
  .ios-main-sub {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 12px;
  }
  .ios-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(44, 30, 18, 0.7);
    border: 1.5px solid rgba(168, 197, 110, 0.4);
    border-radius: 12px;
    padding: 8px 16px;
    backdrop-filter: blur(8px);
  }
  .ios-time-pill-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  .ios-time-pill-label span:first-child {
    font-size: .58rem;
    font-weight: 700;
    color: var(--c-water);
    text-transform: uppercase;
    letter-spacing: .12em;
  }
  .ios-time-pill-label span:last-child {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-water);
    letter-spacing: -.01em;
  }
  .ios-progress-section {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .ios-step-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
  }
  .ios-step-block:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,.15);
    border-top: 2px dashed rgba(255,255,255,.2);
  }
  .ios-step-block.done:not(:last-child)::after {
    background: none;
    border-top: 2px solid var(--ios-color, #A8C56E);
    box-shadow: 0 0 6px rgba(168,197,110,.5);
  }
  .ios-bottle-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all .4s ease;
    margin-bottom: 10px;
  }
  .ios-bottle-circle.active {
    background: rgba(168, 197, 110, 0.12);
    border: 2.5px solid #A8C56E;
    box-shadow:
      0 0 0 6px rgba(168, 197, 110, 0.12),
      0 0 20px rgba(168, 197, 110, 0.4);
  }
  .ios-bottle-circle.done {
    background: rgba(168, 197, 110, 0.08);
    border: 2px solid rgba(168, 197, 110, 0.5);
  }
  .ios-bottle-circle svg {
    width: 36px;
    height: 36px;
    opacity: 0.35;
    transition: all .4s ease;
  }
  .ios-bottle-circle.active svg,
  .ios-bottle-circle.done svg {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(168,197,110,.6));
  }
  .ios-step-label {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.35);
    text-align: center;
    line-height: 1.3;
    transition: color .4s;
  }
  .ios-step-label.active {
    color: #A8C56E;
    text-shadow: 0 0 8px rgba(168,197,110,.4);
  }
  .ios-step-label.done {
    color: rgba(255,255,255,.7);
  }
  .ios-step-sublabel {
    font-size: .62rem;
    color: rgba(255,255,255,.3);
    text-align: center;
    margin-top: 2px;
    line-height: 1.3;
    transition: color .4s;
  }
  .ios-step-sublabel.active {
    color: rgba(168,197,110,.7);
  }
  .ios-step-sublabel.done {
    color: rgba(255,255,255,.45);
  }
  .ios-order-code {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.06);
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 5;
  }
  #ios-cancel-btn {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    z-index: 10 !important;
  }
  @media (max-width: 768px) {
    .ios-main-title { font-size: 1.4rem !important; }
    .ios-bottle-icon { width: 64px !important; height: 64px !important; }
    .ios-bottle-circle { width: 52px !important; height: 52px !important; }
    .ios-bottle-circle svg { width: 28px !important; height: 28px !important; }
    .ios-step-label { font-size: .64rem !important; }
    .ios-step-sublabel { font-size: .55rem !important; }
    .ios-time-pill-label span:last-child { font-size: 1.1rem !important; }
  }
  @media (max-width: 380px) {
    .ios-top-section { gap: 12px !important; }
    .ios-bottle-icon { width: 52px !important; height: 52px !important; }
    .ios-bottle-circle { width: 44px !important; height: 44px !important; }
    .ios-bottle-circle svg { width: 24px !important; height: 24px !important; }
    .ios-step-label { font-size: .58rem !important; }
    .ios-step-sublabel { display: none !important; }
  }

  /* ─── CARRUSEL SABIANS QUE ─────────────────────── */


  /* ═══ CARDS DE AGUA — BORDE NEÓN VERDE ═══ */
  .prod-grid.cat-agua .prod-card {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow:
      0 0 0 1.5px rgba(168, 197, 110, 0.6),
      0 0 18px rgba(168, 197, 110, 0.35),
      0 0 40px rgba(139, 168, 87, 0.2),
      inset 0 0 30px rgba(139, 168, 87, 0.08) !important;
    transition: box-shadow .3s var(--ease), transform .2s var(--ease) !important;
  }
  .prod-grid.cat-agua .prod-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 2px rgba(168, 197, 110, 0.85),
      0 0 28px rgba(168, 197, 110, 0.55),
      0 0 60px rgba(139, 168, 87, 0.35),
      inset 0 0 40px rgba(139, 168, 87, 0.12) !important;
  }
  .prod-grid.cat-agua .prod-card::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -2px;
    width: 4px;
    height: 80%;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(168, 197, 110, 0.9) 30%,
      #A8C56E 50%,
      rgba(168, 197, 110, 0.9) 70%,
      transparent 100%
    );
    box-shadow:
      0 0 12px 4px rgba(168, 197, 110, 0.7),
      0 0 30px 8px rgba(139, 168, 87, 0.4);
    z-index: 3;
    pointer-events: none;
    animation: neonPulse 2.8s ease-in-out infinite;
  }
  .prod-grid.cat-agua .prod-card::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -2px;
    width: 4px;
    height: 80%;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(168, 197, 110, 0.9) 30%,
      #A8C56E 50%,
      rgba(168, 197, 110, 0.9) 70%,
      transparent 100%
    );
    box-shadow:
      0 0 12px 4px rgba(168, 197, 110, 0.7),
      0 0 30px 8px rgba(139, 168, 87, 0.4);
    z-index: 3;
    pointer-events: none;
    animation: neonPulse 2.8s ease-in-out infinite;
  }
  @media (max-width: 768px) {
    .prod-grid.cat-agua .prod-card::before,
    .prod-grid.cat-agua .prod-card::after {
      width: 3px;
      box-shadow:
        0 0 8px 3px rgba(168, 197, 110, 0.6),
        0 0 18px 5px rgba(139, 168, 87, 0.3);
    }
    .prod-grid.cat-agua .prod-card {
      box-shadow:
        0 0 0 1px rgba(168, 197, 110, 0.5),
        0 0 12px rgba(168, 197, 110, 0.25),
        inset 0 0 20px rgba(139, 168, 87, 0.06) !important;
    }
  }

  /* ── STATUS BAR: MARRÓN PREMIUM ── */
  #inline-order-status {
    background: linear-gradient(135deg, #1A1208 0%, #241A10 50%, #2E2018 100%) !important;
    border: 1.5px solid rgba(168, 197, 110, 0.4) !important;
    box-shadow:
      0 0 0 1px rgba(168, 197, 110, 0.1),
      0 0 60px rgba(139, 168, 87, 0.12),
      inset 0 0 80px rgba(26, 18, 8, 0.8) !important;
  }
  #inline-order-status::before {
    background: linear-gradient(180deg, transparent, #A8C56E 35%, #A8C56E 65%, transparent);
    box-shadow: 0 0 16px 5px rgba(168,197,110,.5), 0 0 40px 10px rgba(139,168,87,.25);
  }
  #inline-order-status::after {
    background: linear-gradient(180deg, transparent, #A8C56E 35%, #A8C56E 65%, transparent);
    box-shadow: 0 0 16px 5px rgba(168,197,110,.5), 0 0 40px 10px rgba(139,168,87,.25);
  }
  .ios-top-section {
    border-bottom-color: rgba(168, 197, 110, 0.12) !important;
  }
  .ios-main-title {
    color: #fff !important;
    text-shadow: 0 0 20px rgba(168, 197, 110, 0.3) !important;
  }
  .ios-main-sub {
    color: rgba(255,255,255,.5) !important;
  }
  .ios-bottle-circle.active {
    background: rgba(168, 197, 110, 0.1) !important;
    border-color: #A8C56E !important;
    box-shadow:
      0 0 0 5px rgba(168, 197, 110, 0.1),
      0 0 20px rgba(168, 197, 110, 0.5) !important;
  }
  .ios-bottle-circle {
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.1) !important;
  }
  .ios-bottle-circle.done {
    background: rgba(168, 197, 110, 0.07) !important;
    border-color: rgba(168, 197, 110, 0.35) !important;
  }
  .ios-step-block:not(:last-child)::after {
    border-top-color: rgba(255,255,255,.1) !important;
  }
  .ios-step-block.done:not(:last-child)::after {
    border-top-color: #A8C56E !important;
    box-shadow: 0 0 8px rgba(168,197,110,.4) !important;
  }
  .ios-time-pill {
    background: rgba(26, 18, 8, 0.8) !important;
    border-color: rgba(168, 197, 110, 0.35) !important;
    backdrop-filter: blur(8px) !important;
  }
  .ios-step-label.active { color: #A8C56E !important; }
  .ios-step-label.done   { color: rgba(255,255,255,.65) !important; }
  .ios-step-label        { color: rgba(255,255,255,.2) !important; }

  /* ── MODAL PRODUCTO DETAIL ── */
  #m-product-detail {
    padding: 0 !important;
    align-items: stretch !important;
  }
  #m-product-detail .modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #mpd-img-wrap {
    height: 320px !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  #m-product-detail .modal-head {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    padding: 14px 16px !important;
    background: transparent !important;
    border: none !important;
    justify-content: flex-end !important;
  }
  #m-product-detail .modal-x {
    background: rgba(0,0,0,.5) !important;
    border-color: rgba(255,255,255,.25) !important;
    color: #fff !important;
    backdrop-filter: blur(6px) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }
  #m-product-detail .modal-body {
    padding: 22px 20px 48px !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
  @media (min-width: 769px) {
    #m-product-detail {
      padding: 20px !important;
      align-items: center !important;
    }
    #m-product-detail .modal {
      max-width: 480px !important;
      width: 480px !important;
      height: auto !important;
      max-height: 90vh !important;
      border-radius: var(--r-lg) !important;
    }
    #mpd-img-wrap {
      height: 260px !important;
      border-radius: 14px !important;
      margin-bottom: 18px !important;
      flex-shrink: unset !important;
    }
    #m-product-detail .modal-head {
      position: relative !important;
      background: transparent !important;
      border-bottom: none !important;
      padding: 16px 20px 0 !important;
    }
    #m-product-detail .modal-x {
      background: rgba(255,255,255,.07) !important;
      border-color: rgba(255,255,255,.1) !important;
      border-radius: 8px !important;
      width: 30px !important;
      height: 30px !important;
    }
    #m-product-detail .modal-body {
      padding: 16px 24px 24px !important;
      flex: unset !important;
      overflow-y: unset !important;
    }
  }

  /* ── MODALES AGUA / AGUA MUERTA ── */
  #m-banner-agua,
  #m-banner-muerta {
    padding: 0 !important;
    align-items: stretch !important;
  }
  #m-banner-agua .modal,
  #m-banner-muerta .modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #m-banner-agua .modal-head,
  #m-banner-muerta .modal-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    padding: 14px 16px !important;
    background: rgba(28,20,16,.85) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  #m-banner-agua .modal-x,
  #m-banner-muerta .modal-x {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.15) !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }
  #m-banner-agua .modal-body,
  #m-banner-muerta .modal-body {
    padding: 24px 20px 48px !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
  #m-banner-agua .mineral-modal-atom svg,
  #m-banner-muerta .mineral-modal-atom svg {
    width: 140px !important;
    height: 140px !important;
  }
  #m-banner-agua .mineral-modal-atom,
  #m-banner-muerta .mineral-modal-atom {
    padding: 24px 0 18px !important;
  }
  .mineral-modal-title {
    font-size: 1.6rem !important;
  }
  .mineral-modal-desc {
    font-size: .9rem !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
  }
  .mineral-benefit-item {
    font-size: .86rem !important;
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
  }
  .mineral-benefits {
    padding: 18px !important;
  }
  @media (min-width: 769px) {
    #m-banner-agua,
    #m-banner-muerta {
      padding: 20px !important;
      align-items: center !important;
    }
    #m-banner-agua .modal,
    #m-banner-muerta .modal {
      max-width: 420px !important;
      width: 420px !important;
      height: auto !important;
      max-height: 90vh !important;
      border-radius: var(--r-lg) !important;
    }
    #m-banner-agua .modal-head,
    #m-banner-muerta .modal-head {
      position: relative !important;
      background: transparent !important;
      backdrop-filter: none !important;
      border-bottom: none !important;
      padding: 22px 26px 18px !important;
    }
    #m-banner-agua .modal-x,
    #m-banner-muerta .modal-x {
      border-radius: 8px !important;
      width: 30px !important;
      height: 30px !important;
    }
    #m-banner-agua .modal-body,
    #m-banner-muerta .modal-body {
      padding: 14px 18px 20px !important;
      flex: unset !important;
    }
    #m-banner-agua .mineral-modal-atom svg,
    #m-banner-muerta .mineral-modal-atom svg {
      width: 100px !important;
      height: 100px !important;
    }
  }

  /* ── MODAL MINERAL DETAIL ── */
  #m-mineral-detail {
    padding: 0 !important;
    align-items: stretch !important;
  }
  #m-mineral-detail .modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #m-mineral-detail .modal-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    padding: 14px 16px !important;
    background: rgba(28,20,16,.92) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  #m-mineral-detail .modal-x {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.15) !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }
  #m-mineral-detail .modal-body {
    padding: 24px 20px 80px !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
  #m-mineral-detail #mnd-atom-wrap {
    height: 180px !important;
  }
  #m-mineral-detail #mnd-atom-wrap svg {
    width: 160px !important;
    height: 160px !important;
  }
  #m-mineral-detail .mineral-modal-title {
    font-size: 1.8rem !important;
  }
  #m-mineral-detail .mineral-modal-symbol {
    font-size: .78rem !important;
    margin-bottom: 20px !important;
  }
  #m-mineral-detail .mineral-modal-desc {
    font-size: .92rem !important;
    line-height: 1.75 !important;
    margin-bottom: 22px !important;
  }
  #m-mineral-detail .mineral-benefit-item {
    font-size: .88rem !important;
    margin-bottom: 12px !important;
    line-height: 1.65 !important;
  }
  #m-mineral-detail .mineral-benefits {
    padding: 20px !important;
    border-radius: 16px !important;
  }
  #m-mineral-detail .mineral-benefits-title {
    font-size: .68rem !important;
    margin-bottom: 14px !important;
  }
  @media (min-width: 769px) {
    #m-mineral-detail {
      padding: 20px !important;
      align-items: center !important;
    }
    #m-mineral-detail .modal {
      max-width: 420px !important;
      width: 420px !important;
      height: auto !important;
      max-height: 90vh !important;
      border-radius: var(--r-lg) !important;
    }
    #m-mineral-detail .modal-head {
      position: relative !important;
      background: transparent !important;
      backdrop-filter: none !important;
      border-bottom: none !important;
      padding: 22px 26px 18px !important;
    }
    #m-mineral-detail .modal-body {
      padding: 8px 26px 24px !important;
      flex: unset !important;
      overflow-y: unset !important;
    }
    #m-mineral-detail #mnd-atom-wrap {
      height: 130px !important;
    }
    #m-mineral-detail #mnd-atom-wrap svg {
      width: 120px !important;
      height: 120px !important;
    }
  }

  /* ═══ AJUSTES DESKTOP ═══ */
  @media (min-width: 769px) {
    #m-mineralizada {
      padding: 20px !important;
      align-items: center !important;
    }
    #m-mineralizada .modal,
    #m-mineralizada > div {
      max-width: 480px !important;
      width: 480px !important;
      height: auto !important;
      max-height: 88vh !important;
      border-radius: var(--r-lg) !important;
      overflow-y: auto !important;
    }
    #m-mineralizada > div > div:last-child {
      border-radius: var(--r-lg) !important;
    }
    #store-banner-img {
      max-width: 560px !important;
      height: 200px !important;
      margin-left: auto !important;
      margin-right: auto !important;
      border-radius: var(--r-lg) !important;
    }
    #store-bottom-banner-1,
    #store-bottom-banner-2 {
      max-width: 560px !important;
      height: 200px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    #m-product-detail {
      padding: 20px !important;
      align-items: center !important;
    }
    #m-product-detail .modal {
      max-width: 440px !important;
      width: 440px !important;
      height: auto !important;
      max-height: 88vh !important;
      border-radius: var(--r-lg) !important;
      overflow-y: auto !important;
      display: block !important;
    }
    #mpd-img-wrap {
      height: 220px !important;
      border-radius: 14px !important;
      margin-bottom: 18px !important;
      flex-shrink: unset !important;
      background: linear-gradient(135deg,#3D2E22,#1C1410) !important;
    }
    #mpd-img-wrap img,
    #mpd-img-wrap video {
      object-fit: contain !important;
      padding: 8px !important;
    }
    #m-product-detail .modal-head {
      position: relative !important;
      background: transparent !important;
      backdrop-filter: none !important;
      border-bottom: none !important;
      padding: 16px 20px 0 !important;
    }
    #m-product-detail .modal-x {
      background: rgba(255,255,255,.07) !important;
      border-color: rgba(255,255,255,.1) !important;
      border-radius: 8px !important;
      width: 30px !important;
      height: 30px !important;
    }
    #m-product-detail .modal-body {
      padding: 14px 22px 24px !important;
      flex: unset !important;
      overflow-y: unset !important;
    }
  }

 @media (max-width: 768px) {
  /* Aumentar padding del topbar completo */
  .topbar {
    padding-top: 18px !important;
    padding-bottom: 10px !important;
  }
  
 
  
  /* Si usas el contenedor de acciones */
  .topbar-right-actions {
    margin-top: 4px;
  }
  
  /* Ajustar altura del topbar si es necesario */
  .topbar {
    min-height: 64px; /* Aumentado de 56px */
  }
}

  /* ═══ HYDROSALUD GRID ═══ */


  /* ═══════════════════════════════════════
  SIDEBAR COLAPSABLE - VERSIÓN FINAL LIMPIA
  ═══════════════════════════════════════ */

  /* Navegación en topbar (oculta por defecto) */
  /* ─── NAVEGACIÓN EN TOPBAR ─── */
  .topbar-nav {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 0px;  /* ← Cambiado de 16px a auto para empujar a la derecha */
  margin-right: 0px; /* ← Espacio a la derecha */
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center; /* ← Alinear a la derecha */
}

.topbar-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;  /* ← Más padding para mejor área de hover */
    margin: 4px 8px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 500;
  color: #2E7D32;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none !important;
  position: relative;
}

.topbar-nav-item:hover {
  background: rgba(46, 125, 50, .15);
  color: #1B5E20;
  transform: translateY(-1px);
}

/* ← NUEVO: Estado activo/resaltado */
.topbar-nav-item.active {
  background: rgba(46, 125, 50, .2) !important;
  color: #1B5E20 !important;
  border-color: rgba(46, 125, 50, .4) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(46, 125, 50, .2);
}

.topbar-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--c-green);
  border-radius: 3px 3px 0 0;
}

.topbar-nav-item i { 
  font-size: .9rem; 
  color: inherit; 
}

  /* Botón toggle siempre visible en desktop */
  @media (min-width: 769px) {
    /* .topbar-toggle {
      display: flex !important;
    } */
    
    /* Botón X siempre visible en PC */
    .sb-close-btn {
      display: flex !important;
    }
    
    /* Sidebar colapsado */
    body.sidebar-collapsed .sidebar {
      transform: translateX(-100%) !important;
    }
    
    body.sidebar-collapsed .main {
      margin-left: 0 !important;
    }
    
    body.sidebar-collapsed .topbar {
      left: 0 !important;
    }
    
    /* Mostrar navegación en topbar cuando sidebar está colapsado */
    body.sidebar-collapsed .topbar-nav {
      display: flex !important;
    }
    
    body.sidebar-collapsed .topbar-title {
      display: none !important;
    }
    
    /* Ajuste del topbar */
    .topbar {
      justify-content: flex-start !important;
    }
    
    .topbar-logo {
      position: relative !important;
      left: auto !important;
      transform: none !important;
      margin: 0 16px;
    }
    
    .topbar-logo:hover {
      transform: scale(1.05) !important;
    }
  }

  /* ═══════════════════════════════════════
  PC: SOLO TOPBAR (Sidebar oculto)
  ═══════════════════════════════════════ */
  @media (min-width: 769px) {
    /* ─── ADMIN Y REPARTIDOR ─── */
    body.is-admin .sidebar,
    body.is-repartidor .sidebar {
      transform: translateX(0) !important;
    }
    
    /* ARREGLO DEL DESPLAZAMIENTO: Resetear el margen y aplicarlo solo al contenedor externo */
    body.is-admin .main,
    body.is-repartidor .main {
      margin-left: 0 !important;
    }
    body.is-admin #app > .main,
    body.is-repartidor #app > .main {
      margin-left: var(--sw) !important;
    }
    
    body.is-admin .topbar,
    body.is-repartidor .topbar {
      left: var(--sw) !important;
    }
    body.is-admin .topbar-toggle,
    body.is-repartidor .topbar-toggle,
    body.is-admin .topbar-nav,
    body.is-repartidor .topbar-nav,
    body.is-admin .topbar-title,
    body.is-repartidor .topbar-title {
      display: none !important;
    }

    /* ─── CLIENTES ─── */
    body.is-client .sidebar {
      transform: translateX(-100%) !important;
      transition: transform 0.3s var(--ease);
    }
    body.is-client .sidebar.open {
      transform: translateX(0) !important;
      box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }
    body.is-client .main {
      margin-left: 0 !important;
    }
    body.is-client .topbar {
      left: 0 !important;
    }
    body.is-client .topbar-toggle,
    body.is-client .topbar-title {
      display: none !important;
    }
    body.is-client .topbar-nav {
      display: flex !important;
    }

    /* ─── BARRA SUPERIOR LIMPIA ─── */
    .topbar {
      justify-content: space-between !important;
    }
    
    /* ARREGLO DEL LOGO: Quítamos el absolute para que no se superponga */
    .topbar-logo {
      position: static !important;
      transform: none !important;
      margin: 0 auto !important; /* Esto lo centra si hay espacio disponible */
    }
    
    .topbar-right {
      margin-left: auto !important;
    }
  }

  /* ─── CARRUSEL HERO (Portada) - Solo Inicio ─── */
  .view-inicio .hero-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    height: 700px;
    Max-width:100%;
  }
  .view-inicio .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: transparent;
  }
  .view-inicio .hero-slide.active { opacity: 1; }
  .view-inicio .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .view-inicio .hero-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
  }
  .view-inicio .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
  }
  .view-inicio .hero-dot.active {
    background: var(--c-gold-lt);
    width: 30px;
    border-radius: 5px;
  }

  /* ─── CARRUSEL HORIZONTAL DE PRODUCTOS - Solo Inicio ─── */
  .view-inicio .prod-carousel-section {
    margin-bottom: 25px;
    margin-top: 10px !important;
  }
  .prod-carousel-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;  /* Aumentado de 5px a 20px para mejor espaciado */
  text-align: center;   /* ✅ Centrar texto */
  display: flex;
  align-items: center;
  justify-content: center;  /* ✅ Centrar contenido flex */
  gap: 10px;
  width: 100%;  /* ✅ Asegurar ancho completo */
}
  .view-inicio .prod-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .view-inicio .prod-scroller::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .view-inicio .prod-scroller .prod-card {
    flex: 0 0 260px; /* Ancho fijo para cada tarjeta */
    scroll-snap-align: start;
    min-height: 380px;
    margin-top: 40px;
  }
  .view-inicio .prod-scroller .prod-card .prod-img {
    height: 350px;
    size: contain;

  }

  @media (max-width: 768px) {
  .prod-carousel-title {
    font-size: 1.5rem;  /* Tamaño más pequeño en móvil */
    text-align: center;
    justify-content: center;
  }
}

  /* ─── BOTONES DE NAVEGACIÓN CARRUSEL PRODUCTOS ─── */
.prod-carousel-section {
  position: relative;
}

.prod-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(46, 125, 50, 0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
}

.prod-carousel-nav:hover {
  background: rgba(46, 125, 50, 1);
  border-color: rgba(46, 125, 50, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(46, 125, 50, 0.5);
}

.prod-carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.prod-carousel-nav.prev {
  left: -22px;
}

.prod-carousel-nav.next {
  right: -22px;
}

.prod-carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.prod-carousel-nav:disabled:hover {
  background: rgba(46, 125, 50, 0.9);
  transform: translateY(-50%);
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
}

/* Ocultar botones en móvil */
@media (max-width: 768px) {
  .prod-carousel-nav {
    display: none;
  }
}
  @media (max-width: 768px) {
    .view-inicio .hero-carousel { height: 220px; }
    .view-inicio .prod-carousel-title { font-size: 1.3rem; }
    .view-inicio .prod-scroller { gap: 14px; }
    .view-inicio .prod-scroller .prod-card {
      flex: 0 0 230px;
      min-height: 340px;
    }
    .view-inicio .prod-scroller .prod-card .prod-img {
      height: 180px;
    }
  }

/* ═══ CARRUSEL DE FOTOS DE ARIS ═══ */
.fotos-aris-section {
  margin: 60px 0 40px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.fotos-aris-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 0 16px;
}

.fotos-aris-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  justify-content: center;
}

.fotos-aris-title i {
  color: var(--c-green);
  font-size: 1.8rem;
}

/* Scroller - ocupa todo el ancho */
.fotos-aris-scroller {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.fotos-aris-scroller::-webkit-scrollbar {
  display: none;
}

/* Cada slide ocupa todo el ancho visible */
.foto-aris-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
}

/* Imagen ocupa todo el ancho sin perder proporción */
.foto-aris-slide img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.foto-aris-slide:hover img {
  transform: scale(1.01);
}

/* Ocultar botones de navegación (ya no se usan) */
.fotos-aris-nav {
  display: none !important;
}

/* Ocultar dots (ya no se usan) */
.fotos-aris-dots {
  display: none !important;
}

@media (min-width: 769px) {
  .fotos-aris-section {
    margin: 80px 0 60px;
  }
  
  .fotos-aris-title {
    font-size: 2.4rem;
  }
  
  .foto-aris-slide img {
    max-height: 120vh;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Responsive móvil */
@media (max-width: 768px) {
  .fotos-aris-title {
    font-size: 1.4rem;
  }
  
  .fotos-aris-section {
    margin: 40px 0 30px;
  }
  
  .foto-aris-slide img {
    max-height: 50vh;
  }
}
/* Admin - Gestión de fotos */
.fotos-aris-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.foto-aris-admin-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.foto-aris-admin-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.foto-aris-admin-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  gap: 8px;
  justify-content: center;
}

.foto-aris-admin-actions button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.foto-aris-delete {
  background: rgba(220, 38, 38, 0.9);
  color: white;
}

.foto-aris-delete:hover {
  background: #c62828;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .fotos-aris-title {
    font-size: 1.4rem;
  }
  
  .fotos-aris-section {
    margin: 40px 0 30px;
  }
  
  .foto-aris-slide {
    max-width: 100%;
  }
}
  .sidebar .sb-item { color: #1B5E20; }
  .sidebar .sb-item:hover { color: #2E7D32; background: rgba(255,255,255,.4); }
  .sidebar .sb-item.active { color: #1B5E20; background: rgba(46,125,50,.15); }
  .sidebar .sb-section-label { color: #558B2F; }
  .sidebar .sb-user-info p { color: #1B5E20; }
  .sidebar .sb-user-info span { color: #558B2F; }
  .sidebar .sb-logo-text h2 { color: #1B5E20; }

  /* Textos del topbar para fondo verde claro */
  /* Textos del topbar para fondo verde claro */
  .topbar-pill { color: #1B5E20 !important; border-color: rgba(46,125,50,.25) !important; background: rgba(46,125,50,.08) !important; }
  .topbar-pill:hover { color: #2E7D32 !important; background: rgba(46,125,50,.15) !important; border-color: rgba(46,125,50,.4) !important; }
  .topbar-pill span { color: #1B5E20 !important; }
  .topbar-search { border-color: rgba(46,125,50,.2) !important; background: rgba(46,125,50,.06) !important; }
  .topbar-search input { color: #1B5E20 !important; }
  .topbar-search i { color: #558B2F !important; }

  /* ═══ SECCIÓN INTRODUCCIÓN ESTILO HAIR PLUS ═══ */
  .view-inicio .intro-section {
      background: var(--c-bg);
      padding: 20px 20px;
      text-align: center;
      border-bottom: 0px solid rgba(46, 125, 50, 0.12);
      margin-bottom: 2px;
  }

  .view-inicio .intro-section .intro-title {
      font-family: var(--font-display);
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--c-text);
      letter-spacing: -0.02em;
      margin-bottom: 16px;
      text-transform: uppercase;
  }

  .view-inicio .intro-section .intro-subtitle {
      font-size: 1rem;
      font-weight: 600;
      color: var(--c-green);
      margin-bottom: 16px;
      letter-spacing: 0.02em;
  }

  .view-inicio .intro-section .intro-desc {
      font-size: 0.95rem;
      color: var(--c-muted);
      line-height: 1.7;
      max-width: 720px;
      margin: 0 auto 28px;
  }

  .view-inicio .intro-section .intro-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 36px;
      background: linear-gradient(135deg, #2E7D32, #4CAF50);
      color: #fff;
      font-size: 0.9rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      border: none;
      border-radius: 99px;
      cursor: pointer;
      transition: all 0.25s var(--ease);
    
  }

  .view-inicio .intro-section .intro-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(46, 125, 50, 0.45);
      /* background: linear-gradient(135deg, #1B5E20, #388E3C); */
  }

  @media (max-width: 768px) {
      .view-inicio .intro-section {
          padding: 20px 20px;
      }
      
      .view-inicio .intro-section .intro-title {
          font-size: 1.6rem;
      }
      
      .view-inicio .intro-section .intro-subtitle {
          font-size: 0.9rem;
      }
      
      .view-inicio .intro-section .intro-desc {
          font-size: 0.88rem;
      }
      
      .view-inicio .intro-section .intro-btn {
          padding: 12px 28px;
          font-size: 0.85rem;
      }
  }

  @media (max-width: 768px) {
  .cart-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    transform: translateX(100%) !important;
    box-sizing: border-box !important;
  }

  .cart-panel.on {
    transform: translateX(0) !important;
  }
}

  /* ═══ CARRITO: LAYOUT RESPONSIVE ═══ */

  /* Contenedor principal del carrito */
  .cart-page-container {
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 32px;
      align-items: start;
      max-width: 1200px;
      margin: 0 auto;
  }

  /* Columna de productos */
  .cart-products-col {
      min-width: 0;
  }

  /* Columna de resumen (sticky en desktop) */
  .cart-summary-col {
      position: sticky;
      top: 100px;
  }

  /* ═══ MÓVIL: Apilar todo verticalmente ═══ */
  @media (max-width: 768px) {
      .cart-page-container {
          grid-template-columns: 1fr !important;
          gap: 20px !important;
          padding: 0 4px;
      }
      
      .cart-summary-col {
          position: static !important;
          order: 2; /* Resumen va después de los productos */
      }
      
      .cart-products-col {
          order: 1;
      }
      
      /* Header del carrito */
      .cart-page-header {
          flex-direction: column !important;
          align-items: flex-start !important;
          gap: 12px !important;
          padding: 16px !important;
      }
      
      .cart-page-header h2 {
          font-size: 1.5rem !important;
      }
      
      .cart-page-header .btn {
          width: 100% !important;
          justify-content: center !important;
      }
      
      /* Tarjetas de productos */
      .cart-item-card {
          flex-direction: column !important;
          align-items: flex-start !important;
          gap: 12px !important;
          padding: 16px !important;
      }
      
      .cart-item-img {
          width: 100% !important;
          height: 150px !important;
      }
      
      .cart-item-info {
          width: 100% !important;
      }
      
      .cart-item-actions {
          width: 100% !important;
          flex-direction: row !important;
          justify-content: space-between !important;
      }
      
      /* Resumen del pedido */
      .cart-summary-box {
          padding: 20px !important;
      }
      
      .cart-summary-box h3 {
          font-size: 1.2rem !important;
      }
      
      .cart-summary-row {
          flex-direction: column !important;
          align-items: flex-start !important;
          gap: 4px !important;
          padding: 12px 0 !important;
      }
      
      .cart-summary-row .label {
          font-size: 0.85rem !important;
      }
      
      .cart-summary-row .value {
          font-size: 1.1rem !important;
          font-weight: 700 !important;
      }
      
      .cart-total-row {
          flex-direction: column !important;
          align-items: flex-start !important;
          gap: 8px !important;
          padding: 16px 0 !important;
          border-top: 2px solid var(--c-border) !important;
          margin-top: 8px !important;
      }
      
      .cart-total-row .label {
          font-size: 1rem !important;
      }
      
      .cart-total-row .value {
          font-size: 1.5rem !important;
          color: var(--c-green) !important;
      }
      
      /* Campos del formulario */
      .cart-form-field {
          margin-bottom: 16px !important;
      }
      
      .cart-form-field label {
          font-size: 0.75rem !important;
          margin-bottom: 6px !important;
      }
      
      .cart-form-field select,
      .cart-form-field input,
      .cart-form-field textarea {
          width: 100% !important;
          padding: 12px !important;
          font-size: 0.9rem !important;
      }
      
      /* Botón confirmar */
      .cart-confirm-btn {
          width: 100% !important;
          padding: 16px !important;
          font-size: 1rem !important;
      }
  }

  /* ═══ MÓVIL PEQUEÑO (380px o menos) ═══ */
  @media (max-width: 380px) {
      .cart-page-header h2 {
          font-size: 1.3rem !important;
      }
      
      .cart-item-card {
          padding: 12px !important;
      }
      
      .cart-item-img {
          height: 120px !important;
      }
      
      .cart-summary-box {
          padding: 16px !important;
      }
      
      .cart-total-row .value {
          font-size: 1.3rem !important;
      }
  }

  /* Botones de acción en topbar (solo clientes) */
  .topbar-client-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-right: 16px;
      z-index: 3;
  }

  .topbar-action-btn {
      position: relative;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      border: 1px solid rgba(46, 125, 50, 0.2);
      background: rgba(46, 125, 50, 0.08);
      color: #1B5E20;
      font-size: 1.1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      flex-shrink: 0;
  }

  .topbar-action-btn:hover {
      background: rgba(46, 125, 50, 0.15);
      border-color: rgba(46, 125, 50, 0.4);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
  }

  .topbar-action-badge {
      position: absolute;
      top: -6px;
      right: -6px;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      background: linear-gradient(135deg, #2E7D32, #4CAF50);
      color: #fff;
      border-radius: 10px;
      font-size: 0.7rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
  }

  @media (max-width: 768px) {
      .topbar-client-actions {
          gap: 8px;
          margin-right: 8px;
      }
      
      .topbar-action-btn {
          width: 36px;
          height: 36px;
          font-size: 1rem;
      }
  }
  /* ═══ BOTÓN "MÁS" EN TOPBAR PC ═══ */
.topbar-mas-btn {
  display: none; /* Oculto por defecto */
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  margin-left: 8px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: #1B5E20;
  background: rgba(46, 125, 50, .08);
  border: 1px solid rgba(46, 125, 50, .2);
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-mas-btn:hover {
  background: rgba(46, 125, 50, .15);
  border-color: rgba(46, 125, 50, .4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, .15);
}

.topbar-mas-btn i {
  font-size: .95rem;
}

/* Mostrar botón "Más" solo en PC para clientes */
@media (min-width: 769px) {
  body.is-client .topbar-mas-btn {
    display: flex;
  }
}

/* ═══ SIDEBAR PC: ANIMACIÓN ELEGANTE ═══ */
@media (min-width: 769px) {
  body.is-client .sidebar {
    transform: translateX(-100%) !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease !important;
    box-shadow: none;
  }
  
  body.is-client .sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15),
                2px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Overlay suave al abrir el sidebar en PC */
  body.is-client .sidebar-overlay.on {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
  }
  
  /* Botón X del sidebar más elegante en PC */
  body.is-client .sb-close-btn {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    color: #1B5E20;
    transition: all 0.25s var(--ease);
  }
  
  body.is-client .sb-close-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #C62828;
    transform: rotate(90deg);
  }
}
/* ═══ SECCIÓN "¿QUÉ ES EL SECRETO DE ARIS?" ═══ */
.sobre-aris-section {
  margin-bottom: 30px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.sobre-aris-container {
  max-width: 720px;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 60px 40px;
  background: linear-gradient(145deg, rgba(46, 125, 50, 0.04) 0%, rgba(27, 94, 32, 0.06) 100%);
  border-radius: 24px;
  border: 1px solid rgba(46, 125, 50, 0.15);
  box-shadow: 0 8px 40px rgba(46, 125, 50, 0.08);
}





@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sobre-aris-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sobre-aris-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 32px;
  max-width: 200px;
}

.sobre-aris-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.4), transparent);
}

.sobre-aris-divider i {
  color: var(--c-green);
  font-size: 1.2rem;
  opacity: 0.7;
}

.sobre-aris-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.sobre-aris-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-text);
  margin: 0;
  font-weight: 400;
}

.sobre-aris-text strong {
  color: var(--c-green);
  font-weight: 700;
}

.sobre-aris-highlight {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--c-green);
  margin-top: 12px;
  position: relative;
  padding: 0 20px;
}

.sobre-aris-highlight::before,
.sobre-aris-highlight::after {
  content: '"';
  font-size: 2rem;
  color: rgba(46, 125, 50, 0.3);
  font-family: var(--font-display);
  line-height: 1;
}

.sobre-aris-highlight::before {
  position: absolute;
  left: -5px;
  top: -8px;
}

.sobre-aris-highlight::after {
  position: absolute;
  right: -5px;
  bottom: -16px;
}

.sobre-aris-decoration-bottom {
  margin-top: 16px;
}

.sobre-aris-decoration-bottom .sobre-aris-leaf {
  animation-delay: 1.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .sobre-aris-section {
    margin: 50px 0 20px;
    padding: 0 16px;
  }
  
  .sobre-aris-container {
    padding: 40px 24px;
  }
  
  .sobre-aris-title {
    font-size: 1.6rem;
  }
  
  .sobre-aris-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .sobre-aris-highlight {
    font-size: 1.05rem;
  }
  
  .sobre-aris-leaf {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .sobre-aris-container {
    padding: 32px 20px;
  }
  
  .sobre-aris-title {
    font-size: 1.4rem;
  }
  
  .sobre-aris-text {
    font-size: 0.9rem;
  }
}

/* ═══ SECCIÓN "GRACIAS POR SER PARTE" ═══ */
.gracias-aris-section {
  margin: 60px 0 40px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.gracias-aris-container {
  max-width: 680px;
  width: 100%;
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(145deg, rgba(244, 241, 234, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: 24px;
  border: 1px solid rgba(46, 125, 50, 0.15);
  box-shadow: 0 8px 40px rgba(46, 125, 50, 0.08);
  position: relative;
  overflow: hidden;
}

.gracias-aris-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-green), transparent);
  opacity: 0.3;
}

.gracias-aris-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gracias-aris-icon:hover {
  transform: rotate(15deg) scale(1.05);
}

.gracias-aris-icon i {
  font-size: 1.5rem;
  color: var(--c-green);
}

.gracias-aris-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gracias-aris-title span {
  color: var(--c-green);
  font-style: italic;
  font-weight: 600;
}

.gracias-aris-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 180px;
}

.gracias-aris-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.4), transparent);
}

.gracias-aris-divider i {
  color: var(--c-green);
  font-size: 1rem;
  opacity: 0.7;
}

.gracias-aris-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-text);
  margin: 0 auto 32px;
  max-width: 520px;
  font-weight: 400;
}

.gracias-aris-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid rgba(46, 125, 50, 0.3);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.gracias-aris-btn:hover {
  background: rgba(46, 125, 50, 0.08);
  border-color: var(--c-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.15);
}

.gracias-aris-btn i {
  font-size: 0.85rem;
  color: var(--c-green);
  transition: transform 0.3s ease;
}

.gracias-aris-btn:hover i {
  transform: rotate(15deg);
}

/* Responsive */
@media (max-width: 768px) {
  .gracias-aris-section {
    margin: 40px 0 30px;
    padding: 0 16px;
  }
  
  .gracias-aris-container {
    padding: 40px 24px;
  }
  
  .gracias-aris-title {
    font-size: 1.6rem;
  }
  
  .gracias-aris-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .gracias-aris-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .gracias-aris-icon {
    width: 48px;
    height: 48px;
  }
  
  .gracias-aris-icon i {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .gracias-aris-container {
    padding: 32px 20px;
  }
  
  .gracias-aris-title {
    font-size: 1.4rem;
  }
  
  .gracias-aris-text {
    font-size: 0.9rem;
  }
}
/* ═══ FOOTER ═══ */
.site-footer {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: #F4F1EA;
  margin-top: 10px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 28px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-col { display: flex; flex-direction: column; gap: 16px; }

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 44px; height: 44px; border-radius: 10px; }
.footer-logo h3 { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin: 0; }

.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(244,241,234,0.85); margin: 0; }

.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: 0.3s;
}
.social-link:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.footer-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: #fff; margin: 0; padding-bottom: 10px;
  border-bottom: 2px solid rgba(132,204,22,0.4);
}

.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(244,241,234,0.85); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: #84CC16; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: rgba(244,241,234,0.85); font-size: 0.88rem; }
.footer-contact li i { color: #84CC16; width: 18px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 28px; background: rgba(0,0,0,0.15); }
.footer-bottom-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(244,241,234,0.7); }
.footer-bottom-content p{justify-content: center; text-align: center;}

@media (max-width: 768px) {
  .footer-container { padding: 36px 20px 24px; gap: 28px; }
  .footer-bottom-content { flex-direction: column; text-align: center; }
}

/* Transición suave */
body, .sidebar, .topbar, .card, .stat, .modal,
.cart-panel, .prod-card, .chip, .field input,
.field select, .field textarea {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

/* ─── ANIMACIONES DE PÁGINA ─────────────────────────────────── */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.content {
  position: relative;
}

.page-enter {
  animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-exit {
  animation: pageExit 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Skeleton Loader */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.skeleton-line {
  height: 20px;
  background: linear-gradient(
    90deg,
    rgba(46, 125, 50, 0.08) 0%,
    rgba(46, 125, 50, 0.15) 50%,
    rgba(46, 125, 50, 0.08) 100%
  );
  background-size: 200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-line.short {
  width: 150px;
}

.skeleton-line.medium {
  width: 250px;
}

.skeleton-line.long {
  width: 100%;
}

.skeleton-card {
  background: var(--grad-surface);
  border-radius: var(--r);
  padding: 24px;
  border: 1px solid var(--c-border);
}

.skeleton-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.skeleton-stat {
  background: var(--grad-surface);
  border-radius: var(--r);
  padding: 20px;
  border: 1px solid var(--c-border);
}

/* Animación de items del sidebar */
.sb-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(132, 204, 22, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.sb-item:hover::before {
  width: 300px;
  height: 300px;
}

.sb-item.active {
  transform: translateX(4px);
}

.sb-item:active {
  transform: scale(0.98);
}

/* Efecto ripple al hacer clic */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.sb-item .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(132, 204, 22, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Animación del título de página */
.ph h2 {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ph p {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
  opacity: 0;
}

/* Cards con entrada escalonada */
.card {
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat {
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.stat:nth-child(2) { animation-delay: 0.2s; opacity: 0; }
.stat:nth-child(3) { animation-delay: 0.3s; opacity: 0; }
.stat:nth-child(4) { animation-delay: 0.4s; opacity: 0; }

/* Transición suave para tablas */
.tbl-wrap {
  animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  opacity: 0;
}

/* Badges con bounce */
@keyframes badgeBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.sb-badge {
  animation: badgeBounce 0.4s ease-in-out;
}

/* Mobile: animaciones más rápidas */
@media (max-width: 768px) {
  .page-enter {
    animation-duration: 0.3s;
  }
  
  .page-exit {
    animation-duration: 0.2s;
  }
}

/* Animación de modales */
.overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.on {
  opacity: 1;
}

.overlay.on .modal {
  animation: modalEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ═══ SIDEBAR: Z-INDEX SUPERIOR + BLUR EN CONTENIDO ═══ */

/* Sidebar siempre por encima del topbar */
.sidebar {
  z-index: 10001 !important; /* Mayor que topbar (200) */
}

/* Topbar con z-index menor que el sidebar */
.topbar {
  z-index: 200 !important;
}

/* Overlay del sidebar */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000; /* Justo debajo del sidebar */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.on {
  opacity: 1;
  visibility: visible;
}

/* Contenido principal con blur cuando sidebar está abierto */
body.sidebar-open .main {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  transition: filter 0.3s ease;
}

body.sidebar-open .content {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  pointer-events: none; /* Evita clicks mientras está abierto */
}

/* Animación del sidebar */
@media (min-width: 769px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
  }
  
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3),
                2px 0 8px rgba(0, 0, 0, 0.2);
  }
}

/* En móvil */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 10001 !important;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  body.sidebar-open .main {
    filter: blur(6px);
    -webkit-filter: blur(6px);
  }
}

/* Transición suave para el blur */
.main,
.content {
  transition: filter 0.3s ease;
}

/* ═══ TOPBAR LIMPIO - LOGO CENTRADO ═══ */
.topbar {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px !important;
  height: 60px;
  position: fixed;
  top: 0;
  margin-bottom: 0px;
  left: var(--sw);
  right: 0;
  z-index: 200;
  background: var(--c-bg);
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(46,125,50,.15) !important;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.topbar-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

/* Logo centrado en móvil */
@media (max-width: 768px) {
  .topbar {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    height: 56px;
    left: 0;
    margin-top: -9px !important;
  }
  
  .topbar-left {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
  }
  
  .topbar-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .topbar-logo {
    margin: 0 auto;
    transform: none !important;
     margin-left:140px;
  }
  
  .topbar-right-actions {
    position: relative;
    z-index: 5;
  }
  
  .topbar-nav {
    display: none !important;
  }
  
  .topbar-mas-btn {
    display: none !important;
  }
}

/* Desktop: ocultar toggle si sidebar está visible */
@media (min-width: 769px) {
  body.is-admin .topbar-toggle,
  body.is-repartidor .topbar-toggle {
    display: none !important;
  }
  
  .topbar-mas-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(46, 125, 50, 0.2);
    background: rgba(46, 125, 50, 0.08);
    color: #1B5E20;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .topbar-mas-btn:hover {
    background: rgba(46, 125, 50, 0.15);
    border-color: rgba(46, 125, 50, 0.4);
    transform: translateY(-1px);
  }
  
  .topbar-mas-btn span {
    display: none;
  }
}

/* Ocultar elementos que ya no usamos */
.topbar-title,
.topbar-right,
.topbar-pill,
.topbar-search {
  display: none !important;
}

/* Acción del carrito */
.topbar-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(46, 125, 50, 0.2);
  background: rgba(46, 125, 50, 0.08);
  color: #1B5E20;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.topbar-action-btn:hover {
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(46, 125, 50, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.topbar-action-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: linear-gradient(135deg, #2E7D32, #4CAF50);
  color: #fff;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

/* Modo oscuro */
body.dark-mode .topbar-action-btn {
  background: rgba(46,125,50,0.12) !important;
  border-color: rgba(46,125,50,0.3) !important;
  color: #81C784 !important;
}

body.dark-mode .topbar-mas-btn {
  background: rgba(46,125,50,0.12) !important;
  border-color: rgba(46,125,50,0.3) !important;
  color: #81C784 !important;
}

/* ═══ BANNER FIJO HERO — REFACTOR RESPONSIVE ═══ */
.hero-banner-fixed {
  position: relative;
  width: calc(100% + 56px);
  margin: -28px -28px 20px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 40%, #8E8883 0%, #655F5F 40%, #8B807E 70%, #9D8D8D 100%);
  /* Altura fluida: nunca fija, siempre proporcional al viewport */
  aspect-ratio: 16 / 10;
  min-height: 420px;
  max-height: 92vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mantiene a la modelo/producto siempre visible al recortar */
  object-position: 70% center;
  display: block;
}

/* Velo de legibilidad muy sutil solo donde vive el CTA, sin tapar el resto de la imagen */
.hero-banner-fixed::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(10, 20, 10, .38) 0%, rgba(10, 20, 10, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Velo superior muy sutil, solo para legibilidad del kicker, sin tapar la imagen */
.hero-banner-fixed::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(10, 20, 10, .3) 0%, rgba(10, 20, 10, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-banner-kicker {
  position: absolute;
  top: clamp(22px, 4vw, 40px);
  left: clamp(60px, 12vw, 140px);
  z-index: 3;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  color: #F4F1EA;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
  pointer-events: none;
}

.hero-banner-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 5vw, 56px);
}

.hero-banner-content {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: center;
}

/* Título y subtítulo quedan disponibles pero ocultos por defecto,
   conservando la identidad visual actual (imagen + CTA como protagonistas) */
.hero-banner-title,
.hero-banner-italic,
.hero-banner-divider,
.hero-banner-subtitle {
  display: none;
}

.hero-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(14px, 2.2vw, 20px) clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, #2E7D32, #4CAF50);
  color: #fff;
  font-size: clamp(.85rem, 1.6vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 6px 24px rgba(27, 94, 32, .35);
  white-space: nowrap;
}

.hero-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(46, 125, 50, 0.45);
  background: linear-gradient(135deg, #1B5E20, #388E3C);
}

.hero-banner-btn:active {
  transform: translateY(0);
}

.hero-banner-btn:focus-visible {
  outline: 3px solid #A8C56E;
  outline-offset: 3px;
}

.hero-banner-btn i {
  font-size: .85em;
  transition: transform 0.3s ease;
}

.hero-banner-btn:hover i {
  transform: rotate(15deg);
}

/* ── Tablet: recorte y proporción ligeramente distintos ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-banner-fixed {
    aspect-ratio: 16 / 11;
    min-height: 380px;
  }
  .hero-banner-bg img {
    object-position: 65% center;
  }
}

/* ── Desktop grande: banner más panorámico, foco mantenido en modelo/producto ── */
@media (min-width: 1025px) {
  .hero-banner-fixed {
    aspect-ratio: 21 / 9;
    min-height: 480px;
  }
}

/* ── Móvil: recorte vertical más generoso, CTA siempre a salvo del contenido ── */
@media (max-width: 768px) {
  .hero-banner-fixed {
    width: calc(100% + 32px);
    margin: -16px -16px 16px;
    aspect-ratio: 4 / 5;
    min-height: 380px;
    max-height: 78vh;
  }
  .hero-banner-bg img {
    object-position: 62% 30%;
  }
  .hero-banner-fixed::after {
    height: 30%;
  }
  .hero-banner-overlay {
    padding: 20px 20px clamp(24px, 6vw, 36px);
  }
  .hero-banner-kicker {
    left: 40px;
  }
}


@media (max-width: 380px) {
  .hero-banner-fixed {
    aspect-ratio: 3 / 4;
    min-height: 340px;
  }
  .hero-banner-kicker {
    font-size: 1.15rem;
    left: 32px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero-banner-btn { transition: none; }
  .hero-banner-btn:hover { transform: none; }
}/* Banner de categoría */
/* Banner de categoría */
.category-banner {
  width: calc(100% + 56px) !important;
  margin-left: -28px !important;
  margin-right: -28px !important;
  margin-top: -0px !important;
  margin-bottom: 0px;
}

.category-banner + .prod-grid,
.ph + .prod-grid {
  margin-top: 24px !important;
  padding-top: 20px !important;
}



.category-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: none;
}

/* Ajustar padding del content cuando hay banner */
.content:has(.category-banner) {
  padding-top: 60px;
}

.category-banner {
  width: 100%;
  margin: 0;
  margin-top: 0px;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
}

.category-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 300px;
  /* Animación inicial */
  opacity: 0;
  transform: scale(1.05);
  animation: bannerFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  /* Transición suave para hover */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.4s ease;
}

/* Efecto hover elegante */
.category-banner:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Animación de entrada */
@keyframes bannerFadeIn {
  0% {
    opacity: 0;
    transform: scale(2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
 .category-banner {
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    margin-top: -16px !important;
  }
  
  .content:has(.category-banner) {
    padding-top: 56px;
  }
  
  .category-banner + .prod-grid,
  .ph + .prod-grid {
    margin-top: 16px !important;
    padding-top: 16px !important;
  }
  .category-banner {
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    margin-top: -16px !important;
  }
  
  .content:has(.category-banner) {
    padding-top: 56px;
  }
}

@media (max-width: 480px) {
  .category-banner img {
    max-height: 150px;
  }
}

@media (max-width: 768px) {
  .category-banner img {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .category-banner img {
    max-height: 150px;
  }
}

/* ═══ INPUTS DEL LOGIN DE PERFIL ═══ */
#prf-v-login .field input,
#prf-v-register .field input {
  background: rgba(46, 125, 50, 0.08) !important;
  border: 1.5px solid rgba(46, 125, 50, 0.25) !important;
  color: #1B5E20 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
}

#prf-v-login .field input::placeholder,
#prf-v-register .field input::placeholder {
  color: rgba(46, 125, 50, 0.4) !important;
}

#prf-v-login .field input:focus,
#prf-v-register .field input:focus {
  background: rgba(46, 125, 50, 0.12) !important;
  border-color: rgba(46, 125, 50, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
  outline: none !important;
}

/* Labels más elegantes */
#prf-v-login .field label,
#prf-v-register .field label {
  color: #2E7D32 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}


/* ═══ BANNER SUPERIOR (Admin) ═══ */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: bannerSlideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-banner.active {
    display: flex;
}

.top-banner i {
    font-size: 1rem;
    opacity: 0.8;
}

.top-banner-text {
    letter-spacing: 0.02em;
}

@keyframes bannerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ajustar topbar cuando el banner está activo — usa altura REAL del banner */
body.has-top-banner .topbar {
    top: var(--tb-h, 42px) !important;
}

body.has-top-banner .content {
    padding-top: calc(var(--tb-h, 42px) + 60px) !important;
}

body.has-top-banner.sidebar-collapsed .topbar {
    top: var(--tb-h, 42px) !important;
}

/* Ajustar sidebar cuando el banner está activo */
body.has-top-banner .sidebar {
    top: var(--tb-h, 42px) !important;
    height: calc(100vh - var(--tb-h, 42px)) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .top-banner {
        font-size: 0.82rem;
        padding: 8px 16px;
        line-height: 1.4;
    }
    
    body.has-top-banner .topbar {
        top: var(--tb-h, 38px) !important;
    }
    
    body.has-top-banner .content {
        padding-top: calc(var(--tb-h, 38px) + 56px) !important;
    }
    
    body.has-top-banner .sidebar {
        top: var(--tb-h, 38px) !important;
        height: calc(100vh - var(--tb-h, 38px)) !important;
    }
}



@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(46,125,50,0); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(46,125,50,.3); }
}

/* ═══ INPUTS FORMULARIO CONTACTO - FONDO CLARO ═══ */
#contact-name,
#contact-email,
#contact-subject,
#contact-message {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1.5px solid rgba(46, 125, 50, 0.25) !important;
  color: #1B5E20 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
}

#contact-name::placeholder,
#contact-email::placeholder,
#contact-subject::placeholder,
#contact-message::placeholder {
  color: rgba(46, 125, 50, 0.45) !important;
  font-size: 0.88rem !important;
}

#contact-name:focus,
#contact-email:focus,
#contact-subject:focus,
#contact-message:focus {
  outline: none !important;
  border-color: #2E7D32 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* ═══ OCULTAR IMAGEN DEL LOGO EN SIDEBAR ═══ */
.sb-logo img {
  display: none !important;
}

/* Si quieres ocultar también el contenedor del logo completo */
.sb-logo {
  display: none !important;
}

/* Ajustar el header del sidebar para que se vea bien sin el logo */
.sb-head {
  justify-content: flex-start !important;
  gap: 10px !important;
}

.sb-logo-text h2 {
  font-size: 1.1rem !important;
}

/* ═══ SCROLL REVEAL ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
}
.reveal.visible {
  filter: blur(0);
}
.reveal.visible {
  opacity: 1;
  transform: none !important;
}
.reveal-up      { transform: translateY(50px); }
.reveal-up-lg   { transform: translateY(80px); }
.reveal-up-sm   { transform: translateY(24px); transition-duration: 0.6s; }
.reveal-left    { transform: translateX(-50px); }
.reveal-right   { transform: translateX(50px); }
.reveal-scale   { transform: scale(0.92); }
.reveal-fade    { transform: none; transition-duration: 0.7s; }
.reveal-up-scale{ transform: translateY(40px) scale(0.96); }

.stagger-children .reveal:nth-child(1)  { transition-delay: 0.00s; }
.stagger-children .reveal:nth-child(2)  { transition-delay: 0.08s; }
.stagger-children .reveal:nth-child(3)  { transition-delay: 0.16s; }
.stagger-children .reveal:nth-child(4)  { transition-delay: 0.24s; }
.stagger-children .reveal:nth-child(5)  { transition-delay: 0.32s; }
.stagger-children .reveal:nth-child(6)  { transition-delay: 0.40s; }
.stagger-children .reveal:nth-child(7)  { transition-delay: 0.48s; }
.stagger-children .reveal:nth-child(8)  { transition-delay: 0.56s; }
.stagger-children .reveal:nth-child(9)  { transition-delay: 0.64s; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.72s; }
.stagger-children .reveal:nth-child(11) { transition-delay: 0.80s; }
.stagger-children .reveal:nth-child(12) { transition-delay: 0.88s; }

.reveal-counter {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-counter.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-up-lg, .reveal-up-sm,
  .reveal-left, .reveal-right, .reveal-scale,
  .reveal-fade, .reveal-up-scale, .reveal-counter {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
}
@media (max-width: 768px) {
  .reveal-up       { transform: translateY(30px); }
  .reveal-up-lg    { transform: translateY(50px); }
  .reveal-left     { transform: translateX(-30px); }
  .reveal-right    { transform: translateX(30px); }
  .reveal-scale    { transform: scale(0.95); }
  .reveal-up-scale { transform: translateY(25px) scale(0.97); }
}
/* ══════════════════════════════════════
FIX: INPUTS VISIBLES EN PANEL ADMIN/REPARTIDOR
═══════════════════════════════════════ */
body.is-admin .field input,
body.is-admin .field select,
body.is-admin .field textarea,
body.is-repartidor .field input,
body.is-repartidor .field select,
body.is-repartidor .field textarea {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

body.is-admin .field input:focus,
body.is-admin .field select:focus,
body.is-admin .field textarea:focus,
body.is-repartidor .field input:focus,
body.is-repartidor .field select:focus,
body.is-repartidor .field textarea:focus {
    border-color: #2E7D32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
    outline: none !important;
}

body.is-admin .field input::placeholder,
body.is-admin .field textarea::placeholder,
body.is-repartidor .field input::placeholder,
body.is-repartidor .field textarea::placeholder {
    color: rgba(46, 125, 50, 0.5) !important;
    font-size: 0.88rem !important;
}

/* Select con flecha personalizada verde */
body.is-admin .field select,
body.is-repartidor .field select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5E20' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

body.is-admin .field select option,
body.is-repartidor .field select option {
    background: #F4F1EA !important;
    color: #1B5E20 !important;
    padding: 8px !important;
}

/* Labels de campos más visibles */
body.is-admin .field label,
body.is-repartidor .field label {
    color: #2E7D32 !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/* ═══ MODALES ADMIN: INPUTS VISIBLES ═══ */
body.is-admin .modal .field input,
body.is-admin .modal .field select,
body.is-admin .modal .field textarea,
body.is-repartidor .modal .field input,
body.is-repartidor .modal .field select,
body.is-repartidor .modal .field textarea {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
}

body.is-admin .modal .field input::placeholder,
body.is-admin .modal .field textarea::placeholder,
body.is-repartidor .modal .field input::placeholder,
body.is-repartidor .modal .field textarea::placeholder {
    color: rgba(46, 125, 50, 0.5) !important;
}

/* ═══ SEARCH BOX ADMIN ═══ */
body.is-admin .search-box,
body.is-repartidor .search-box {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.25) !important;
    border-radius: 999px !important;
}

body.is-admin .search-box input,
body.is-repartidor .search-box input {
    color: #1B5E20 !important;
    background: transparent !important;
}

body.is-admin .search-box input::placeholder,
body.is-repartidor .search-box input::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

body.is-admin .search-box i,
body.is-repartidor .search-box i {
    color: #558B2F !important;
}

body.is-admin .search-box:focus-within,
body.is-repartidor .search-box:focus-within {
    border-color: rgba(46, 125, 50, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.08) !important;
}

/* ═══ AUTH SCREEN (Login/Registro) ══ */
.auth-field input {
    color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
}

.auth-field input::placeholder {
    color: rgba(255,255,255,.3) !important;
}

.auth-field input:focus {
    border-color: #84CC16 !important;
    background: rgba(255,255,255,.1) !important;
}

/* ═══ INPUTS ESPECÍFICOS QUE NECESITAN FIX ══ */
body.is-admin #sec-name,
body.is-admin #sec-mins,
body.is-admin #sec-shipping,
body.is-admin #prod-name,
body.is-admin #prod-price,
body.is-admin #prod-stock,
body.is-admin #prod-img,
body.is-admin #prod-desc,
body.is-admin #cu-name,
body.is-admin #cu-phone,
body.is-admin #cu-address,
body.is-admin #cu-email,
body.is-admin #cu-pass,
body.is-admin #eu-name,
body.is-admin #eu-phone,
body.is-admin #eu-address,
body.is-admin #no-address,
body.is-admin #wa-number-input,
body.is-admin #sector-mins-input,
body.is-admin #banner-text-input,
body.is-admin #conf-code-input,
body.is-admin #bt-id,
body.is-admin #bt-client,
body.is-admin #bt-fill,
body.is-admin #bt-years {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
}

body.is-admin #sec-name::placeholder,
body.is-admin #sec-mins::placeholder,
body.is-admin #sec-shipping::placeholder,
body.is-admin #prod-name::placeholder,
body.is-admin #prod-price::placeholder,
body.is-admin #prod-stock::placeholder,
body.is-admin #prod-img::placeholder,
body.is-admin #prod-desc::placeholder,
body.is-admin #cu-name::placeholder,
body.is-admin #cu-phone::placeholder,
body.is-admin #cu-address::placeholder,
body.is-admin #cu-email::placeholder,
body.is-admin #cu-pass::placeholder,
body.is-admin #eu-name::placeholder,
body.is-admin #eu-phone::placeholder,
body.is-admin #eu-address::placeholder,
body.is-admin #no-address::placeholder,
body.is-admin #wa-number-input::placeholder,
body.is-admin #sector-mins-input::placeholder,
body.is-admin #banner-text-input::placeholder,
body.is-admin #conf-code-input::placeholder,
body.is-admin #bt-id::placeholder,
body.is-admin #bt-client::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

body.is-admin #prod-cat {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
    padding: 11px 36px 11px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5E20' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
}

body.is-admin #prod-cat option {
    background: #F4F1EA !important;
    color: #1B5E20 !important;
}

/* ═══ MODAL EDITAR PERFIL (Cliente) ═══ */
#m-profile-edit .field input {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.25) !important;
    border-radius: 10px !important;
}

#m-profile-edit .field input::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

#m-profile-edit .field input:focus {
    border-color: #2E7D32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

#m-profile-edit .field label {
    color: #2E7D32 !important;
    font-weight: 700 !important;
}

/* ═══ MODAL CHECKOUT (Cliente) ═══ */
#m-checkout .field input {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.25) !important;
    border-radius: 10px !important;
}

#m-checkout .field input::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

#m-checkout .field input:focus {
    border-color: #2E7D32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

#m-checkout .field label {
    color: #2E7D32 !important;
    font-weight: 700 !important;
}

/* ═══ MODAL NUEVO PEDIDO ADMIN ═══ */
body.is-admin #no-client,
body.is-admin #no-sector {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
    padding: 11px 36px 11px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5E20' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
}

body.is-admin #no-client option,
body.is-admin #no-sector option {
    background: #F4F1EA !important;
    color: #1B5E20 !important;
}

/* ═══ MODAL ASIGNAR REPARTIDOR ══ */
body.is-admin #assign-sel {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
    padding: 11px 36px 11px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5E20' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
}

body.is-admin #assign-sel option {
    background: #F4F1EA !important;
    color: #1B5E20 !important;
}

/* ═══ MODAL PROMOVER A REPARTIDOR ═══ */
body.is-admin #promote-select {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
    padding: 11px 36px 11px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5E20' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
}

body.is-admin #promote-select option {
    background: #F4F1EA !important;
    color: #1B5E20 !important;
}

/* ═══ CÓDIGO DE CONFIRMACIÓN ═══ */
#conf-code-input {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(46, 125, 50, 0.35) !important;
    border-radius: 12px !important;
    caret-color: #2E7D32 !important;
    letter-spacing: 0.3em !important;
}

#conf-code-input::placeholder {
    color: rgba(46, 125, 50, 0.4) !important;
}

#conf-code-input:focus {
    border-color: #2E7D32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* ═══ MODAL BOTELLÓN ═══ */
body.is-admin #bt-id,
body.is-admin #bt-client,
body.is-admin #bt-fill,
body.is-admin #bt-years {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
}

body.is-admin #bt-id::placeholder,
body.is-admin #bt-client::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

/* ═══ MODAL SECTOR (tiempo estimado) ═══ */
#sector-mins-input {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
}

#sector-mins-input::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

#sector-mins-input:focus {
    border-color: #2E7D32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* ═══ MODAL WHATSAPP CONFIG ═══ */
#wa-number-input {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
}

#wa-number-input::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

#wa-number-input:focus {
    border-color: #2E7D32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* ═══ MODAL BANNER TEXTO ═══ */
body.is-admin #banner-text-input {
    color: #1B5E20 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.3) !important;
    border-radius: 10px !important;
}

body.is-admin #banner-text-input::placeholder {
    color: rgba(46, 125, 50, 0.45) !important;
}

body.is-admin #banner-text-input:focus {
    border-color: #2E7D32 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* ═══ CÓDIGOS Y ESTADOS MÁS VISIBLES ═══ */

/* Códigos de pedido - más visibles */
.code {
    background: rgba(46, 125, 50, 0.15) !important;
    border: 1.5px solid rgba(46, 125, 50, 0.35) !important;
    color: #1B5E20 !important;
    font-weight: 700 !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.1) !important;
}

/* Badges de estado - más visibles y con mejor contraste */
.badge {
    font-weight: 700 !important;
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    border-width: 1.5px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Pago Pendiente - Amarillo más visible */
.b-pago_pendiente {
    background: rgba(251, 191, 36, 0.25) !important;
    color: #B45309 !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
}

.b-pago_pendiente::before {
    background: #F59E0B !important;
}

/* Recibido - Verde más visible */
.b-recibido {
    background: rgba(34, 197, 94, 0.25) !important;
    color: #166534 !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.b-recibido::before {
    background: #22C55E !important;
}

/* Preparación - Naranja más visible */
.b-preparacion {
    background: rgba(249, 115, 22, 0.25) !important;
    color: #C2410C !important;
    border-color: rgba(249, 115, 22, 0.5) !important;
}

.b-preparacion::before {
    background: #F97316 !important;
}

/* Listo - Verde azulado más visible */
.b-listo {
    background: rgba(20, 184, 166, 0.25) !important;
    color: #0F766E !important;
    border-color: rgba(20, 184, 166, 0.5) !important;
}

.b-listo::before {
    background: #14B8A6 !important;
}

/* En Camino - Azul más visible */
.b-en_camino {
    background: rgba(59, 130, 246, 0.25) !important;
    color: #1E40AF !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.b-en_camino::before {
    background: #3B82F6 !important;
}

/* Entregado - Verde oscuro más visible */
.b-entregado {
    background: rgba(22, 101, 52, 0.25) !important;
    color: #14532D !important;
    border-color: rgba(22, 101, 52, 0.5) !important;
}

.b-entregado::before {
    background: #16A34A !important;
}

/* Cancelado - Rojo más visible */
.b-cancelado {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #991B1B !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.b-cancelado::before {
    background: #EF4444 !important;
}

/* Hover effects para mejor interacción */
.code:hover {
    background: rgba(46, 125, 50, 0.25) !important;
    border-color: rgba(46, 125, 50, 0.5) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.15) !important;
    transition: all 0.2s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease;
}

/* Modo oscuro - ajustes */
body.dark-mode .code {
    background: rgba(132, 204, 22, 0.2) !important;
    border-color: rgba(132, 204, 22, 0.4) !important;
    color: #84CC16 !important;
}

body.dark-mode .b-pago_pendiente {
    background: rgba(251, 191, 36, 0.3) !important;
    color: #FCD34D !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
}

body.dark-mode .b-cancelado {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

body.dark-mode .b-entregado,
body.dark-mode .b-recibido {
    background: rgba(34, 197, 94, 0.3) !important;
    color: #4ADE80 !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
}



/* ═══ TABLA PEDIDOS - TODAS LAS COLUMNAS VISIBLES ═══ */

/* Contenedor con scroll horizontal */
.card .tbl-wrap:has(#ord-body),
.card:has(#ord-body) .tbl-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    position: relative;
}

/* Tabla con ancho mínimo para 8 columnas */
table:has(#ord-body) {
    min-width: 1150px !important;
    table-layout: auto !important;
    width: max-content !important;
}

/* Celdas sin wrap de texto */
#ord-body td,
#ord-body th,
table:has(#ord-body) thead th {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Anchos mínimos por columna */
#ord-body td:nth-child(1),
table:has(#ord-body) thead th:nth-child(1) { 
    min-width: 110px !important; 
} /* Código */

#ord-body td:nth-child(2),
table:has(#ord-body) thead th:nth-child(2) { 
    min-width: 170px !important; 
} /* Cliente */

#ord-body td:nth-child(3),
table:has(#ord-body) thead th:nth-child(3) { 
    min-width: 200px !important; 
    max-width: 280px !important;
    white-space: normal !important;
} /* Dirección - permite wrap */

#ord-body td:nth-child(4),
table:has(#ord-body) thead th:nth-child(4) { 
    min-width: 110px !important; 
} /* Total */

#ord-body td:nth-child(5),
table:has(#ord-body) thead th:nth-child(5) { 
    min-width: 130px !important; 
} /* Estado */

#ord-body td:nth-child(6),
table:has(#ord-body) thead th:nth-child(6) { 
    min-width: 140px !important; 
} /* Repartidor */

#ord-body td:nth-child(7),
table:has(#ord-body) thead th:nth-child(7) { 
    min-width: 120px !important; 
} /* Fecha */

#ord-body td:nth-child(8),
table:has(#ord-body) thead th:nth-child(8) { 
    min-width: 190px !important; 
    white-space: nowrap !important;
} /* Acciones */

/* Asegurar que los botones de acciones no se corten */
#ord-body td:nth-child(8) > div {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
}

/* Scrollbar personalizada verde */
.card .tbl-wrap:has(#ord-body)::-webkit-scrollbar,
.card:has(#ord-body) .tbl-wrap::-webkit-scrollbar {
    height: 8px;
}
.card .tbl-wrap:has(#ord-body)::-webkit-scrollbar-track,
.card:has(#ord-body) .tbl-wrap::-webkit-scrollbar-track {
    background: rgba(46, 125, 50, 0.08);
    border-radius: 99px;
}
.card .tbl-wrap:has(#ord-body)::-webkit-scrollbar-thumb,
.card:has(#ord-body) .tbl-wrap::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.35);
    border-radius: 99px;
    border: 2px solid rgba(46, 125, 50, 0.08);
}
.card .tbl-wrap:has(#ord-body)::-webkit-scrollbar-thumb:hover,
.card:has(#ord-body) .tbl-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 125, 50, 0.55);
}

/* ═══ MODO MÓVIL: Mantener tarjeta (no romper responsive) ═══ */
@media (max-width: 768px) {
    table:has(#ord-body) {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: auto !important;
    }
    
    #ord-body td,
    #ord-body th {
        white-space: normal !important;
    }
    
    .card .tbl-wrap:has(#ord-body),
    .card:has(#ord-body) .tbl-wrap {
        overflow-x: hidden !important;
    }
}

.table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r);
}

.table-scroll::-webkit-scrollbar {
    height: 8px;
}
.table-scroll::-webkit-scrollbar-track {
    background: rgba(46, 125, 50, 0.1);
    border-radius: 99px;
}
.table-scroll::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.4);
    border-radius: 99px;
}

/* ═══ MODAL DETALLE PEDIDO: FONDO CLARO IGUAL QUE BODY ═══ */
#m-order-detail .modal {
    background: var(--c-bg) !important;
    background: #F4F1EA !important;
}

/* Ajustar textos dentro del modal para que se vean bien sobre fondo claro */
#m-order-detail .modal-body {
    color: var(--c-text) !important;
}

#m-order-detail .modal-head h3 {
    color: var(--c-text) !important;
}

/* Ajustar el botón cerrar (X) para fondo claro */
#m-order-detail .modal-x {
    background: rgba(46, 125, 50, 0.1) !important;
    border-color: rgba(46, 125, 50, 0.2) !important;
    color: var(--c-text) !important;
}

#m-order-detail .modal-x:hover {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    color: var(--c-red) !important;
}

/* Ajustar bordes de separación */
#m-order-detail .modal-head {
    border-bottom-color: rgba(46, 125, 50, 0.15) !important;
}

#m-order-detail .modal-foot {
    border-top-color: rgba(46, 125, 50, 0.15) !important;
}

/* Ajustar labels de información */
#m-order-detail .modal-body div[style*="font-size:.62rem"] {
    color: var(--c-muted) !important;
}

/* Ajustar bloques de información (fondo de tarjetas internas) */
#m-order-detail .modal-body div[style*="background:var(--c-bg)"],
#m-order-detail .modal-body div[style*="background: var(--c-bg)"] {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(46, 125, 50, 0.15) !important;
}

/* Ajustar notas del cliente */
#m-order-detail .modal-body div[style*="background:rgba(255,255,255,.04)"] {
    background: rgba(46, 125, 50, 0.05) !important;
    border-color: rgba(46, 125, 50, 0.15) !important;
}

#m-order-detail .modal-body div[style*="background:rgba(255,255,255,.04)"] p {
    color: var(--c-text) !important;
}

/* Ajustar código de confirmación (fondo oscuro a claro) */
#m-order-detail .modal-body div[style*="background:linear-gradient(135deg,var(--c-navy)"] {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(27, 94, 32, 0.15)) !important;
    border: 1px solid rgba(46, 125, 50, 0.2) !important;
}

#m-order-detail .modal-body div[style*="background:linear-gradient(135deg,var(--c-navy)"] p {
    color: var(--c-muted) !important;
}

#m-order-detail .modal-body div[style*="background:linear-gradient(135deg,var(--c-navy)"] div {
    color: var(--c-text) !important;
    font-weight: 700 !important;
}

/* Ajustar banner de botellón */
#m-order-detail .modal-body div[style*="background:linear-gradient(135deg,#FEF3C7"] {
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Ajustar banner promo gratis */
#m-order-detail .modal-body div[style*="background:linear-gradient(135deg,#FFFBEB"] {
    border-color: rgba(253, 230, 138, 0.5) !important;
}

/* Ajustar productos - bordes de separación */
#m-order-detail .modal-body div[style*="border-bottom:1px solid var(--c-border)"] {
    border-bottom-color: rgba(46, 125, 50, 0.15) !important;
}

/* Ajustar texto de productos */
#m-order-detail .modal-body div[style*="display:flex;justify-content:space-between;padding:8px"] span {
    color: var(--c-text) !important;
}

#m-order-detail .modal-body div[style*="display:flex;justify-content:space-between;padding:8px"] strong {
    color: var(--c-green) !important;
}

/* Ajustar total */
#m-order-detail .modal-body div[style*="display:flex;justify-content:space-between;padding:10px"] span:last-child {
    color: var(--c-text) !important;
    font-weight: 800 !important;
}

/* ═══ MODAL DETALLE PEDIDO: FOOTER CON FONDO CLARO ═══ */
#m-order-detail .modal-foot {
    background: #F4F1EA !important;
    border-top: 1px solid rgba(46, 125, 50, 0.2) !important;
    border-radius: 0 0 24px 24px !important;
    padding: 18px 24px 22px !important;
}

/* Botones del footer con mejor visibilidad sobre fondo claro */
#m-order-detail .modal-foot .btn {
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

#m-order-detail .modal-foot .btn-ghost {
    background: rgba(46, 125, 50, 0.08) !important;
    border-color: rgba(46, 125, 50, 0.25) !important;
    color: #1B5E20 !important;
}

#m-order-detail .modal-foot .btn-ghost:hover {
    background: rgba(46, 125, 50, 0.15) !important;
    border-color: rgba(46, 125, 50, 0.4) !important;
}

#m-order-detail .modal-foot .btn-primary {
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3) !important;
}

#m-order-detail .modal-foot .btn-primary:hover {
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.45) !important;
    transform: translateY(-1px);
}

#m-order-detail .modal-foot .btn-blue {
    background: linear-gradient(135deg, #2E7D32, #388E3C) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3) !important;
}

#m-order-detail .modal-foot .btn-blue:hover {
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.45) !important;
    transform: translateY(-1px);
}

#m-order-detail .modal-foot .btn-danger {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.25) !important;
    color: #C62828 !important;
}

#m-order-detail .modal-foot .btn-danger:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
}

/* ═══ DIÁLOGO DE CONFIRMACIÓN CENTRADO ═══ */
.dialog-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.dialog-backdrop[style*="display: flex"] {
    display: flex !important;
}

.dialog-container {
    position: relative !important;
    background: var(--c-bg) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(46, 125, 50, 0.15) !important;
    width: auto !important;
    max-width: 420px !important;
    min-width: 320px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    isolation: isolate !important;
    animation: dialogSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    border: 1px solid rgba(46, 125, 50, 0.2) !important;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header del diálogo */
.dialog-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid rgba(46, 125, 50, 0.15) !important;
    background: rgba(46, 125, 50, 0.03) !important;
    border-radius: 20px 20px 0 0 !important;
}

.dialog-title {
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--c-text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.dialog-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(46, 125, 50, 0.2) !important;
    background: rgba(46, 125, 50, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: var(--c-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.dialog-close:hover {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    color: var(--c-red) !important;
}

/* Body del diálogo */
.dialog-body {
    padding: 24px !important;
    flex: 1 !important;
    font-size: 0.9rem !important;
    color: var(--c-text) !important;
    line-height: 1.6 !important;
}

/* Footer del diálogo */
.dialog-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 16px 24px 20px !important;
    border-top: 1px solid rgba(46, 125, 50, 0.15) !important;
    flex-wrap: wrap !important;
    background: rgba(46, 125, 50, 0.02) !important;
    border-radius: 0 0 20px 20px !important;
}

.dialog-footer .btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

/* Botón Cancelar */
.dialog-footer .btn-ghost {
    background: rgba(46, 125, 50, 0.08) !important;
    border: 1px solid rgba(46, 125, 50, 0.25) !important;
    color: var(--c-text) !important;
}

.dialog-footer .btn-ghost:hover {
    background: rgba(46, 125, 50, 0.15) !important;
    border-color: rgba(46, 125, 50, 0.4) !important;
}

/* Botón Confirmar (Sí, continuar) */
.dialog-footer .btn-danger {
    background: rgba(220, 38, 38, 0.12) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    color: var(--c-red) !important;
}

.dialog-footer .btn-danger:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: rgba(220, 38, 38, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .dialog-container {
        min-width: 280px !important;
        max-width: 90vw !important;
        margin: 16px !important;
    }
    
    .dialog-header {
        padding: 16px 20px !important;
    }
    
    .dialog-body {
        padding: 20px !important;
        font-size: 0.85rem !important;
    }
    
    .dialog-footer {
        padding: 14px 20px 18px !important;
        flex-direction: column !important;
    }
    
    .dialog-footer .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ═══ OCULTAR FOOTER EN ADMIN/REPARTIDOR ═══ */
body.is-admin .site-footer,
body.is-repartidor .site-footer {
    display: none !important;
}

/* Fix: subtítulo debajo del título en móvil */
@media (max-width: 768px) {
  .ph > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .ph > div:first-child p {
    margin-top: 0 !important;
  }
}

/* ═══ MÓVIL: 2 TARJETAS VISIBLES EN CARRUSEL DE INICIO ═══ */
@media (max-width: 768px) {
  /* Carrusel de productos - 2 tarjetas visibles */
  .view-inicio .prod-scroller {
    gap: 12px !important;
    padding: 0 8px 16px 8px !important;
    scroll-snap-type: x mandatory !important;
  }
  
  .view-inicio .prod-scroller .prod-card {
    flex: 0 0 calc(50% - 6px) !important; /* 2 tarjetas por fila */
    min-height: 320px !important;
    scroll-snap-align: start !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-img {
    height: 220px !important;
    width: 100% !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-img img,
  .view-inicio .prod-scroller .prod-card .prod-img video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Mantiene proporción original */
  }
  
  .view-inicio .prod-scroller .prod-card .prod-info {
    padding: 10px 8px !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-name {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-price {
    font-size: 1.4rem !important;
  }
  
  .view-inicio .prod-scroller .prod-card .btn-comprar {
    padding: 8px 10px !important;
    font-size: 0.7rem !important;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
  .view-inicio .prod-scroller .prod-card {
    min-height: 300px !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-img {
    height: 200px !important;
  }
}

/* ═══ CARRUSEL INICIO: INFORMACIÓN MÁS COMPACTA ═══ */
.view-inicio .prod-scroller .prod-card .prod-info {
  padding: 12px 14px !important;
  gap: 6px !important;
}

.view-inicio .prod-scroller .prod-card .prod-name {
  margin-bottom: 4px !important;
  font-size: 1.4rem !important;
  line-height: 1.2 !important;
}

.view-inicio .prod-scroller .prod-card .prod-price {
  margin-bottom: 1px !important;
  font-size: 1.4rem !important;
}

.view-inicio .prod-scroller .prod-card .btn-comprar {
  padding: 10px 14px !important;
  font-size: 0.8rem !important;
  margin-top: 4px !important;
}

/* Ajustar altura de la tarjeta para que se adapte */
.view-inicio .prod-scroller .prod-card {
  min-height: 340px !important;
}

.view-inicio .prod-scroller .prod-card .prod-img {
  height: 200px !important;
}

/* Responsive móvil */
@media (max-width: 768px) {
  .view-inicio .prod-scroller .prod-card .prod-info {
    padding: 10px 12px !important;
    gap: 5px !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-name {
    font-size: 1.3rem !important;
    margin-bottom: 1px !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-price {
    font-size: 1.4rem !important;
    margin-bottom: 0px !important;
  }
  
  .view-inicio .prod-scroller .prod-card .btn-comprar {
    padding: 9px 12px !important;
    font-size: 0.75rem !important;
  }
  
  .view-inicio .prod-scroller .prod-card {
    min-height: 310px !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-img {
    height: 170px !important;
  }
}

/* ═══ CARRUSEL INICIO PC: IMÁGENES TAMAÑO ORIGINAL ═══ */
@media (min-width: 769px) {
  .view-inicio .prod-scroller .prod-card .prod-img {
    height: 250px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: var(--c-bg) !important;
  }
  
  .view-inicio .prod-scroller .prod-card .prod-img img,
  .view-inicio .prod-scroller .prod-card .prod-img video {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* ═══ IMÁGENES DE TARJETAS: TAMAÑO ORIGINAL (CONTAIN) ═══ */
/* Excluye el carrusel de inicio que ya está bien */

/* ── GRID DE TIENDA (Otros, Ofertas, Combos, Unidades, NuevasOfertas) ── */
.prod-grid .prod-card .prod-img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: var(--c-bg) !important;
}

.prod-grid .prod-card .prod-img img,
.prod-grid .prod-card .prod-img video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* ── ADMIN: Vista de productos ── */
#products-grid .prod-card .prod-img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: var(--c-bg) !important;
}

#products-grid .prod-card .prod-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* ── PÁGINA DE DETALLE DE PRODUCTO ── */
#pdp-media img,
#pdp-media video {
  object-fit: contain !important;
}

/* ── CARRITO: miniaturas de productos ── */
.cart-item-img img {
  object-fit: contain !important;
  background: var(--c-bg);
}

/* ── MODAL DETALLE DE PRODUCTO ── */
#mpd-img-wrap img,
#mpd-img-wrap video {
  object-fit: contain !important;
  padding: 16px !important;
}

/* ── RESPONSIVE MÓVIL: mantener contain en todas las secciones ── */
@media (max-width: 768px) {
  .prod-grid .prod-card .prod-img img,
  .prod-grid .prod-card .prod-img video {
    object-fit: contain !important;
  }

  #products-grid .prod-card .prod-img img {
    object-fit: contain !important;
  }

  /* Mantener contain en categorías específicas */
  .prod-grid.cat-otros .prod-img img,
  .prod-grid.cat-Ofertas .prod-img img,
  .prod-grid.cat-Combos .prod-img img,
  .prod-grid.cat-Unidades .prod-img img,
  .prod-grid.cat-NuevasOfertas .prod-img img {
    object-fit: contain !important;
  }
}

/* ═══ MODAL ENVÍO: FONDO IGUAL QUE BODY ═══ */
#m-shipping-info .modal {
  background: var(--c-bg) !important;
  background: #F4F1EA !important;
}

#m-shipping-info .modal-head {
  border-bottom-color: rgba(46, 125, 50, 0.15) !important;
}

#m-shipping-info .modal-foot {
  border-top-color: rgba(46, 125, 50, 0.15) !important;
}

#m-shipping-info h3,
#m-shipping-info p,
#m-shipping-info h4 {
  color: var(--c-text) !important;
}

#m-shipping-info #shipping-price-display {
  color: var(--c-green) !important;
}

/* ═══ MODAL ENVÍO: BOTÓN OK CENTRADO ═══ */
#m-shipping-info .modal-foot .btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 200px !important;
  margin: 0 auto !important;
  padding: 14px 32px !important;
  gap: 8px !important;
}

#m-shipping-info .modal-foot .btn i {
  margin-right: 0 !important;
}

/* ═══ BOTÓN CONFIRMAR PEDIDO: CONTENIDO CENTRADO ══ */
#btn-submit-order,
.btn-confirm-order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
}

#btn-submit-order i,
.btn-confirm-order i {
  margin-right: 0 !important;
  flex-shrink: 0 !important;
}

/* ═══ MIS PEDIDOS MÓVIL: TARJETAS BIEN ORGANIZADAS ═══ */
@media (max-width: 768px) {
  /* Ocultar tabla tradicional */
  #my-orders-table thead {
    display: none !important;
  }
  
  #my-orders-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  /* Cada fila como tarjeta */
  #my-orders-body tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--c-bg) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    border: 1px solid rgba(46, 125, 50, 0.15) !important;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08) !important;
    gap: 14px !important;
  }
  
  /* Cada celda como fila de información */
  #my-orders-body td {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border: none !important;
    gap: 6px !important;
  }
  
  /* Labels (PRODUCTOS, TOTAL, etc.) */
  #my-orders-body td::before {
    content: attr(data-label) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: var(--c-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 2px !important;
  }
  
  /* Productos - texto completo visible */
  #my-orders-body td[data-label="Productos"] {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--c-text) !important;
    line-height: 1.5 !important;
  }
  
  /* Total - destacado */
  #my-orders-body td[data-label="Total"] {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--c-green) !important;
  }
  
  /* Estado - badge centrado */
  #my-orders-body td[data-label="Estado"] {
    display: flex !important;
    justify-content: flex-start !important;
  }
  
  #my-orders-body td[data-label="Estado"] .badge {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
  
  /* Código de entrega - destacado */
  #my-orders-body td[data-label="Código Entrega"] {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--c-text) !important;
  }
  
  #my-orders-body td[data-label="Código Entrega"] .code {
    font-size: 1rem !important;
    letter-spacing: 0.15em !important;
    padding: 6px 12px !important;
  }
  
  /* Fecha */
  #my-orders-body td[data-label="Fecha"] {
    font-size: 0.82rem !important;
    color: var(--c-muted) !important;
  }
  
  /* Acciones - botones bien organizados */
  #my-orders-body td[data-label="Acciones"] {
    flex-direction: row !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(46, 125, 50, 0.1) !important;
  }
  
  #my-orders-body td[data-label="Acciones"] .btn {
    font-size: 0.75rem !important;
    padding: 8px 14px !important;
  }
  
  /* Separador visual entre secciones de la tarjeta */
  #my-orders-body td:not(:last-child) {
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(46, 125, 50, 0.08) !important;
  }
  
  #my-orders-body td:last-child {
    padding-top: 12px !important;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
  #my-orders-body tr {
    padding: 16px !important;
  }
  
  #my-orders-body td[data-label="Total"] {
    font-size: 1rem !important;
  }
  
  #my-orders-body td[data-label="Acciones"] .btn {
    font-size: 0.7rem !important;
    padding: 7px 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ESTILO UNIFICADO PARA TODAS LAS TARJETAS DE PRODUCTO
   (Agregar al FINAL del <style> para sobrescribir)
═══════════════════════════════════════════════════════════ */

/* Grid de productos - Todas las categorías */
.prod-grid,
.prod-grid.cat-agua,
.prod-grid.cat-otros,
.prod-grid.cat-Ofertas,
.prod-grid.cat-Combos,
.prod-grid.cat-Unidades,
.prod-grid.cat-NuevasOfertas,
#store-grid,
#products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 24px !important;
  padding: 20px 0 !important;
}

/* Tarjeta de producto - Estilo unificado */
.prod-card {
  position: relative !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.08) !important;
  border: 1px solid rgba(46, 125, 50, 0.12) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 420px !important;
  isolation: unset !important;
}

.prod-card::before {
  display: none !important; /* Elimina el borde gradiente anterior */
}

.prod-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.15) !important;
  border-color: rgba(46, 125, 50, 0.25) !important;
}

/* Imagen del producto */
.prod-img {
  width: 100% !important;
  height: 280px !important;
  background: linear-gradient(135deg, #f8faf8 0%, #f0f5f0 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 20px !important;
  margin: 0 !important;
  font-size: 4rem !important;
}

.prod-img img,
.prod-img video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
  display: block !important;
}

.prod-card:hover .prod-img img,
.prod-card:hover .prod-img video {
  transform: scale(1.05) !important;
}

/* Badge de categoría */
.prod-img .media-badge,
.prod-card .category-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: rgba(46, 125, 50, 0.9) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  z-index: 2 !important;
}

/* Información del producto */
.prod-info {
  padding: 20px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: #ffffff !important;
}

.prod-name {
  font-family: var(--font-display) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #1B5E20 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  text-align: center !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.prod-price {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #558B2F !important;
  text-align: center !important;
  margin:  0 !important;
  margin-bottom: 0!important;
}

.prod-price .original-price {
  font-size: 1rem !important;
  color: #999 !important;
  text-decoration: line-through !important;
  margin-right: 8px !important;
  font-weight: 500 !important;
}

.prod-price .discount-badge {
  background: #FF5252 !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  margin-left: 8px !important;
  font-weight: 700 !important;
}

/* Botón comprar - Estilo unificado */
.btn-comprar,
.prod-card .btn-comprar {
  width: 100% !important;
  padding: 14px 24px !important;
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3) !important;
  margin-top: auto !important;
}

.btn-comprar:hover,
.prod-card .btn-comprar:hover {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4) !important;
}

.btn-comprar:active,
.prod-card .btn-comprar:active {
  transform: translateY(0) !important;
}

.btn-comprar i,
.prod-card .btn-comprar i {
  font-size: 1rem !important;
}

/* Stock indicator */
.prod-stock {
  font-size: 0.8rem !important;
  color: #558B2F !important;
  text-align: center !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
}

.prod-stock.low-stock {
  color: #FF9800 !important;
}

.prod-stock.out-of-stock {
  color: #F44336 !important;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .prod-grid,
  .prod-grid.cat-agua,
  .prod-grid.cat-otros,
  .prod-grid.cat-Ofertas,
  .prod-grid.cat-Combos,
  .prod-grid.cat-Unidades,
  .prod-grid.cat-NuevasOfertas,
  #store-grid,
  #products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }
  
  .prod-card {
    min-height: 340px !important;
  }
  
  .prod-img {
    height: 200px !important;
    padding: 12px !important;
  }
  
  .prod-info {
    padding: 14px !important;
    gap: 8px !important;
  }
  
  .prod-name {
    font-size: 1.3rem !important;
    min-height: 40px !important;
  }
  
  .prod-price {
    font-size: 1.3rem !important;
  }
  
  .btn-comprar,
  .prod-card .btn-comprar {
    padding: 12px 16px !important;
    font-size: 1.1rem !important;
  }
}

/* Responsive - Very small screens */
@media (max-width: 480px) {
  .prod-grid,
  .prod-grid.cat-agua,
  .prod-grid.cat-otros,
  .prod-grid.cat-Ofertas,
  .prod-grid.cat-Combos,
  .prod-grid.cat-Unidades,
  .prod-grid.cat-NuevasOfertas,
  #store-grid,
  #products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .prod-card {
    min-height: 380px !important;
  }
  
  .prod-img {
    height: 240px !important;
  }
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prod-card {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* Stagger animation for grid items */
.prod-card:nth-child(1) { animation-delay: 0.05s !important; }
.prod-card:nth-child(2) { animation-delay: 0.1s !important; }
.prod-card:nth-child(3) { animation-delay: 0.15s !important; }
.prod-card:nth-child(4) { animation-delay: 0.2s !important; }
.prod-card:nth-child(5) { animation-delay: 0.25s !important; }
.prod-card:nth-child(6) { animation-delay: 0.3s !important; }
.prod-card:nth-child(7) { animation-delay: 0.35s !important; }
.prod-card:nth-child(8) { animation-delay: 0.4s !important; }

/* ═══ MÓVIL: 2 TARJETAS PARALELAS EN CATEGORÍAS ═══ */
@media (max-width: 768px) {
  /* Grid de 2 columnas para todas las categorías */
  .prod-grid.cat-otros,
  .prod-grid.cat-Ofertas,
  .prod-grid.cat-Combos,
  .prod-grid.cat-Unidades,
  .prod-grid.cat-NuevasOfertas,
  #store-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 12px 8px !important;
  }

  /* Tarjeta: altura fija compacta */
  .prod-grid.cat-otros .prod-card,
  .prod-grid.cat-Ofertas .prod-card,
  .prod-grid.cat-Combos .prod-card,
  .prod-grid.cat-Unidades .prod-card,
  .prod-grid.cat-NuevasOfertas .prod-card,
  #store-grid .prod-card {
    min-height: 320px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  /* IMAGEN: mantiene proporción original (contain) */
  .prod-grid.cat-otros .prod-card .prod-img,
  .prod-grid.cat-Ofertas .prod-card .prod-img,
  .prod-grid.cat-Combos .prod-card .prod-img,
  .prod-grid.cat-Unidades .prod-card .prod-img,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-img,
  #store-grid .prod-card .prod-img {
    height: 170px !important;
    width: 100% !important;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f5f0 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
  }

  .prod-grid.cat-otros .prod-card .prod-img img,
  .prod-grid.cat-Ofertas .prod-card .prod-img img,
  .prod-grid.cat-Combos .prod-card .prod-img img,
  .prod-grid.cat-Unidades .prod-card .prod-img img,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-img img,
  #store-grid .prod-card .prod-img img,
  .prod-grid.cat-otros .prod-card .prod-img video,
  .prod-grid.cat-Ofertas .prod-card .prod-img video,
  .prod-grid.cat-Combos .prod-card .prod-img video,
  .prod-grid.cat-Unidades .prod-card .prod-img video,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-img video,
  #store-grid .prod-card .prod-img video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }

  /* INFO: padding compacto */
  .prod-grid.cat-otros .prod-card .prod-info,
  .prod-grid.cat-Ofertas .prod-card .prod-info,
  .prod-grid.cat-Combos .prod-card .prod-info,
  .prod-grid.cat-Unidades .prod-card .prod-info,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-info,
  #store-grid .prod-card .prod-info {
    padding: 10px 8px 12px !important;
    gap: 4px !important;
  }

  /* NOMBRE: 2 líneas máximo, centrado */
  .prod-grid.cat-otros .prod-card .prod-name,
  .prod-grid.cat-Ofertas .prod-card .prod-name,
  .prod-grid.cat-Combos .prod-card .prod-name,
  .prod-grid.cat-Unidades .prod-card .prod-name,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-name,
  #store-grid .prod-card .prod-name {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    min-height: 36px !important;
    max-height: 36px !important;
    overflow: hidden !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    color: #1B5E20 !important;
  }

  /* PRECIO: compacto */
  .prod-grid.cat-otros .prod-card .prod-price,
  .prod-grid.cat-Ofertas .prod-card .prod-price,
  .prod-grid.cat-Combos .prod-card .prod-price,
  .prod-grid.cat-Unidades .prod-card .prod-price,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-price,
  #store-grid .prod-card .prod-price {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin: 0 0 6px 0 !important;
    color: #558B2F !important;
  }

  /* BOTÓN COMPRAR: compacto */
  .prod-grid.cat-otros .prod-card .btn-comprar,
  .prod-grid.cat-Ofertas .prod-card .btn-comprar,
  .prod-grid.cat-Combos .prod-card .btn-comprar,
  .prod-grid.cat-Unidades .prod-card .btn-comprar,
  .prod-grid.cat-NuevasOfertas .prod-card .btn-comprar,
  #store-grid .prod-card .btn-comprar {
    padding: 8px 6px !important;
    font-size: 0.68rem !important;
    border-radius: 8px !important;
    margin-top: auto !important;
    letter-spacing: 0.02em !important;
  }

  .prod-grid.cat-otros .prod-card .btn-comprar i,
  .prod-grid.cat-Ofertas .prod-card .btn-comprar i,
  .prod-grid.cat-Combos .prod-card .btn-comprar i,
  .prod-grid.cat-Unidades .prod-card .btn-comprar i,
  .prod-grid.cat-NuevasOfertas .prod-card .btn-comprar i,
  #store-grid .prod-card .btn-comprar i {
    font-size: 0.72rem !important;
  }
}

/* Pantallas muy pequeñas (380px o menos) */
@media (max-width: 380px) {
  .prod-grid.cat-otros,
  .prod-grid.cat-Ofertas,
  .prod-grid.cat-Combos,
  .prod-grid.cat-Unidades,
  .prod-grid.cat-NuevasOfertas,
  #store-grid {
    gap: 6px !important;
    padding: 8px 6px !important;
  }

  .prod-grid.cat-otros .prod-card,
  .prod-grid.cat-Ofertas .prod-card,
  .prod-grid.cat-Combos .prod-card,
  .prod-grid.cat-Unidades .prod-card,
  .prod-grid.cat-NuevasOfertas .prod-card,
  #store-grid .prod-card {
    min-height: 290px !important;
  }

  .prod-grid.cat-otros .prod-card .prod-img,
  .prod-grid.cat-Ofertas .prod-card .prod-img,
  .prod-grid.cat-Combos .prod-card .prod-img,
  .prod-grid.cat-Unidades .prod-card .prod-img,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-img,
  #store-grid .prod-card .prod-img {
    height: 150px !important;
    padding: 8px !important;
  }

  .prod-grid.cat-otros .prod-card .prod-name,
  .prod-grid.cat-Ofertas .prod-card .prod-name,
  .prod-grid.cat-Combos .prod-card .prod-name,
  .prod-grid.cat-Unidades .prod-card .prod-name,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-name,
  #store-grid .prod-card .prod-name {
    font-size: 0.75rem !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  .prod-grid.cat-otros .prod-card .prod-price,
  .prod-grid.cat-Ofertas .prod-card .prod-price,
  .prod-grid.cat-Combos .prod-card .prod-price,
  .prod-grid.cat-Unidades .prod-card .prod-price,
  .prod-grid.cat-NuevasOfertas .prod-card .prod-price,
  #store-grid .prod-card .prod-price {
    font-size: 0.85rem !important;
  }

  .prod-grid.cat-otros .prod-card .btn-comprar,
  .prod-grid.cat-Ofertas .prod-card .btn-comprar,
  .prod-grid.cat-Combos .prod-card .btn-comprar,
  .prod-grid.cat-Unidades .prod-card .btn-comprar,
  .prod-grid.cat-NuevasOfertas .prod-card .btn-comprar,
  #store-grid .prod-card .btn-comprar {
    padding: 7px 4px !important;
    font-size: 0.62rem !important;
  }
}

/* ═══ OCULTAR CARRITO Y BOTÓN "MÁS" EN ADMIN/REPARTIDOR ═══ */
body.is-admin .topbar-right-actions,
body.is-repartidor .topbar-right-actions {
    display: none !important;
}

/* ══ TOPBAR TABLET: IGUAL QUE MÓVIL ═══ */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Forzar layout flex como en móvil */
  .topbar {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 12px !important; /* Reducido de 16px a 12px */
    height: 56px !important;
    left: 0 !important;
    margin-top: -9px !important;
    min-height: 64px;
  }
  
  /* Logo centrado */
  .topbar-left {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
  }
  
  .topbar-logo {
    margin: 0 auto;
    transform: none !important;
    margin-left: 100px; /* Reducido de 140px a 100px */
    width: 90px !important; /* Reducido de 100px a 90px */
  }
  
  /* Toggle (hamburguesa) a la izquierda */
  .topbar-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    width: 36px !important; /* Tamaño fijo */
    height: 36px !important;
  }
  
  /* Acciones (carrito + más) a la derecha */
  .topbar-right-actions {
    position: relative;
    z-index: 5;
    gap: 6px; /* Reducido de 8px a 6px */
    margin-right: 0;
    display: flex !important; /* Asegurar que se muestre */
    align-items: center;
  }
  
  .topbar-action-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    flex-shrink: 0; /* Evitar que se encoja */
  }
  
  /* ✅ MOSTRAR BOTÓN MÁS */
  .topbar-mas-btn {
    display: flex !important; /* Cambiado de none a flex */
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin-left: 4px; /* Espacio mínimo */
    flex-shrink: 0; /* Evitar que se encoja */
    font-size: 1rem !important;
  }
  
  /* Ocultar texto del botón más, solo mostrar ícono */
  .topbar-mas-btn span {
    display: none;
  }
  
  /* Ocultar navegación de topbar en tablet */
  .topbar-nav {
    display: none !important;
  }
  
  /* Ajustar sidebar para tablet */
  .sidebar {
    transform: translateX(-100%);
    z-index: 1001;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main {
    margin-left: 0 !important;
  }
  
  .topbar {
    left: 0 !important;
  }
  
  /* Mostrar botón X en sidebar */
  .sb-close-btn {
    display: flex !important;
  }
}

/* iPad Mini y tablets - Topbar optimizado */
@media (min-width: 769px) and (max-width: 820px) {
  .topbar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 20px !important;
    height: 60px !important;
  }
  
  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  
  .topbar-logo {
    margin: 0 !important;
    transform: none !important;
    width: 120px !important;
  }

  
  
  .topbar-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  
  /* Mostrar botón de más en iPad */
  .topbar-mas-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(46, 125, 50, 0.2) !important;
    background: rgba(46, 125, 50, 0.08) !important;
    color: #1B5E20 !important;
    font-size: 1.2rem !important;
  }
  
  .topbar-mas-btn:hover {
    background: rgba(46, 125, 50, 0.15) !important;
    border-color: rgba(46, 125, 50, 0.4) !important;
    transform: translateY(-1px) !important;
  }
  
  .topbar-nav {
    display: none !important;
  }
}

/* Ajuste específico para iPad Mini en portrait */
@media (min-width: 740px) and (max-width: 768px) {
  .topbar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    padding: 0 16px !important;
  }
  
  .topbar-logo {
    width: 100px !important;
    margin: 0 !important;
  }

   /* ✅ OCULTAR BOTÓN HAMBURGUESA EN TABLET */
  .topbar-toggle {
    display: none !important;
  }
  
  
  .topbar-mas-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }

   .hero-banner-btn {
    margin-left: 180px;
    margin-right: auto !important;
    margin-top: 460px !important;
    font-size: 2rem;
    
  }

  .hero-banner-btn i {
    font-size: 1.3rem;
  }
}

/* ═══ BÚSQUEDA GLOBAL DE PRODUCTOS ═══ */
.global-search-wrap {
  position: relative;
  display: none;
  align-items: center;
  margin-left: 20px;
  flex: 0 1 280px;
  min-width: 0;
}
@media (min-width: 769px) {
  body.is-client .global-search-wrap {
    display: flex;
  }
}.global-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(46,125,50,.06);
  border: 1.5px solid rgba(46,125,50,.18);
  transition: .2s var(--ease);
}
.global-search-box:focus-within {
  border-color: rgba(46,125,50,.5);
  background: rgba(46,125,50,.1);
  box-shadow: 0 0 0 4px rgba(46,125,50,.08);
}
.global-search-box i:first-child {
  color: var(--c-muted);
  font-size: .85rem;
  flex-shrink: 0;
}
.global-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: .85rem;
  color: var(--c-text);
  min-width: 0;
}
.global-search-box input::placeholder { color: rgba(46,125,50,.4) }
#global-search-clear {
  border: none;
  background: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: .78rem;
  padding: 2px;
  flex-shrink: 0;
  transition: color .15s;
}
#global-search-clear:hover { color: var(--c-red) }

.global-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(46,125,50,.18), 0 0 0 1px rgba(46,125,50,.08);
  max-height: 420px;
  overflow-y: auto;
  z-index: 500;
  display: none;
  animation: searchDropdownIn .2s var(--ease);
}
.global-search-dropdown.on { display: block; }
@keyframes searchDropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid rgba(46,125,50,.06);
}
.search-result-item:last-child { border-bottom: none }
.search-result-item:hover { background: rgba(46,125,50,.06) }
.search-result-img {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--c-bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid rgba(46,125,50,.1);
}
.search-result-img img { width: 100%; height: 100%; object-fit: cover }
.search-result-info { flex: 1; min-width: 0 }
.search-result-name {
  font-size: .84rem; font-weight: 700; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-price { font-size: .78rem; color: var(--c-green); font-weight: 700 }
.search-result-cat {
  font-size: .62rem; color: var(--c-muted); text-transform: uppercase;
  letter-spacing: .06em; margin-top: 2px;
}
.search-no-results, .search-empty-hint {
  padding: 28px 16px; text-align: center; color: var(--c-muted); font-size: .84rem;
}
.search-no-results i, .search-empty-hint i { font-size: 1.6rem; opacity: .3; display: block; margin-bottom: 8px }

/* Icono lupa móvil */
.mobile-search-toggle { display: none !important }
@media (max-width: 768px) {
  body.is-client .mobile-search-toggle { display: flex !important }
}

/* Overlay búsqueda móvil pantalla completa */
.mobile-search-overlay {
  position: fixed; inset: 0; z-index: 10050;
  background: var(--c-bg);
  display: none; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .3s var(--ease);
}
.mobile-search-overlay.on {
  display: flex;
  transform: translateY(0);
}
.mobile-search-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; padding-top: calc(16px + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(46,125,50,.12);
}
.mobile-search-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(46,125,50,.2); background: rgba(46,125,50,.06);
  color: var(--c-text); font-size: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.global-search-dropdown-mobile {
  flex: 1; overflow-y: auto; padding: 8px 0;
}

/* Botón para mostrar / ocultar contraseña */
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #64748B;
  transition: color .2s, transform .1s;
  z-index: 2;
}
.password-toggle-btn:hover {
  color: #1B5E20;
}
body.is-admin .password-toggle-btn {
  color: #2E7D32;
}
body.is-admin .password-toggle-btn:hover {
  color: #1B5E20;
}


