﻿/* ─── RESET & VARIABLES ─── */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --erp-dark:#1a2536;--erp-mid:#243044;--erp-hover:#2d3f55;
  --erp-active:#2c4a8a;--erp-text:#e8edf2;--erp-muted:#8a9ab5;
  --accent:#3b82f6;--accent-dark:#2563eb;--accent-light:#eff6ff;
  --success:#10b981;--warning:#f59e0b;--danger:#ef4444;
  --bg:#f1f5f9;--card:#ffffff;--border:#e2e8f0;
  --text:#1e293b;--text-muted:#64748b;
  --radius:12px;--shadow:0 1px 4px rgba(0,0,0,.1);
  --mod-bg:#ffffff;--mod-border:#e2e8f0;--mod-shadow:0 1px 3px rgba(0,0,0,.06);
  --hero-btn-txt:#1a2536;
  --page-bg:#edf4fb;
  --page-cursor-core:rgba(14,165,233,.18);
  --page-cursor-edge:rgba(124,58,237,.07);
  --page-orb-a:rgba(59,130,246,.10);
  --page-orb-b:rgba(139,92,246,.08);
  --page-grid:rgba(37,99,235,.035);
}
/* ─── DARK THEME ─── */
body.dark-theme{
  --bg:#0f172a;--card:#1e293b;--border:#334155;
  --text:#e2e8f0;--text-muted:#94a3b8;
  --shadow:0 1px 6px rgba(0,0,0,.4);
  --mod-bg:#1e293b;--mod-border:#334155;--mod-shadow:0 1px 4px rgba(0,0,0,.3);
  --accent-light:rgba(59,130,246,.15);
  --hero-btn-txt:#e2e8f0;
  --page-bg:#07111f;
  --page-cursor-core:rgba(56,189,248,.17);
  --page-cursor-edge:rgba(139,92,246,.11);
  --page-orb-a:rgba(37,99,235,.15);
  --page-orb-b:rgba(124,58,237,.12);
  --page-grid:rgba(148,163,184,.035);
}
body.dark-theme .mod{background:var(--mod-bg);border-color:var(--mod-border)}
body.dark-theme .price-card{background:var(--card);border-color:var(--border)}
body.dark-theme .modal{background:#1e293b;color:var(--text)}
body.dark-theme .modal-body{background:#1e293b}
/* Header del modal (sticky): tenía background:white fijo → ilegible en oscuro */
body.dark-theme .modal-head{background:#1e293b;border-bottom-color:#334155}
body.dark-theme .modal-close{background:#334155;color:#e2e8f0}
body.dark-theme .modal-close:hover{background:#475569}
body.dark-theme .step-dot{background:#334155}
body.dark-theme .overlay{background:rgba(0,0,0,.7)}
body.dark-theme .form-group input,body.dark-theme .form-group select,body.dark-theme .form-group textarea{background:#0f172a;border-color:#334155;color:#e2e8f0}
body.dark-theme .mod-editor{background:#0f172a;border-color:#334155}
body.dark-theme .comp-table td,body.dark-theme .comp-table th{border-color:#334155}
body.dark-theme footer{background:#0a1120;border-color:#1e293b}
/* Drawer de cotización y barra fija móvil: tenían background:white fijo → invisibles en oscuro */
body.dark-theme .mobile-drawer{background:#1e293b;color:var(--text)}
body.dark-theme .mobile-cta-bar{background:#1e293b;border-top-color:#334155}
body.dark-theme .mod-head:hover{background:rgba(255,255,255,.04)}
/* Módulo seleccionado en oscuro: nombre BLANCO (resalta más que el no seleccionado) */
body.dark-theme .mod.selected .mod-head{background:rgba(59,130,246,.20)}
body.dark-theme .mod.selected .mod-name{color:#ffffff}
body.dark-theme .mod.selected .mod-price{color:#bfdbfe}
body.dark-theme .mod-name{color:#e2e8f0}
body.dark-theme .mod-price{color:#94a3b8}
body.dark-theme .mod.search-match .mod-name{color:#93c5fd}
body{
  --bg-pointer-x:50vw;
  --bg-pointer-y:22vh;
  font-family:'Segoe UI',system-ui,sans-serif;
  background-color:var(--page-bg);
  background-image:
    radial-gradient(640px circle at var(--bg-pointer-x) var(--bg-pointer-y),
      var(--page-cursor-core) 0%,var(--page-cursor-edge) 34%,transparent 68%),
    radial-gradient(ellipse 58% 42% at 5% 20%,var(--page-orb-a) 0%,transparent 72%),
    radial-gradient(ellipse 54% 46% at 96% 78%,var(--page-orb-b) 0%,transparent 74%),
    linear-gradient(var(--page-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--page-grid) 1px,transparent 1px);
  background-size:auto,auto,auto,42px 42px,42px 42px;
  background-attachment:fixed;
  color:var(--text);min-height:100vh;
  transition:background-color .28s ease,color .2s;
}

@media (prefers-reduced-motion:reduce){
  body{--bg-pointer-x:50vw;--bg-pointer-y:22vh;transition:none}
}

/* ─── EDITOR BANNER ─── */
#editor-banner{display:none;background:#fef3c7;border-bottom:2px solid #f59e0b;
  padding:8px 20px;text-align:center;font-size:.82rem;font-weight:700;color:#92400e;
  position:sticky;top:0;z-index:200}
#editor-banner.on{display:flex;align-items:center;justify-content:center;gap:12px}

/* ─── HEADER ─── */
header{background:var(--erp-dark);color:var(--erp-text);height:60px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 24px;position:sticky;top:0;z-index:100;
  box-shadow:0 2px 10px rgba(0,0,0,.35)}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.logo-box{width:34px;height:34px;background:var(--accent);border-radius:8px;
  display:flex;align-items:center;justify-content:center;font-size:.95rem;font-weight:900;color:white}
.logo-text{font-size:1.1rem;font-weight:700;letter-spacing:.04em}
.logo-text span{color:var(--accent)}
.header-right{display:flex;align-items:center;gap:12px}
.header-tag{font-size:.72rem;background:rgba(59,130,246,.25);color:#93c5fd;
  padding:3px 10px;border-radius:99px;font-weight:600;letter-spacing:.05em}

/* ─── HERO ─── */
.hero{
  background:linear-gradient(180deg,#02070f 0%,#060d1f 40%,#080f22 100%);
  color:white;padding:2.5rem 24px 3rem;text-align:center;position:relative;overflow:hidden}
/* Neon glow blobs */
.hero::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%,rgba(59,130,246,.18) 0%,transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 30%,rgba(139,92,246,.15) 0%,transparent 70%),
    radial-gradient(ellipse 40% 35% at 55% 85%,rgba(249,115,22,.1) 0%,transparent 70%)}
/* Bottom neon line */
.hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,transparent 0%,#f97316 20%,#8b5cf6 50%,#3b82f6 80%,transparent 100%);
  box-shadow:0 0 18px rgba(139,92,246,.6),0 0 40px rgba(59,130,246,.3)}
/* Logo in hero */
.hero-logo-wrap{position:relative;margin-bottom:1.4rem;display:flex;justify-content:center}
.hero-logo-img{height:72px;width:auto;object-fit:contain;
  filter:drop-shadow(0 0 18px rgba(59,130,246,.5)) drop-shadow(0 0 35px rgba(139,92,246,.3));
  display:block}
/* Fallback logo (shown if logo.png not found) */
.hero-logo-fallback{display:flex;align-items:center;gap:14px;
  filter:drop-shadow(0 0 12px rgba(59,130,246,.4))}
.hero-logo-fallback .flb-ring{width:56px;height:56px;border-radius:50%;border:3px solid transparent;
  background:conic-gradient(#3b82f6,#8b5cf6,#f97316,#fbbf24,#3b82f6) border-box;
  display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:900;color:white}
.hero-logo-fallback .flb-text{font-size:2rem;font-weight:900;letter-spacing:.04em;
  background:linear-gradient(135deg,#ffffff 30%,#93c5fd 70%,#c4b5fd 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent}
/* Hero headings */
.hero h1{font-size:2.1rem;font-weight:900;margin-bottom:.65rem;line-height:1.2;position:relative;
  text-shadow:0 2px 20px rgba(59,130,246,.25)}
.hero h1 span{
  background:linear-gradient(135deg,#60a5fa 0%,#a78bfa 60%,#60a5fa 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-size:200% auto;animation:shimmer 4s linear infinite}
@keyframes shimmer{to{background-position:200% center}}
.hero p{font-size:.97rem;opacity:.7;max-width:540px;margin:0 auto;line-height:1.65;position:relative}
.hero-badges{display:flex;gap:10px;justify-content:center;margin-top:1.6rem;flex-wrap:wrap}
.hero-badge{
  background:rgba(255,255,255,.05);backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.12);padding:5px 14px;border-radius:99px;
  font-size:.76rem;font-weight:600;color:rgba(255,255,255,.8);
  box-shadow:0 0 12px rgba(59,130,246,.08);transition:all .2s}
.hero-badge:hover{border-color:rgba(139,92,246,.4);background:rgba(139,92,246,.1);color:white}

/* ─── GLOBAL SETTINGS (editor) ─── */
#global-settings{display:none;margin:16px 24px;flex-direction:column;gap:12px}
body.editor #global-settings{display:flex}
.settings-panel{background:#fffbeb;border:1.5px dashed #f59e0b;border-radius:12px;padding:1rem 1.25rem}
.settings-panel h4{font-size:.8rem;font-weight:700;color:#92400e;margin-bottom:.75rem;
  text-transform:uppercase;letter-spacing:.05em}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.settings-grid input,.settings-grid select{
  padding:6px 10px;border:1px solid #fcd34d;border-radius:6px;
  font-size:.82rem;width:100%;background:white;font-family:inherit}
.settings-grid label{font-size:.72rem;color:#78350f;font-weight:600;display:block;margin-bottom:2px}
/* Image manager panel */
.img-manager{background:#f0f9ff;border:1.5px dashed #38bdf8;border-radius:12px;padding:1rem 1.25rem}
.img-manager h4{font-size:.8rem;font-weight:700;color:#0c4a6e;margin-bottom:.9rem;
  text-transform:uppercase;letter-spacing:.05em}
.img-manager-grid{display:flex;flex-wrap:wrap;gap:16px}
.img-slot{background:white;border:1.5px solid #bae6fd;border-radius:10px;
  padding:12px;min-width:200px;flex:1;max-width:320px}
.img-slot-title{font-size:.75rem;font-weight:700;color:#0369a1;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.img-slot-preview{width:100%;height:80px;border-radius:7px;background:#f1f5f9;
  border:1px dashed #cbd5e1;display:flex;align-items:center;justify-content:center;
  overflow:hidden;margin-bottom:8px;position:relative}
.img-slot-preview img{width:100%;height:100%;object-fit:contain}
.img-slot-preview .img-slot-empty{color:#94a3b8;font-size:.75rem;text-align:center;padding:8px}
.img-slot-actions{display:flex;gap:6px}
.img-upload-btn{flex:1;padding:5px 8px;background:#0ea5e9;color:white;border:none;
  border-radius:6px;font-size:.74rem;font-weight:700;cursor:pointer;font-family:inherit;
  text-align:center;transition:background .2s}
.img-upload-btn:hover{background:#0284c7}
.img-save-btn{flex:1;padding:5px 8px;background:#16a34a;color:white;border:none;
  border-radius:6px;font-size:.74rem;font-weight:700;cursor:pointer;font-family:inherit;
  text-align:center;transition:background .2s}
.img-save-btn:hover{background:#15803d}
.img-remove-btn{padding:5px 8px;background:#fee2e2;color:#dc2626;border:1px solid #fca5a5;
  border-radius:6px;font-size:.74rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}
.img-remove-btn:hover{background:#dc2626;color:white}
/* Text editor panel */
.text-manager{background:#f0fdf4;border:1.5px dashed #4ade80;border-radius:12px;padding:1rem 1.25rem}
.text-manager h4{font-size:.8rem;font-weight:700;color:#14532d;margin-bottom:.9rem;
  text-transform:uppercase;letter-spacing:.05em}
.text-field-group{display:flex;flex-direction:column;gap:8px}
.text-field-row{display:flex;flex-direction:column;gap:3px}
.text-field-row label{font-size:.7rem;font-weight:700;color:#166534}
.text-field-row input,.text-field-row textarea{
  padding:6px 10px;border:1.5px solid #bbf7d0;border-radius:6px;
  font-size:.82rem;background:white;font-family:inherit;color:#1e293b;
  width:100%;box-sizing:border-box;transition:border-color .15s}
.text-field-row input:focus,.text-field-row textarea:focus{outline:none;border-color:#4ade80}
.text-field-row textarea{resize:vertical;min-height:54px;line-height:1.4}
.text-badges-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:2px}
/* Exit admin button */
.admin-exit-bar{background:#fff7ed;border:1.5px dashed #fb923c;border-radius:12px;
  padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.admin-exit-bar span{font-size:.8rem;color:#9a3412;font-weight:600}
.admin-exit-btn{padding:7px 20px;background:#dc2626;color:white;border:none;border-radius:8px;
  font-size:.82rem;font-weight:700;cursor:pointer;font-family:inherit;transition:background .2s;
  display:flex;align-items:center;gap:6px}
.admin-exit-btn:hover{background:#b91c1c}

/* ─── MAIN LAYOUT ─── */
.container{max-width:1380px;margin:0 auto;padding:24px;
  display:grid;grid-template-columns:1fr 360px;gap:20px;align-items:start}

/* ─── PLANES POR RUBRO (presets) ─── */
.presets-card{grid-column:1 / -1;background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:18px 20px}
.presets-head h2{font-size:1rem;font-weight:800;color:var(--text)}
.presets-head p{font-size:.82rem;color:var(--text-muted);margin-top:2px}
.presets-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;margin-top:14px}
.preset-card{display:flex;flex-direction:column;gap:4px;text-align:left;cursor:pointer;
  background:var(--bg);border:1.5px solid var(--border);border-radius:12px;
  padding:12px 14px;font-family:inherit;min-height:112px;
  transition:transform .2s cubic-bezier(.34,1.3,.5,1), box-shadow .2s ease, border-color .2s ease}
.preset-card:hover{border-color:var(--accent);transform:translateY(-5px);
  box-shadow:0 14px 30px rgba(37,99,235,.20)}
body.dark-theme .preset-card:hover{
  box-shadow:0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(59,130,246,.35)}
.preset-card:active{transform:translateY(-2px)}
.preset-card.active{border-color:var(--accent);background:var(--accent-light);
  box-shadow:0 0 0 3px rgba(59,130,246,.18)}
.preset-icon{font-size:1.5rem;line-height:1}
.preset-name{font-size:.9rem;font-weight:800;color:var(--text)}
.preset-desc{font-size:.74rem;color:var(--text-muted);line-height:1.35;flex:1}
.preset-price{font-size:1.05rem;font-weight:900;color:var(--text);margin-top:2px}
.preset-count{font-size:.7rem;font-weight:700;color:var(--accent);
  background:var(--accent-light);border-radius:99px;padding:2px 9px;align-self:flex-start}
.preset-card.active .preset-count{background:var(--card)}
/* Listado chiquito de módulos que incluye el pack */
.preset-mods{font-size:.64rem;color:var(--text-muted);line-height:1.4;margin-top:4px;
  padding-top:6px;border-top:1px dashed var(--border)}

/* ─── MODULE SECTION ─── */
.modules-card{background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);overflow:hidden}
.modules-card-head{padding:14px 20px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.modules-card-head h2{font-size:.95rem;font-weight:700;color:var(--text)}
.modules-card-head-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.link-btn{background:none;border:none;cursor:pointer;font-size:.8rem;
  color:var(--accent);font-weight:600;padding:4px 8px;border-radius:6px}
.link-btn:hover{background:var(--accent-light)}
.gallery-global-btn{display:inline-flex;align-items:center;gap:5px;
  background:var(--erp-dark);color:#93c5fd;
  border:1px solid rgba(59,130,246,.3);border-radius:7px;
  padding:5px 12px;font-size:.76rem;font-weight:700;cursor:pointer;
  font-family:inherit;transition:all .2s;white-space:nowrap}
.gallery-global-btn:hover{background:var(--accent);color:white;border-color:var(--accent)}

/* MODULE ITEM */
.mod{border-bottom:1px solid var(--border)}
.mod:last-child{border-bottom:none}
.mod-head{display:flex;align-items:center;gap:10px;padding:11px 20px;
  cursor:default;user-select:none;
  transition:background .25s ease, box-shadow .25s ease}
.mod-head:hover{background:#fafbfc}
/* box-shadow con la barra a 0px cuando NO está seleccionado → anima al entrar/salir */
.mod.selected .mod-head{background:var(--accent-light);box-shadow:inset 3px 0 0 var(--accent)}
.mod-check{width:17px;height:17px;cursor:pointer;accent-color:var(--accent);flex-shrink:0;
  transition:transform .2s ease}
.mod.selected .mod-check{transform:scale(1.12)}
.mod-icon{width:30px;height:30px;border-radius:7px;background:var(--erp-dark);
  display:flex;align-items:center;justify-content:center;font-size:.85rem;flex-shrink:0;color:white;
  transition:background .25s ease, transform .25s ease}
.mod.selected .mod-icon{background:var(--accent);transform:scale(1.06)}
.mod-name{flex:1;font-weight:600;font-size:.9rem;cursor:pointer;transition:color .25s ease}
.mod.selected .mod-name{color:var(--accent-dark);font-weight:700}
.badge-included{font-size:.68rem;background:#dcfce7;color:#16a34a;
  padding:2px 8px;border-radius:99px;font-weight:700;flex-shrink:0}
/* Badge "incluido por el pack activo" (varía según el pack elegido) */
.badge-in-pack{font-size:.68rem;background:#dbeafe;color:#2563eb;
  padding:2px 8px;border-radius:99px;font-weight:700;flex-shrink:0;white-space:nowrap}
.mod-price{font-size:.8rem;color:var(--text-muted);font-weight:500;flex-shrink:0;min-width:80px;text-align:right}
.mod.selected .mod-price{color:var(--accent-dark);font-weight:700}
.expand-btn{width:26px;height:26px;border:1.5px solid var(--border);border-radius:6px;
  background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);font-size:.7rem;transition:all .2s;flex-shrink:0}
.expand-btn:hover{background:var(--accent);border-color:var(--accent);color:white}
.expand-btn.open{background:var(--accent);border-color:var(--accent);color:white;transform:rotate(180deg)}

/* MODULE CONTENT */
.mod-content{display:none;border-top:1px solid var(--border)}
.mod-content.open{display:block;animation:fd .18s ease}
@keyframes fd{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

/* ─── MODULE SCREENS BAR (thumbnail strip) ─── */
.mod-screens-bar{background:var(--erp-dark);padding:10px 14px 12px}
.mod-no-screens-state{display:flex;align-items:center;gap:10px;padding:4px 0}
.mod-no-screens{color:var(--erp-muted);font-size:.78rem}
.editor-hint{display:none;color:rgba(245,158,11,.75);font-size:.7rem;
  padding:2px 8px;background:rgba(245,158,11,.1);border-radius:4px}
body.editor .editor-hint{display:inline}
.mod-thumb-strip{display:flex;gap:10px;overflow-x:auto;padding:4px 0 8px;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
.mod-thumb-strip::-webkit-scrollbar{height:4px}
.mod-thumb-strip::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:2px}
.mod-thumb-item{display:flex;flex-direction:column;align-items:center;gap:4px;
  cursor:pointer;flex-shrink:0;width:140px;transition:transform .15s,opacity .15s}
.mod-thumb-item:hover{transform:translateY(-2px);opacity:.9}
.mod-thumb-img{width:140px;height:88px;object-fit:cover;border-radius:7px;
  border:2px solid rgba(255,255,255,.1);transition:border-color .2s;display:block}
.mod-thumb-item:hover .mod-thumb-img{border-color:var(--accent)}
.mod-thumb-label{color:rgba(255,255,255,.65);font-size:.63rem;text-align:center;
  width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mod-screens-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.mod-screens-count{color:var(--erp-muted);font-size:.72rem}
.view-all-btn{background:var(--accent);color:white;border:none;border-radius:6px;
  padding:5px 14px;font-size:.76rem;font-weight:700;cursor:pointer;transition:background .2s;
  font-family:inherit}
.view-all-btn:hover{background:var(--accent-dark)}

/* ─── PER-ITEM SCREENSHOT + DESCRIPTION CONTROLS ─── */
.sub-items{padding:10px 20px 14px 52px}
.sub-item-block{display:block}
.sub-item-wrap{display:flex;align-items:center;gap:5px;padding:4px 0;
  font-size:.82rem;color:var(--text-muted);min-height:28px}
.sub-item-dot{font-size:.75rem;color:#94a3b8;flex-shrink:0}
.sub-item-text{flex:1;line-height:1.3}
.item-shot-badge{font-size:.78rem;flex-shrink:0;cursor:default}

/* ─── Item info chip (description button) ─── */
.item-info-chip{padding:1px 5px;font-size:.62rem;font-weight:700;letter-spacing:.02em;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);
  border-radius:4px;color:rgba(148,163,184,.45);cursor:pointer;font-family:inherit;
  line-height:1.4;flex-shrink:0;transition:all .15s;white-space:nowrap}
.item-info-chip:hover{background:rgba(59,130,246,.12);color:#93c5fd;border-color:rgba(59,130,246,.35)}
.item-info-chip.has-desc{color:#60a5fa;border-color:rgba(59,130,246,.4);background:rgba(59,130,246,.08)}
.item-info-chip.active{background:rgba(59,130,246,.2);color:#bfdbfe;border-color:#3b82f6}

/* ─── Item description bubble (normal mode view) ─── */
.item-desc-bubble{padding:5px 10px 5px 18px;margin:1px 0 5px;
  background:rgba(15,23,42,.6);border-left:2px solid #3b82f6;
  border-radius:0 5px 5px 0;font-size:.76rem;color:#94a3b8;line-height:1.5;
  animation:fadeIn .12s ease}
.item-desc-bubble.no-desc{color:rgba(148,163,184,.4);font-style:italic;border-color:rgba(148,163,184,.2)}
@keyframes fadeIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* ─── Item description edit row (admin only) ─── */
.item-desc-edit{display:none;padding:1px 0 5px 20px;align-items:center;gap:6px}
body.editor .item-desc-edit{display:flex}
.item-desc-edit-lbl{font-size:.8rem;color:#92400e;flex-shrink:0}
.item-desc-input{flex:1;padding:4px 10px;border:1.5px solid rgba(245,158,11,.45);
  border-radius:5px;font-size:.76rem;background:rgba(255,255,255,.92);color:#1e293b;
  font-family:inherit;transition:border-color .15s,box-shadow .15s}
.item-desc-input:focus{outline:none;border-color:#f59e0b;box-shadow:0 0 0 2px rgba(245,158,11,.15)}
.item-desc-input::placeholder{color:#94a3b8}
.item-upload-mini{display:none;align-items:center;gap:3px;cursor:pointer;
  background:rgba(59,130,246,.12);color:var(--accent);border-radius:4px;
  padding:2px 8px;font-size:.66rem;font-weight:700;flex-shrink:0;
  border:1px solid rgba(59,130,246,.25);transition:background .15s;
  white-space:nowrap;font-family:inherit}
body.editor .item-upload-mini{display:inline-flex}
.item-upload-mini input[type=file]{display:none}
.item-upload-mini:hover{background:rgba(59,130,246,.25);border-color:rgba(59,130,246,.5)}
.item-remove-mini{display:none;background:none;border:none;cursor:pointer;
  color:#94a3b8;font-size:.68rem;padding:1px 4px;flex-shrink:0;line-height:1;
  border-radius:3px;transition:color .15s,background .15s}
body.editor .item-remove-mini{display:inline}
.item-remove-mini:hover{color:var(--danger);background:rgba(239,68,68,.08)}

/* Sub-groups */
.sub-group{margin-top:6px}
.sub-group-head{display:flex;align-items:center;justify-content:space-between;
  padding:5px 8px;border-radius:6px;cursor:pointer;
  font-size:.8rem;font-weight:600;color:var(--text-muted);
  background:rgba(0,0,0,.04);transition:background .15s}
.sub-group-head:hover{background:rgba(0,0,0,.07)}
.sub-group-head .sg-arrow{font-size:.65rem;transition:transform .2s}
.sub-group-head.open .sg-arrow{transform:rotate(180deg)}
.sub-group-items{display:none;padding-left:12px}
.sub-group-items.open{display:block}

/* MODULE EDITOR PANEL */
.mod-editor{display:none;background:#fffbeb;border-top:1.5px dashed #fcd34d;padding:12px 20px}
body.editor .mod-editor{display:block}
.mod-editor-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:8px}
.mod-editor input,.mod-editor textarea{
  width:100%;padding:5px 8px;border:1px solid #fcd34d;border-radius:5px;
  font-size:.78rem;background:white;font-family:inherit}
.mod-editor label{font-size:.7rem;color:#78350f;font-weight:600;display:block;margin-bottom:2px}
.mod-editor textarea{resize:vertical;height:50px}
.save-mod-btn{margin-top:6px;padding:5px 14px;background:var(--accent);color:white;
  border:none;border-radius:6px;cursor:pointer;font-size:.78rem;font-weight:700;font-family:inherit}
.save-mod-btn:hover{background:var(--accent-dark)}
.editor-hint-inline{font-size:.7rem;color:#92400e;margin-left:8px;opacity:.8}

/* ─── PRICE CARD ─── */
.price-card{background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);position:sticky;top:76px;overflow:hidden;
  display:flex;flex-direction:column;max-height:calc(100vh - 96px)}
.pc-header{background:var(--erp-dark);color:white;padding:16px 20px;flex-shrink:0}
.pc-header h3{font-size:.92rem;font-weight:700;margin-bottom:12px}
.plan-toggle{display:flex;background:rgba(255,255,255,.1);border-radius:8px;padding:3px;gap:2px}
.plan-btn{flex:1;padding:8px 10px;border:none;border-radius:6px;cursor:pointer;
  font-size:.78rem;font-weight:700;transition:all .2s;background:transparent;
  color:rgba(255,255,255,.6);text-align:center;line-height:1.3;font-family:inherit}
.plan-btn.active{background:white;color:var(--erp-dark);box-shadow:0 1px 4px rgba(0,0,0,.2)}
.plan-btn small{display:block;font-size:.65rem;font-weight:400;margin-top:1px}

/* ─── User stepper ─── */
.pc-users-row{display:flex;align-items:center;gap:10px;padding:10px 20px 12px;
  border-top:1px solid rgba(255,255,255,.08);margin-top:10px}
.pc-users-lbl{font-size:.8rem;color:rgba(255,255,255,.65);flex:1;font-weight:600}
.pc-stepper{display:flex;align-items:center;gap:4px}
.step-btn{width:28px;height:28px;border:1px solid rgba(255,255,255,.25);border-radius:7px;
  background:rgba(255,255,255,.08);cursor:pointer;font-size:1.1rem;font-weight:700;
  color:rgba(255,255,255,.8);display:flex;align-items:center;justify-content:center;
  transition:all .15s;line-height:1;font-family:inherit;flex-shrink:0}
.step-btn:hover{background:rgba(59,130,246,.4);border-color:#3b82f6;color:white}
.step-btn:active{transform:scale(.92)}
#pc-users-input{width:52px;text-align:center;border:1px solid rgba(255,255,255,.25);
  border-radius:7px;padding:5px 4px;font-size:.95rem;font-weight:800;
  color:white;background:rgba(255,255,255,.1);font-family:inherit}
#pc-users-input:focus{outline:none;border-color:#3b82f6}
#pc-users-input::-webkit-inner-spin-button{-webkit-appearance:none}
.pc-users-hint{font-size:.68rem;color:rgba(255,255,255,.35);white-space:nowrap}

/* form stepper */
.f-step-btn{width:32px;height:36px;border:1px solid var(--border);border-radius:7px;
  background:var(--bg);cursor:pointer;font-size:1.1rem;font-weight:700;
  color:var(--text);display:flex;align-items:center;justify-content:center;
  transition:all .15s;font-family:inherit;flex-shrink:0}
.f-step-btn:hover{background:var(--accent);border-color:var(--accent);color:white}
#f-users::-webkit-inner-spin-button{-webkit-appearance:none}

/* ─── Per-user price row ─── */
.pb-row-users{background:rgba(59,130,246,.06);border-radius:5px;padding:4px 6px;
  margin:2px -6px;font-weight:700}
.pb-row-users span{color:#93c5fd}
.pb-row-users strong{color:#bfdbfe;font-size:.95rem}

/* ════════════════════════════════════════
   DARK MODE TOGGLE
════════════════════════════════════════ */
.theme-toggle-btn{width:32px;height:32px;border:1px solid rgba(255,255,255,.2);
  border-radius:8px;background:rgba(255,255,255,.08);cursor:pointer;font-size:.95rem;
  display:flex;align-items:center;justify-content:center;transition:all .18s;flex-shrink:0}
.theme-toggle-btn:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.4)}

/* ════════════════════════════════════════
   FEATURED BADGE
════════════════════════════════════════ */
.badge-featured{display:inline-flex;align-items:center;gap:3px;font-size:.62rem;
  font-weight:800;padding:2px 7px;border-radius:99px;letter-spacing:.04em;
  background:linear-gradient(135deg,#f59e0b,#ef4444);color:white;
  box-shadow:0 1px 4px rgba(245,158,11,.4);flex-shrink:0}
.mod.featured-mod{border-color:rgba(245,158,11,.4)!important;
  box-shadow:0 0 0 2px rgba(245,158,11,.12)!important}

/* ════════════════════════════════════════
   WHATSAPP + SHARE BUTTONS
════════════════════════════════════════ */
.pc-action-row{display:flex;gap:8px;margin:10px 0 2px}
.pc-action-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
  padding:8px 10px;border-radius:8px;border:1.5px solid;font-size:.76rem;font-weight:700;
  cursor:pointer;font-family:inherit;transition:all .18s;line-height:1}
.pc-action-btn.whatsapp{background:rgba(37,211,102,.1);border-color:rgba(37,211,102,.4);color:#25d366}
.pc-action-btn.whatsapp:hover{background:rgba(37,211,102,.2);border-color:#25d366}
.pc-action-btn.share{background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.3);color:#60a5fa}
.pc-action-btn.share:hover{background:rgba(59,130,246,.2);border-color:#3b82f6}

/* ════════════════════════════════════════
   VOLUME DISCOUNT + COUPON IN PRICE CARD
════════════════════════════════════════ */
.pb-row-discount{border-radius:5px;padding:4px 6px;margin:2px -6px}
.pb-row-discount.vol{background:rgba(16,185,129,.08)}
.pb-row-discount.vol span{color:#34d399}
.pb-row-discount.vol strong{color:#6ee7b7}
.pb-row-discount.coupon{background:rgba(245,158,11,.08)}
.pb-row-discount.coupon span{color:#fbbf24}
.pb-row-discount.coupon strong{color:#fde68a}
.vol-discount-badge{display:inline-flex;align-items:center;gap:4px;font-size:.68rem;
  font-weight:700;background:rgba(16,185,129,.15);color:#10b981;border:1px solid rgba(16,185,129,.3);
  padding:2px 8px;border-radius:99px;margin-left:8px}

/* Coupon input */
.coupon-row{display:flex;gap:6px;margin-top:10px}
.coupon-input{flex:1;padding:8px 12px;border:1.5px solid var(--border);border-radius:8px;
  font-size:.82rem;background:var(--card);color:var(--text);font-family:inherit;transition:border-color .15s}
.coupon-input:focus{outline:none;border-color:var(--accent)}
.coupon-apply-btn{padding:8px 14px;background:var(--accent);color:white;border:none;
  border-radius:8px;cursor:pointer;font-size:.78rem;font-weight:700;font-family:inherit;
  transition:background .15s;white-space:nowrap}
.coupon-apply-btn:hover{background:var(--accent-dark)}
.coupon-badge{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;
  background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.35);color:#d97706;
  padding:4px 10px;border-radius:8px;font-weight:600}
.coupon-badge button{background:none;border:none;cursor:pointer;color:#d97706;font-size:.85rem;padding:0 2px}

/* Admin coupon + volume discount list */
.admin-list-item{display:flex;align-items:center;gap:8px;padding:6px 10px;
  background:rgba(59,130,246,.05);border:1px solid rgba(59,130,246,.15);
  border-radius:7px;margin-bottom:5px;font-size:.8rem}
.admin-list-item .ali-label{flex:1;font-weight:600;color:var(--text)}
.admin-list-item .ali-badge{font-size:.7rem;background:var(--accent);color:white;
  padding:2px 8px;border-radius:99px;font-weight:700}
.admin-list-item .ali-del{background:none;border:none;cursor:pointer;color:var(--danger);font-size:.85rem;padding:2px 6px;border-radius:4px;transition:background .15s}
.admin-list-item .ali-del:hover{background:rgba(239,68,68,.1)}
.admin-add-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.admin-add-row input,.admin-add-row select{padding:6px 10px;border:1px solid var(--border);
  border-radius:7px;font-size:.78rem;background:var(--card);color:var(--text);font-family:inherit}
.admin-add-row button{padding:6px 14px;background:var(--accent);color:white;border:none;
  border-radius:7px;cursor:pointer;font-size:.78rem;font-weight:700;font-family:inherit}
.admin-section{background:var(--card);border:1px solid var(--border);border-radius:10px;
  padding:14px 16px;margin-top:12px}
.admin-section h5{font-size:.82rem;font-weight:700;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px}

/* ════════════════════════════════════════
   STATS PANEL
════════════════════════════════════════ */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:16px}
.stat-card{background:var(--card);border:1px solid var(--border);border-radius:10px;
  padding:14px 16px;text-align:center}
.stat-card .stat-num{font-size:1.8rem;font-weight:800;color:var(--accent);line-height:1}
.stat-card .stat-lbl{font-size:.72rem;color:var(--text-muted);margin-top:4px}
.stats-section{margin-top:14px}
.stats-section h5{font-size:.82rem;font-weight:700;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.stat-bar-row{display:flex;align-items:center;gap:8px;margin-bottom:5px;font-size:.8rem}
.stat-bar-label{width:130px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
.stat-bar-track{flex:1;height:10px;background:var(--border);border-radius:99px;overflow:hidden}
.stat-bar-fill{height:100%;border-radius:99px;background:var(--accent);transition:width .4s ease}
.stat-bar-count{width:30px;text-align:right;color:var(--text-muted);font-weight:700;flex-shrink:0}

/* market price inputs in editor */
.market-prices-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
.market-price-input-wrap label{font-size:.68rem;color:var(--text-muted);display:block;margin-bottom:2px}

.pc-body{padding:16px 20px;overflow-y:auto;flex:1;min-height:0;
  scrollbar-width:none;-ms-overflow-style:none}
.pc-body::-webkit-scrollbar{width:0;height:0;display:none}
.pc-empty{text-align:center;padding:20px 0;color:var(--text-muted);font-size:.85rem}
.pc-empty span{font-size:1.8rem;display:block;margin-bottom:6px}
.sel-module-row{display:flex;justify-content:space-between;align-items:center;
  padding:6px 0;font-size:.82rem;border-bottom:1px solid var(--border)}
.sel-module-row:last-child{border:none}
.sel-mod-name{color:var(--text);font-weight:500}
.sel-mod-price{color:var(--text-muted);font-weight:600;white-space:nowrap}
.price-breakdown{margin-top:14px;padding-top:14px;border-top:2px solid var(--border)}
.pb-row{display:flex;justify-content:space-between;font-size:.8rem;
  color:var(--text-muted);margin-bottom:5px}
.pb-row strong{color:var(--text)}
.pb-total{display:flex;justify-content:space-between;align-items:flex-end;
  margin-top:12px;padding-top:12px;border-top:1.5px solid var(--border)}
.pb-total-label{font-weight:700;font-size:.9rem}
.pb-total-num{font-weight:800;font-size:1.7rem;color:var(--text);line-height:1}
.pb-period{font-size:.73rem;color:var(--text-muted);text-align:right;margin-top:2px}
.cta-btn{display:block;width:100%;margin-top:14px;padding:13px;
  background:var(--accent);color:white;border:none;border-radius:10px;
  font-size:.95rem;font-weight:700;cursor:pointer;transition:background .2s;text-align:center;font-family:inherit}
.cta-btn:hover{background:var(--accent-dark)}
.cta-btn:disabled{background:var(--border);color:var(--text-muted);cursor:not-allowed}
.trust-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.trust-chip{font-size:.7rem;color:var(--text-muted);background:var(--bg);
  padding:3px 10px;border-radius:99px;display:flex;align-items:center;gap:4px}
.support-note{background:var(--bg);border-radius:8px;padding:10px 12px;
  margin-top:10px;font-size:.75rem;color:var(--text-muted);line-height:1.5}
.support-note strong{color:var(--text)}
.pc-gallery-btn{display:block;width:100%;margin-top:10px;padding:9px;
  background:var(--erp-dark);color:#93c5fd;border:1px solid rgba(59,130,246,.25);
  border-radius:9px;font-size:.82rem;font-weight:700;cursor:pointer;
  transition:all .2s;text-align:center;font-family:inherit}
.pc-gallery-btn:hover{background:var(--accent);color:white;border-color:var(--accent)}

/* ─── CHECKOUT MODAL ─── */
.overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);
  z-index:500;align-items:center;justify-content:center;padding:16px}
.overlay.open{display:flex}
.modal{background:white;border-radius:20px;width:100%;max-width:580px;
  max-height:93vh;overflow-y:auto;box-shadow:0 24px 80px rgba(0,0,0,.35)}
.modal-head{display:flex;align-items:center;justify-content:space-between;
  padding:20px 24px 16px;border-bottom:1px solid var(--border);
  position:sticky;top:0;background:white;z-index:2}
.modal-head h3{font-size:1.05rem;font-weight:700}
.modal-close{width:32px;height:32px;border:none;background:var(--border);
  border-radius:50%;cursor:pointer;font-size:.85rem;display:flex;align-items:center;justify-content:center}
.modal-close:hover{background:#d1d9e0}
.steps-bar{display:flex;padding:12px 24px 0;gap:6px}
.step-dot{flex:1;height:3px;background:var(--border);border-radius:99px;transition:background .3s}
.step-dot.done{background:var(--accent)}
.modal-body{padding:20px 24px 24px}
.step-title{font-size:.78rem;font-weight:700;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:12px}
.review-box{background:var(--bg);border-radius:10px;padding:14px;margin-bottom:12px}
.review-box h4{font-size:.8rem;font-weight:700;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
.review-row{display:flex;justify-content:space-between;font-size:.85rem;
  padding:4px 0;border-bottom:1px solid var(--border)}
.review-row:last-child{border:none}
.review-total{display:flex;justify-content:space-between;
  font-weight:700;font-size:1rem;padding-top:10px;margin-top:6px;
  border-top:2px solid var(--border)}
.plan-pill{display:inline-block;background:var(--accent);color:white;
  font-size:.72rem;font-weight:700;padding:2px 10px;border-radius:99px;margin-bottom:8px}
.form-group{margin-bottom:12px}
.form-group label{display:block;font-size:.82rem;font-weight:600;margin-bottom:4px}
.form-group input,.form-group select,.form-group textarea{
  width:100%;padding:10px 12px;border:1.5px solid var(--border);border-radius:8px;
  font-size:.88rem;font-family:inherit;transition:border .2s;background:white}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  outline:none;border-color:var(--accent)}
.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.form-group textarea{resize:vertical;height:70px}
.checkbox-group{display:flex;align-items:flex-start;gap:8px;font-size:.83rem;
  color:var(--text-muted);cursor:pointer}
.checkbox-group input{margin-top:2px;accent-color:var(--accent)}
.btn-row{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.btn{padding:10px 22px;border:none;border-radius:8px;font-size:.88rem;
  font-weight:700;cursor:pointer;transition:all .2s;font-family:inherit}
.btn-primary{background:var(--accent);color:white}
.btn-primary:hover{background:var(--accent-dark)}
.btn-ghost{background:var(--border);color:var(--text)}
.btn-ghost:hover{background:#d1d9e0}
.success-wrap{text-align:center;padding:2rem 1rem}
.success-icon{width:70px;height:70px;background:#dcfce7;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 1rem;font-size:2rem}
.success-wrap h3{font-size:1.3rem;font-weight:800;margin-bottom:.5rem}
.success-wrap p{color:var(--text-muted);font-size:.9rem;line-height:1.6;max-width:380px;margin:0 auto .75rem}
.ref-num{background:var(--bg);border-radius:8px;padding:8px 18px;
  display:inline-block;font-family:monospace;font-size:1rem;font-weight:700;
  color:var(--accent-dark);border:1.5px solid var(--border);margin:.5rem 0}
.quote-summary-btn{margin-top:1rem;padding:10px 20px;background:var(--bg);
  color:var(--text);border:1.5px solid var(--border);border-radius:8px;
  cursor:pointer;font-size:.85rem;font-weight:600;font-family:inherit}
.quote-summary-btn:hover{background:var(--border)}

/* Regreso de Mercado Pago */
.payment-return-overlay{background:rgba(15,23,42,.78);backdrop-filter:blur(4px)}
.payment-return-overlay .modal{max-width:560px}
.payment-return{padding:2.2rem 1.2rem 1.5rem}
.payment-return h3{font-size:1.5rem}
.payment-next-steps{display:flex;flex-direction:column;gap:9px;text-align:left;
  max-width:430px;margin:18px auto;padding:16px 18px;background:#eff6ff;
  border:1px solid #bfdbfe;border-radius:10px;color:#1e3a8a;font-size:.86rem;line-height:1.45}
.payment-next-steps span::before{content:'✓';color:#16a34a;font-weight:900;margin-right:8px}
.payment-note{font-size:.8rem!important;margin-top:8px!important}
.payment-home-btn{display:inline-block;text-decoration:none;margin-top:14px}
.payment-secondary-link{display:block;margin-top:14px;color:var(--text-muted);font-size:.83rem}
.payment-return-icon{width:70px;height:70px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;margin:0 auto 1rem;font-size:2rem;font-weight:900}
.payment-return-icon.error{background:#fee2e2;color:#b91c1c}
.payment-return-icon.pending{background:#fef3c7;color:#92400e}
.payment-spinner{width:58px;height:58px;border:5px solid #dbeafe;border-top-color:#2563eb;
  border-radius:50%;margin:0 auto 1.2rem;animation:payment-spin .8s linear infinite}
@keyframes payment-spin{to{transform:rotate(360deg)}}

/* ─── EDITOR PASSWORD MODAL ─── */
#editor-pass-modal .modal-body{text-align:center;padding:2rem}

/* ─── FOOTER ─── */
footer{text-align:center;padding:2rem 1rem 3rem;color:var(--text-muted);font-size:.82rem;line-height:1.8}
footer a{color:var(--text-muted);text-decoration:none}
.editor-toggle-btn{background:none;border:none;cursor:pointer;color:transparent;
  font-size:.7rem;padding:4px 8px;margin-left:8px;user-select:none;transition:color .3s}
.editor-toggle-btn:hover{color:var(--text-muted)}
body.editor .editor-toggle-btn{color:var(--warning)}

/* ═══════════════════════════════════════════════════
   GALLERY OVERLAY — pantallas a pantalla completa
═══════════════════════════════════════════════════ */
.gallery-overlay{display:none;position:fixed;inset:0;
  background:rgba(4,6,12,.97);z-index:800;
  flex-direction:column;align-items:center;justify-content:center}
.gallery-overlay.open{display:flex}
.gallery-inner{width:100%;max-width:1400px;height:100vh;
  display:flex;flex-direction:column;padding:0 20px;box-sizing:border-box}

/* Top bar */
.gallery-topbar{display:flex;align-items:center;justify-content:space-between;
  padding:13px 0 9px;flex-shrink:0;gap:12px}
.gallery-breadcrumb{display:flex;align-items:center;gap:10px;flex:1;min-width:0;flex-wrap:wrap}
.gl-mod-tag{display:inline-flex;align-items:center;gap:5px;
  background:rgba(59,130,246,.18);color:#93c5fd;
  padding:3px 12px;border-radius:99px;font-size:.76rem;font-weight:700;
  flex-shrink:0;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.gl-sep{color:rgba(255,255,255,.22);font-size:1.1rem;flex-shrink:0}
.gl-item-name{color:white;font-size:.95rem;font-weight:700;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.gallery-topright{display:flex;align-items:center;gap:10px;flex-shrink:0}
.gl-counter{color:rgba(255,255,255,.38);font-size:.78rem;font-family:monospace;
  background:rgba(255,255,255,.06);padding:3px 11px;border-radius:99px;white-space:nowrap}
.gallery-close-btn{width:34px;height:34px;background:rgba(255,255,255,.09);
  border:none;border-radius:50%;color:white;cursor:pointer;font-size:.95rem;
  display:flex;align-items:center;justify-content:center;transition:background .2s;flex-shrink:0}
.gallery-close-btn:hover{background:rgba(255,255,255,.22)}

/* Image zone */
.gallery-img-zone{flex:1;display:flex;align-items:center;gap:12px;min-height:0;padding:4px 0}
.gallery-nav-btn{width:46px;height:46px;background:rgba(255,255,255,.08);border:none;
  border-radius:50%;color:rgba(255,255,255,.75);cursor:pointer;font-size:1.9rem;
  display:flex;align-items:center;justify-content:center;transition:all .18s;
  flex-shrink:0;line-height:1;user-select:none;font-family:inherit}
.gallery-nav-btn:hover{background:rgba(255,255,255,.18);transform:scale(1.08)}
.gallery-img-wrap{flex:1;min-height:0;display:flex;align-items:center;
  justify-content:center;overflow:hidden;border-radius:12px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07)}
#gallery-main-img{max-width:100%;max-height:calc(100vh - 205px);
  object-fit:contain;border-radius:10px;display:block;
  transition:opacity .15s;user-select:none;cursor:zoom-in}
#gallery-main-img.fading{opacity:.15}
#gallery-main-img.zoomed{cursor:zoom-out;max-width:none;max-height:none;
  object-fit:fill}
.gallery-img-wrap.zoomed{overflow:auto;cursor:move;align-items:flex-start;justify-content:flex-start}

/* Filmstrip */
.gallery-filmstrip{display:flex;gap:8px;padding:9px 0 11px;
  flex-shrink:0;overflow-x:auto;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.gallery-filmstrip::-webkit-scrollbar{height:4px}
.gallery-filmstrip::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:2px}
.film-thumb{display:flex;flex-direction:column;align-items:center;gap:3px;
  cursor:pointer;flex-shrink:0;width:96px;opacity:.4;
  transition:opacity .18s,transform .15s}
.film-thumb:hover{opacity:.72;transform:translateY(-2px)}
.film-thumb.active{opacity:1;transform:translateY(-2px)}
.film-thumb-img-wrap{width:96px;height:60px;border-radius:6px;overflow:hidden;
  border:2px solid transparent;transition:border-color .2s;flex-shrink:0}
.film-thumb.active .film-thumb-img-wrap{border-color:var(--accent)}
.film-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.film-thumb-name{color:rgba(255,255,255,.55);font-size:.58rem;text-align:center;
  width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.film-thumb.active .film-thumb-name{color:white}
.film-mod-divider{display:flex;flex-direction:column;align-items:center;
  justify-content:center;flex-shrink:0;padding:0 4px;gap:4px}
.film-mod-divider span{writing-mode:vertical-rl;text-orientation:mixed;
  font-size:.6rem;font-weight:700;color:rgba(59,130,246,.6);
  letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.film-mod-divider::before,.film-mod-divider::after{content:'';display:block;
  width:1px;height:20px;background:rgba(59,130,246,.25)}

/* Gallery keyboard hint */
.gallery-kbd-hint{text-align:center;color:rgba(255,255,255,.2);font-size:.66rem;
  padding-bottom:4px;flex-shrink:0}
.kbd{background:rgba(255,255,255,.1);border-radius:3px;padding:1px 5px;font-family:monospace;font-size:.65rem}

/* ─── RESPONSIVE ─── */
@media(max-width:960px){
  .container{grid-template-columns:1fr;padding:16px}
  .price-card{position:static;max-height:none}
  .pc-body{overflow-y:visible}
}
@media(max-width:520px){
  .hero h1{font-size:1.5rem}
  .form-row-2{grid-template-columns:1fr}
  .mod-editor-grid{grid-template-columns:1fr 1fr}
  .gallery-nav-btn{width:36px;height:36px;font-size:1.4rem}
}
@media print{header,footer,.cta-btn,#editor-banner,.gallery-overlay{display:none!important}}

/* ─── SEARCH BAR ─── */
.search-wrap{position:relative;display:flex;align-items:center}
.search-wrap input{border:1.5px solid var(--border);border-radius:8px;padding:5px 28px 5px 10px;
  font-size:.8rem;font-family:inherit;width:160px;transition:border .2s;background:white}
.search-wrap input:focus{outline:none;border-color:var(--accent);width:200px}
.search-clear{position:absolute;right:6px;background:none;border:none;cursor:pointer;
  color:var(--text-muted);font-size:.8rem;display:none;padding:2px}
.mod.search-hidden{display:none}
.mod.search-match .mod-name{color:var(--accent-dark)}

/* ─── EDITOR-ONLY BUTTONS ─── */
.editor-only{display:none!important}
body.editor .editor-only{display:inline-flex!important;align-items:center;gap:4px}

/* ─── DRAG & DROP ─── */
.drag-handle{display:none;cursor:grab;color:var(--erp-muted);font-size:1.1rem;
  padding:0 2px;flex-shrink:0;align-items:center;user-select:none}
body.editor .drag-handle{display:flex}
.mod.dragging{opacity:.35;background:#f0f9ff}
.mod.drag-over{border-top:3px solid var(--accent)}

/* ─── INFO BUTTON ─── */
.info-btn{width:22px;height:22px;border:1.5px solid var(--border);border-radius:50%;
  background:none;cursor:pointer;font-size:.7rem;color:var(--text-muted);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .18s}
.info-btn:hover{background:var(--accent);border-color:var(--accent);color:white}
.info-btn.has-desc{border-color:rgba(59,130,246,.5);color:#60a5fa}
.info-btn.active{background:rgba(59,130,246,.15);border-color:#3b82f6;color:#93c5fd}

/* ─── Module description bubble ─── */
.mod-desc-bubble{margin:0 12px 8px;padding:12px 16px;
  background:rgba(241,245,249,.06);
  border:1px solid rgba(148,163,184,.18);
  border-top:none;border-radius:0 0 10px 10px;
  animation:fadeIn .15s ease;display:flex;flex-direction:column;gap:10px}
.mod-desc-bubble.no-desc{border-color:rgba(148,163,184,.1)}
.mod-desc-text{font-size:.84rem;color:#cbd5e1;line-height:1.6}
.mod-desc-text.no-desc{color:rgba(148,163,184,.4);font-style:italic}
.mod-desc-more-btn{align-self:flex-start;background:rgba(59,130,246,.12);
  border:1px solid rgba(59,130,246,.3);color:#93c5fd;
  font-size:.73rem;cursor:pointer;padding:4px 12px;font-family:inherit;
  border-radius:99px;font-weight:600;letter-spacing:.02em;transition:all .15s}
.mod-desc-more-btn:hover{background:rgba(59,130,246,.22);border-color:rgba(59,130,246,.5);color:#bfdbfe}

/* ─── RECOMMENDATIONS ─── */
.rec-section{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;
  padding:10px 12px;margin-top:10px}
.rec-title{font-size:.72rem;font-weight:700;color:#166534;margin-bottom:6px}
.rec-chips{display:flex;flex-wrap:wrap;gap:6px}
.rec-chip{background:white;border:1.5px solid #86efac;border-radius:99px;
  padding:3px 12px;font-size:.75rem;font-weight:600;color:#15803d;
  cursor:pointer;transition:all .18s;display:flex;align-items:center;gap:4px}
.rec-chip:hover{background:#dcfce7;border-color:#4ade80}

/* ─── PRICE ANIMATION ─── */
@keyframes pricePop{0%{transform:scale(1);color:inherit}40%{transform:scale(1.1);color:var(--accent)}100%{transform:scale(1);color:inherit}}
.price-pop{animation:pricePop .4s ease}

/* ─── IMAGE HOVER TOOLTIP ─── */
#img-tooltip{position:fixed;z-index:9500;pointer-events:none;
  background:#1a2536;border-radius:10px;padding:5px;
  box-shadow:0 12px 40px rgba(0,0,0,.55);display:none}
#img-tooltip img{width:300px;height:188px;object-fit:cover;border-radius:7px;display:block}
#img-tooltip-label{color:rgba(255,255,255,.7);font-size:.7rem;padding:5px 3px 2px;text-align:center}

/* ─── MODULE INFO MODAL ─── */
.info-header{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}
.info-icon{width:52px;height:52px;border-radius:12px;background:var(--erp-dark);
  display:flex;align-items:center;justify-content:center;font-size:1.6rem;flex-shrink:0}
.info-title{font-size:1.2rem;font-weight:800;color:var(--text);margin-bottom:4px}
.info-price-badge{font-size:.75rem;background:var(--accent-light);color:var(--accent-dark);
  padding:3px 10px;border-radius:99px;font-weight:700;display:inline-block}
.info-desc{font-size:.88rem;color:var(--text-muted);line-height:1.6;margin-bottom:14px}
.info-thumbs{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px;padding-bottom:2px}
.info-thumb{cursor:pointer;flex-shrink:0;width:110px;transition:opacity .2s}
.info-thumb:hover{opacity:.82}
.info-thumb img{width:110px;height:70px;object-fit:cover;border-radius:7px;
  border:2px solid var(--border);display:block}
.info-thumb span{font-size:.6rem;color:var(--text-muted);display:block;
  text-align:center;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.info-thumb-more{width:110px;height:70px;border-radius:7px;background:var(--bg);
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;font-weight:700;color:var(--text-muted);flex-shrink:0;border:2px solid var(--border)}
.info-items-section h4{font-size:.78rem;font-weight:700;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.info-items-grid{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}
.info-item-chip{background:var(--bg);border:1px solid var(--border);border-radius:99px;
  padding:3px 10px;font-size:.76rem;color:var(--text-muted)}
.info-subgroup-title{font-size:.75rem;font-weight:700;color:var(--text);
  margin:8px 0 5px;display:flex;align-items:center;gap:6px}
.info-subgroup-title::before{content:'';flex:none;height:1px;width:12px;background:var(--border)}

/* ─── COMPARATOR MODAL ─── */
.comp-table{width:100%;border-collapse:collapse;margin:12px 0}
.comp-table th{padding:10px 12px;font-size:.78rem;font-weight:700;text-align:left;border-bottom:2px solid var(--border)}
.comp-table th.col-mensual{background:rgba(59,130,246,.08);color:var(--accent-dark)}
.comp-table th.col-compra{background:rgba(16,185,129,.08);color:#065f46}
.comp-table td{padding:8px 12px;font-size:.82rem;border-bottom:1px solid var(--border)}
.comp-table tr:last-child td{border-bottom:none}
.comp-table td.col-mensual{background:rgba(59,130,246,.04);font-weight:600}
.comp-table td.col-compra{background:rgba(16,185,129,.04);font-weight:600}
.comp-table tr.total-row td{font-weight:800;font-size:.95rem;background:var(--bg)}
.breakeven-box{background:linear-gradient(135deg,#fef3c7,#fffbeb);border:1.5px solid #f59e0b;
  border-radius:10px;padding:12px 16px;margin-top:12px;font-size:.85rem;line-height:1.6}
.breakeven-box strong{color:#92400e}

/* ─── HISTORY MODAL ─── */
.history-item{border:1px solid var(--border);border-radius:10px;padding:12px 14px;
  margin-bottom:8px;transition:background .15s}
.history-item:hover{background:var(--bg)}
.history-item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.history-ref{font-family:monospace;font-size:.82rem;font-weight:700;color:var(--accent-dark);
  background:var(--accent-light);padding:1px 8px;border-radius:5px}
.history-date{font-size:.72rem;color:var(--text-muted)}
.history-client{font-size:.85rem;font-weight:600;color:var(--text);margin-bottom:2px}
.history-mods{font-size:.75rem;color:var(--text-muted);margin-bottom:4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-total{font-size:.8rem;color:var(--text-muted)}
.history-total strong{color:var(--text)}

/* ─── MOBILE CTA BAR + DRAWER ─── */
.mobile-cta-bar{display:none;position:fixed;bottom:0;left:0;right:0;
  background:white;border-top:1px solid var(--border);padding:10px 16px;
  z-index:400;box-shadow:0 -4px 20px rgba(0,0,0,.1);
  align-items:center;justify-content:space-between;gap:10px}
.mobile-summary{font-size:.82rem;color:var(--text-muted);flex:1}
.mobile-cta-open-btn{background:var(--accent);color:white;border:none;border-radius:9px;
  padding:10px 18px;font-size:.85rem;font-weight:700;cursor:pointer;font-family:inherit;
  white-space:nowrap;flex-shrink:0}
.mobile-cta-open-btn:hover{background:var(--accent-dark)}
.mobile-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:450}
.mobile-drawer-overlay.open{display:block}
.mobile-drawer{position:fixed;bottom:-100%;left:0;right:0;background:white;
  border-radius:20px 20px 0 0;z-index:460;padding:16px 20px 28px;
  max-height:82vh;overflow-y:auto;transition:bottom .3s cubic-bezier(.4,0,.2,1);
  box-shadow:0 -8px 40px rgba(0,0,0,.18)}
.mobile-drawer.open{bottom:0}
.mobile-drawer-handle{width:40px;height:4px;background:var(--border);border-radius:2px;
  margin:0 auto 14px;cursor:pointer}
.mobile-drawer h3{font-size:.95rem;font-weight:700;margin-bottom:12px}

/* ─── FORM VALIDATION ─── */
.field-error{color:var(--danger);font-size:.75rem;margin-top:3px;display:none;font-weight:500}
.form-group.invalid input,.form-group.invalid select,.form-group.invalid textarea{border-color:var(--danger)!important}

/* ─── DEMO MODE ─── */
body.demo-mode #editor-banner{display:none!important}
body.demo-mode footer{display:none!important}
body.demo-mode header button[onclick*="openEditorModal"]{display:none!important}

/* ─── RESPONSIVE ADDITIONS ─── */
@media(max-width:960px){
  .mobile-cta-bar{display:flex}
  body{padding-bottom:68px}
}

/* ════════════════════════════════════════════
   ERP PREVIEW — Vista pantalla completa estilo sistema
════════════════════════════════════════════ */
.erp-preview{display:none;position:fixed;inset:0;z-index:900;flex-direction:row;background:#f1f5f9}
.erp-preview.open{display:flex}

/* Sidebar */
.ep-sidebar{width:230px;min-width:230px;background:#1a2536;display:flex;flex-direction:column;overflow:hidden;box-shadow:2px 0 10px rgba(0,0,0,.25)}
.ep-logo{display:flex;align-items:center;padding:13px 16px;border-bottom:1px solid rgba(255,255,255,.07);flex-shrink:0}
.ep-logo-brand{display:flex;align-items:center;gap:7px}
.ep-logo-slashes{font-size:1.05rem;font-weight:900;color:#60a5fa;letter-spacing:-1px;font-style:italic;line-height:1}
.ep-logo-name{font-size:.88rem;font-weight:800;color:white;letter-spacing:.12em;line-height:1}
.ep-search-wrap{padding:10px 10px 8px;border-bottom:1px solid rgba(255,255,255,.05);flex-shrink:0}
.ep-search-input{width:100%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:6px 10px;color:rgba(255,255,255,.85);font-size:.77rem;font-family:inherit;box-sizing:border-box}
.ep-search-input::placeholder{color:rgba(255,255,255,.3)}
.ep-search-input:focus{outline:none;border-color:rgba(59,130,246,.55);background:rgba(255,255,255,.1)}
.ep-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 0 12px}
.ep-nav::-webkit-scrollbar{width:3px}
.ep-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:2px}

/* Nav module row */
.ep-mod-row{display:flex;align-items:center;gap:0;padding:0;cursor:pointer;transition:background .15s}
.ep-mod-row:hover{background:rgba(255,255,255,.06)}
.ep-mod-row.ep-active-mod{background:rgba(59,130,246,.15)}
.ep-mod-inner{display:flex;align-items:center;gap:9px;padding:8px 14px;width:100%}
.ep-mod-icon{font-size:.88rem;width:22px;text-align:center;flex-shrink:0;line-height:1}
.ep-mod-name{flex:1;font-size:.8rem;font-weight:600;color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ep-mod-arrow{font-size:.65rem;color:rgba(255,255,255,.3);transition:transform .2s;flex-shrink:0;margin-right:2px}
.ep-mod-row.expanded .ep-mod-arrow{transform:rotate(90deg);color:rgba(255,255,255,.6)}

/* Sub items */
.ep-subs{display:none;background:rgba(0,0,0,.12)}
.ep-subs.open{display:block}
.ep-sub-row{display:flex;align-items:center;gap:7px;padding:5px 14px 5px 40px;cursor:pointer;font-size:.76rem;color:rgba(255,255,255,.45);transition:all .15s;border-left:2px solid transparent;position:relative}
.ep-sub-row:hover{color:rgba(255,255,255,.82);background:rgba(255,255,255,.04)}
.ep-sub-row.has-shot{color:rgba(255,255,255,.65);cursor:pointer}
.ep-sub-row.has-shot:hover{color:white;background:rgba(59,130,246,.12);border-left-color:rgba(59,130,246,.4)}
.ep-sub-row.ep-active{color:#93c5fd!important;background:rgba(59,130,246,.22)!important;border-left-color:#3b82f6!important;font-weight:600}
.ep-shot-dot{width:5px;height:5px;border-radius:50%;background:#3b82f6;flex-shrink:0;opacity:.8}
.ep-no-shot-dot{width:5px;height:5px;flex-shrink:0}
.ep-sub-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Contador de pantallas por módulo */
.ep-mod-count{font-size:.65rem;font-weight:700;color:rgba(255,255,255,.4);background:rgba(255,255,255,.08);
  border-radius:99px;padding:1px 6px;flex-shrink:0;margin-right:4px;line-height:1.5}
.ep-mod-row.ep-active-mod .ep-mod-count{color:#93c5fd;background:rgba(59,130,246,.25)}

/* Subgrupos — nivel intermedio entre el módulo y sus pantallas */
.ep-grp-row{display:flex;align-items:center;gap:7px;padding:5px 14px 5px 28px;cursor:pointer;
  font-size:.735rem;font-weight:600;color:rgba(255,255,255,.5);transition:all .15s;
  border-left:2px solid transparent}
.ep-grp-row:hover{color:rgba(255,255,255,.85);background:rgba(255,255,255,.05)}
.ep-grp-row.ep-grp-active{color:rgba(147,197,253,.9);border-left-color:rgba(59,130,246,.35)}
.ep-grp-arrow{font-size:.62rem;color:rgba(255,255,255,.3);transition:transform .2s;flex-shrink:0;width:8px}
.ep-grp-row.expanded .ep-grp-arrow{transform:rotate(90deg);color:rgba(255,255,255,.55)}
.ep-grp-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ep-grp-count{font-size:.62rem;font-weight:700;color:rgba(255,255,255,.35);flex-shrink:0}
.ep-grp-items{display:none;background:rgba(0,0,0,.14)}
.ep-grp-items.open{display:block}
/* Los ítems de un subgrupo van más indentados y con una guía vertical */
.ep-sub-row.ep-in-grp{padding-left:52px}
.ep-sub-row.ep-in-grp::before{content:'';position:absolute;left:34px;top:0;bottom:0;
  width:1px;background:rgba(255,255,255,.09)}

/* Main area */
.ep-main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}

/* Top bar */
.ep-topbar{height:52px;background:white;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;flex-shrink:0;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.ep-breadcrumb{display:flex;align-items:center;gap:8px;font-size:.82rem;color:#64748b;min-width:0;flex:1}
.ep-breadcrumb .ep-bc-mod{color:#64748b;white-space:nowrap}
.ep-breadcrumb .ep-bc-sep{color:#cbd5e1}
.ep-breadcrumb .ep-bc-item{color:#1e293b;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ep-topbar-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ep-counter-badge{font-size:.75rem;color:#64748b;background:#f1f5f9;padding:3px 10px;border-radius:99px;font-family:monospace;white-space:nowrap}
.ep-nav-arrows{display:flex;gap:3px}
.ep-arr-btn{width:30px;height:30px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:7px;cursor:pointer;font-size:.9rem;color:#64748b;display:flex;align-items:center;justify-content:center;transition:all .18s;line-height:1}
.ep-arr-btn:hover{background:#3b82f6;color:white;border-color:#3b82f6}
.ep-close-btn{background:#fee2e2;border:1px solid #fca5a5;color:#dc2626;border-radius:7px;padding:5px 14px;font-size:.77rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}
.ep-close-btn:hover{background:#dc2626;color:white;border-color:#dc2626}

/* Screenshot content area */
.ep-content{flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;align-items:stretch;background:#0f172a;padding:0}
.ep-content::-webkit-scrollbar{width:0;background:transparent}
.ep-content::-webkit-scrollbar-thumb{background:transparent}
.ep-shot-container{width:100%;display:flex;flex-direction:column}
.ep-shot-img-wrap{display:flex;align-items:flex-start;justify-content:center}
.ep-shot-img-wrap img{width:100%;height:auto;display:block}
/* Body scroll lock when preview is open */
body.ep-open{overflow:hidden}

/* ── MAS ACCOUNT LOGIN CARD ── */
.mas-login-card{width:340px;border-radius:14px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.mas-login-header{background:#1a2536;padding:13px 20px;display:flex;align-items:center;gap:8px}
.mas-login-slashes{font-size:1.1rem;font-weight:900;color:#60a5fa;letter-spacing:-1px;font-style:italic}
.mas-login-brand{font-size:.85rem;font-weight:800;color:white;letter-spacing:.12em}
.mas-login-body{background:white;padding:28px 24px 24px}
.mas-login-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}
.mas-login-title{font-size:1.25rem;font-weight:800;color:#1e293b;margin-bottom:3px}
.mas-login-subtitle{font-size:.75rem;color:#64748b;line-height:1.4}
.mas-login-spinner{width:38px;height:38px;border-radius:50%;background:conic-gradient(#3b82f6 0deg 90deg,#8b5cf6 90deg 180deg,#06b6d4 180deg 270deg,#f59e0b 270deg 360deg);animation:spin 2s linear infinite;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}}
.mas-login-field{display:flex;align-items:center;gap:0;border:1.5px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:12px;background:#f8fafc}
.mas-field-icon{padding:0 12px;font-size:1rem;color:#94a3b8;background:#f1f5f9;border-right:1.5px solid #e2e8f0;height:44px;display:flex;align-items:center;flex-shrink:0}
.mas-login-input{flex:1;border:none;outline:none;padding:0 14px;height:44px;font-size:.9rem;background:transparent;font-family:inherit;color:#1e293b}
.mas-login-input::placeholder{color:#94a3b8}
.mas-login-error{color:#ef4444;font-size:.78rem;min-height:16px;margin-bottom:8px;text-align:center}
.mas-login-btn{width:100%;padding:11px;background:#3b82f6;color:white;border:none;border-radius:8px;font-size:.95rem;font-weight:700;cursor:pointer;font-family:inherit;transition:background .2s;margin-bottom:8px}
.mas-login-btn:hover{background:#2563eb}
.mas-login-cancel{width:100%;padding:8px;background:none;color:#94a3b8;border:none;font-size:.82rem;cursor:pointer;font-family:inherit}
.mas-login-cancel:hover{color:#64748b}
.ep-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#94a3b8;text-align:center;padding:2rem}
.ep-empty-icon{font-size:3.5rem}
.ep-empty p{font-size:.88rem;line-height:1.6;max-width:340px}

/* ─── SELECTOR DE MERCADO / IDIOMA ─── */
.market-lang-wrap{display:flex;align-items:center;gap:6px}
/* Segmented control — estilo iOS/macOS adaptado al header oscuro */
.seg-ctrl{
  display:flex;align-items:center;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.1);
  border-radius:7px;overflow:hidden;
  padding:2px}
.seg-btn{
  padding:4px 10px;border:none;border-radius:5px;
  background:transparent;color:rgba(255,255,255,.45);
  font-size:.68rem;font-weight:700;letter-spacing:.06em;
  cursor:pointer;font-family:inherit;transition:all .15s;
  white-space:nowrap;line-height:1}
.seg-btn:hover{color:rgba(255,255,255,.8);background:rgba(255,255,255,.07)}
.seg-btn.active{
  background:#3b82f6;color:white;
  box-shadow:0 1px 4px rgba(0,0,0,.3)}

/* ─── PASO DE PAGO (checkout step 3) ─── */
.payment-step{display:flex;flex-direction:column;gap:10px;padding:4px 0}
.payment-amount-box{
  background:linear-gradient(135deg,#1e3a5f,#1e2d4a);
  border:1px solid rgba(59,130,246,.3);border-radius:12px;
  padding:16px 20px;text-align:center;margin-bottom:4px}
.payment-amount-label{font-size:.75rem;color:#93c5fd;font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.payment-amount-value{font-size:1.9rem;font-weight:900;color:white;line-height:1.1}
.payment-amount-sub{font-size:.72rem;color:#64748b;margin-top:4px}

/* Botones de método de pago */
.pay-btn{
  display:flex;align-items:center;gap:14px;width:100%;
  padding:13px 16px;border-radius:10px;border:1.5px solid;
  cursor:pointer;font-family:inherit;transition:all .18s;text-align:left}
.pay-btn-icon{font-size:1.3rem;flex-shrink:0;width:28px;text-align:center}
.pay-btn-text{display:flex;flex-direction:column;gap:2px;flex:1}
.pay-btn-text > *:first-child{font-size:.9rem;font-weight:700;color:inherit}
.pay-btn small{font-size:.72rem;font-weight:400;opacity:.75}

.pay-btn-mp{
  background:linear-gradient(135deg,#009ee3 0%,#00b9e3 100%);
  border-color:#009ee3;color:white}
.pay-btn-mp:hover{filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 4px 16px rgba(0,158,227,.3)}
.pay-btn-mp:disabled{opacity:.6;cursor:not-allowed;transform:none}

.pay-btn-stripe{
  background:linear-gradient(135deg,#635bff 0%,#7c75ff 100%);
  border-color:#635bff;color:white}
.pay-btn-stripe:hover{filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 4px 16px rgba(99,91,255,.3)}
.pay-btn-stripe:disabled{opacity:.6;cursor:not-allowed;transform:none}

.pay-btn-email{background:white;border-color:#e2e8f0;color:#1e293b}
.pay-btn-email:hover{background:#f8fafc;border-color:#cbd5e1;transform:translateY(-1px)}
.pay-btn-email .pay-btn-text > *:first-child{color:#1e293b}

.pay-btn-paypal-wrap{border:1.5px solid #e2e8f0;border-radius:10px;padding:12px 14px;background:white}
.pay-btn-paypal-label{font-size:.78rem;font-weight:600;color:#64748b;margin-bottom:8px}
#paypal-btn-container{min-height:44px}

.pay-divider{
  display:flex;align-items:center;gap:10px;color:#94a3b8;font-size:.75rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.06em}
.pay-divider::before,.pay-divider::after{content:'';flex:1;height:1px;background:#e2e8f0}
