/* ==========================================================
   Catalyx · catálogo del cliente + 10 diseños
   Todo vive dentro de .cx-root (contenedor) para que la vista previa
   del celular y la de laptop se comporten igual que en un dispositivo real.
   ========================================================== */
.cx-root {
  --accent: #ff3d7f;
  --accent-ink: #fff;
  --bg: #f6f6f9;
  --surface: #fff;
  --text: #15161b;
  --muted: #6e7180;
  --line: #e7e8ee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 4px rgba(20, 20, 40, .04), 0 10px 26px -10px rgba(20, 20, 40, .18);
  --font: Inter, system-ui, sans-serif;
  --font-h: Inter, system-ui, sans-serif;
  --media-ratio: 1 / 1;
  --wa: #25d366;
  container: cx / inline-size;
  position: relative; overflow: hidden; background: var(--bg); color: var(--text);
  font: 14.5px/1.45 var(--font); -webkit-font-smoothing: antialiased; text-align: left;
}
.cx-root *, .cx-root *::before, .cx-root *::after { box-sizing: border-box; }
.cx-root button { font: inherit; color: inherit; cursor: pointer; }
.cx-root img { display: block; max-width: 100%; }
.cx-root [hidden] { display: none !important; }
.cx-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: smooth; padding-bottom: 90px; }

/* ---------- Hero ---------- */
.cx-hero { position: relative; padding: 34px 18px 26px; background-size: cover; background-position: center; color: #fff; text-align: center; overflow: hidden; }
.cx-hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 6px; }
.cx-logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.2); border: 3px solid rgba(255,255,255,.85); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.cx-logo img { width: 100%; height: 100%; object-fit: cover; }
.cx-logo span { font: 800 28px/1 var(--font-h); }
.cx-title { margin: 6px 0 0; font: 800 26px/1.1 var(--font-h); letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.cx-tagline { margin: 0; opacity: .92; font-size: 15px; }
.cx-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; font-size: 12.5px; opacity: .9; }
.cx-hero-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ---------- Botones ---------- */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; line-height: 1;
  text-decoration: none; transition: transform .12s, filter .15s, background .15s; white-space: nowrap;
}
.cx-btn:active { transform: scale(.96); }
.cx-btn:disabled { opacity: .45; pointer-events: none; }
.cx-btn-wa { background: var(--wa); color: #fff; }
.cx-btn-wa:hover { filter: brightness(1.06); }
.cx-btn-ghost { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); }
.cx-btn-add { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.cx-btn.big { padding: 14px 18px; font-size: 15px; flex: 1; }
.cx-wa-ico { width: 17px; height: 17px; flex: none; }
.cx-link { background: none; border: 0; color: var(--accent); font-weight: 700; padding: 0; font-size: 13px; }

/* ---------- Barra de búsqueda + categorías ---------- */
.cx-toolbar { position: sticky; top: 0; z-index: 3; padding: 10px 14px 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.cx-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; max-width: 760px; margin: 0 auto; }
.cx-search input { flex: 1; border: 0; background: transparent; outline: none; padding: 10px 0; font: inherit; color: var(--text); min-width: 0; }
.cx-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; max-width: 1100px; margin: 0 auto; }
.cx-chips:empty { display: none; }
.cx-chips::-webkit-scrollbar { display: none; }
.cx-chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cx-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Secciones y tarjetas ---------- */
.cx-list { padding: 8px 14px 10px; max-width: 1180px; margin: 0 auto; }
.cx-sec { margin-top: 18px; }
.cx-sec-title { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; font: 800 18px/1.2 var(--font-h); letter-spacing: -.01em; }
.cx-sec-title small { font: 600 12px var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.cx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container cx (min-width: 620px) { .cx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .cx-title { font-size: 34px; } .cx-hero { padding: 54px 24px 40px; } }
@container cx (min-width: 900px) { .cx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cx-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s, box-shadow .18s; outline: none;
}
.cx-card:hover, .cx-card:focus-visible { transform: translateY(-3px); }
.cx-card.is-out { opacity: .6; }
.cx-media { position: relative; aspect-ratio: var(--media-ratio); background: color-mix(in srgb, var(--line) 60%, var(--surface)); overflow: hidden; }
.cx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cx-card:hover .cx-media img { transform: scale(1.05); }
.cx-badge { position: absolute; left: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 99px; letter-spacing: .02em; }
.cx-badge-out { background: #222; color: #fff; }
.cx-off { position: absolute; right: 8px; top: 8px; background: #111; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 7px; border-radius: 99px; }
.cx-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 99px; }
.cx-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cx-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.cx-name { margin: 0; font: 700 14.5px/1.25 var(--font-h); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-desc { margin: 0; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-specs { display: none; list-style: none; margin: 2px 0; padding: 0; flex-wrap: wrap; gap: 4px; }
.cx-specs li { font-size: 11.5px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text); padding: 2px 8px; border-radius: 6px; }
.cx-swatches { display: flex; gap: 4px; align-items: center; }
.cx-swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.cx-swatches small { font-size: 11px; color: var(--muted); }
.cx-sizes { display: flex; flex-wrap: wrap; gap: 3px; }
.cx-sizes span { font-size: 10.5px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: var(--muted); }
.cx-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.cx-price { font: 800 17px/1.1 var(--font-h); color: var(--text); }
.cx-old { font-size: 12.5px; color: var(--muted); }
.cx-save { font-size: 12px; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 2px 8px; border-radius: 99px; }
.cx-actions { display: flex; gap: 6px; margin-top: 4px; }
.cx-actions .cx-btn-wa { flex: 1; padding: 9px 8px; min-width: 0; }
.cx-actions .cx-btn-wa span { overflow: hidden; text-overflow: ellipsis; }
.cx-actions .cx-btn-add { padding: 9px 10px; font-size: 12px; }
.cx-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cx-empty div { font-size: 44px; }
.cx-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 0 10px; }

/* ---------- Botón carrito flotante ---------- */
.cx-fab {
  position: absolute; right: 14px; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 16px 11px 12px; background: var(--text); color: var(--bg);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,.45); font-weight: 800; font-size: 14px;
}
.cx-fab-count { background: var(--accent); color: var(--accent-ink); min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.cx-fab.bump { animation: cxBump .45s; }
@keyframes cxBump { 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }
.cx-close-view {
  position: absolute; left: 12px; top: 12px; z-index: 7; border: 0; border-radius: 99px; padding: 8px 13px;
  background: rgba(0,0,0,.72); color: #fff !important; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px);
}

/* ---------- Capas: detalle y carrito ---------- */
.cx-layer { position: absolute; inset: 0; z-index: 10; background: rgba(8, 8, 16, 0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.cx-layer.show { background: rgba(8, 8, 16, .55); }
.cx-sheet, .cx-cart {
  position: relative; width: 100%; max-height: 92%; background: var(--surface); color: var(--text); border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column; transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .9, .3, 1); overflow: hidden;
}
.cx-layer.show .cx-sheet, .cx-layer.show .cx-cart { transform: none; }
@container cx (min-width: 700px) {
  .cx-modal { align-items: center; }
  .cx-sheet { max-width: 860px; max-height: 88%; border-radius: 22px; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; }
  .cx-modal.show .cx-sheet { opacity: 1; }
  .cx-sheet .cx-sheet-body { display: grid; grid-template-columns: 1.05fr 1fr; }
  .cx-sheet .cx-gal-wrap { position: sticky; top: 0; align-self: start; }
  .cx-drawer { justify-content: flex-end; align-items: stretch; }
  .cx-cart { max-width: 420px; max-height: 100%; height: 100%; border-radius: 22px 0 0 22px; transform: translateX(100%); }
}
.cx-sheet-body, .cx-cart-body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.cx-x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff !important; font-size: 15px; display: grid; place-items: center; }
.cx-x.static { position: static; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text) !important; }
.cx-gal-wrap { position: relative; }
.cx-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: var(--media-ratio); background: #000; }
.cx-gallery::-webkit-scrollbar { display: none; }
.cx-sheet .cx-gallery { max-height: 420px; }
@container cx (min-width: 700px) { .cx-sheet .cx-gallery { max-height: none; } }
.cx-gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.cx-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.cx-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s; }
.cx-dots i.on { width: 20px; background: #fff; }
.cx-detail { padding: 16px 18px 10px; display: grid; gap: 10px; align-content: start; }
.cx-dname { margin: 0; font: 800 22px/1.2 var(--font-h); letter-spacing: -.01em; }
.cx-price-row.big .cx-price { font-size: 26px; color: var(--accent); }
.cx-ddesc { margin: 0; color: var(--muted); font-size: 14.5px; }
.cx-dspecs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cx-dspecs li { font-size: 13px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); padding: 7px 10px; border-radius: 10px; }
.cx-opt { display: grid; gap: 7px; }
.cx-opt > b { font-size: 13px; }
.cx-opt > b span { font-weight: 500; color: var(--muted); }
.cx-opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-color { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: transparent; }
.cx-color i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.cx-color.on { border-color: var(--accent); }
.cx-size { min-width: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; }
.cx-size.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.cx-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; width: max-content; }
.cx-qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; font-weight: 700; }
.cx-qty span { min-width: 34px; text-align: center; font-weight: 800; }
.cx-qty.sm button { width: 30px; height: 30px; font-size: 15px; }
.cx-qty.sm span { min-width: 22px; font-size: 13px; }
.cx-out-msg { color: #b91c1c; font-weight: 600; margin: 0; }
.cx-sheet-foot { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.cx-sheet-foot .cx-btn-add.big { flex: 0 0 auto; }

.cx-cart-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cx-cart-head h2 { margin: 0; font: 800 18px var(--font-h); }
.cx-cart-body { padding: 6px 14px 14px; }
.cx-lines { list-style: none; margin: 0; padding: 0; }
.cx-lines li { display: grid; grid-template-columns: 52px 1fr auto 28px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cx-lines img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.cx-line-info { min-width: 0; display: grid; }
.cx-line-info b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-line-info small, .cx-line-info span { font-size: 12px; color: var(--muted); }
.cx-line-side { display: grid; justify-items: end; gap: 4px; font-size: 13.5px; }
.cx-line-del { border: 0; background: none; font-size: 14px; opacity: .6; padding: 0; }
.cx-coupon { display: flex; gap: 8px; margin: 14px 0 6px; }
.cx-coupon input { flex: 1; min-width: 0; border: 1.5px dashed var(--accent); background: transparent; border-radius: 12px; padding: 10px 12px; outline: none; font: inherit; color: var(--text); }
.cx-coupon-on { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cx-coupon-on small { margin-left: 6px; color: #16a34a; font-weight: 700; }
.cx-coupon-on small.err { color: #b91c1c; }
.cx-sum { display: grid; gap: 6px; margin-top: 12px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, var(--surface)); }
.cx-sum div { display: flex; justify-content: space-between; font-size: 14px; }
.cx-sum .disc { color: #16a34a; font-weight: 600; }
.cx-sum .tot { font: 800 19px var(--font-h); padding-top: 6px; border-top: 1px dashed var(--line); }
.cx-buyer { display: grid; gap: 8px; margin-top: 12px; }
.cx-buyer input, .cx-buyer textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; outline: none; font: inherit; color: var(--text); resize: vertical; }

.cx-toast {
  position: absolute; left: 50%; bottom: 80px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #111; color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; transition: .22s;
  max-width: calc(100% - 28px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.cx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   DISEÑOS
   ========================================================== */

/* 1 · DINÁMICO ------------------------------------------- */
.theme-dinamico { --bg: #fff5f8; --font: Poppins, sans-serif; --font-h: Poppins, sans-serif; --radius: 22px; }
.theme-dinamico .cx-hero { background-size: 200% 200% !important; animation: cxFlow 9s ease infinite; }
.theme-dinamico .cx-hero:not(.has-cover) { background: linear-gradient(120deg, var(--accent), #ff9f43, #a855f7, var(--accent)) !important; background-size: 300% 300% !important; }
.theme-dinamico .cx-hero::before, .theme-dinamico .cx-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); animation: cxFloat 7s ease-in-out infinite; }
.theme-dinamico .cx-hero::before { width: 160px; height: 160px; left: -40px; top: -30px; }
.theme-dinamico .cx-hero::after { width: 110px; height: 110px; right: -20px; bottom: -30px; animation-delay: -3s; }
@keyframes cxFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cxFloat { 50% { transform: translate(12px, 14px) scale(1.08); } }
.theme-dinamico .cx-card { box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--accent) 60%, transparent); }
.theme-dinamico .cx-card:hover { transform: translateY(-5px) rotate(-.4deg); }
.theme-dinamico .cx-price { color: var(--accent); }
.theme-dinamico .cx-sec-title span { background: linear-gradient(90deg, var(--accent), #ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 2 · INFORMATIVO ---------------------------------------- */
.theme-informativo { --bg: #f5f7fb; --radius: 14px; --shadow: 0 1px 0 #e3e7ef; }
.theme-informativo .cx-hero:not(.has-cover) { color: #0f172a; }
.theme-informativo .cx-hero:not(.has-cover) .cx-logo { border-color: #fff; background: var(--accent); color: #fff; }
.theme-informativo .cx-hero:not(.has-cover) .cx-btn-ghost { color: #0f172a; border-color: #c7d2fe; }
.theme-informativo .cx-title { text-shadow: none; }
.theme-informativo .cx-grid { grid-template-columns: 1fr; gap: 10px; }
.theme-informativo .cx-card { flex-direction: row; border: 1px solid #e3e7ef; }
.theme-informativo .cx-card:hover { transform: none; border-color: var(--accent); }
.theme-informativo .cx-media { width: 34%; max-width: 170px; flex: none; aspect-ratio: auto; min-height: 130px; }
.theme-informativo .cx-media img { position: absolute; inset: 0; }
.theme-informativo .cx-desc { -webkit-line-clamp: 3; }
.theme-informativo .cx-specs { display: flex; }
.theme-informativo .cx-specs li { background: #eef2ff; }
.theme-informativo .cx-price { color: var(--accent); }
.theme-informativo .cx-actions { justify-content: flex-start; }
.theme-informativo .cx-actions .cx-btn-wa { flex: 0 1 auto; padding: 9px 14px; }
.theme-informativo .cx-sec-title { border-left: 4px solid var(--accent); padding-left: 10px; }
@container cx (min-width: 760px) { .theme-informativo .cx-grid { grid-template-columns: 1fr 1fr; } }

/* 3 · FUTURISTA ------------------------------------------ */
.theme-futurista {
  --bg: #05060b; --surface: rgba(255,255,255,.045); --text: #e9f6ff; --muted: #8aa3b8; --line: rgba(120, 220, 255, .16);
  --font-h: Orbitron, sans-serif; --radius: 14px; --accent-ink: #00141a; --shadow: none;
  background: radial-gradient(1200px 600px at 10% -10%, #1d1150 0%, transparent 60%), radial-gradient(900px 500px at 110% 20%, #04323d 0%, transparent 55%), #05060b;
}
.theme-futurista .cx-scroll { background-image: linear-gradient(rgba(34, 211, 238, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .05) 1px, transparent 1px); background-size: 34px 34px; }
.theme-futurista .cx-hero:not(.has-cover) { background: transparent !important; }
.theme-futurista .cx-logo { border-color: var(--accent); box-shadow: 0 0 24px var(--accent), inset 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); background: #000; }
.theme-futurista .cx-title { text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.theme-futurista .cx-toolbar { background: rgba(5, 6, 11, .75); }
.theme-futurista .cx-card { border: 1px solid var(--line); backdrop-filter: blur(10px); }
.theme-futurista .cx-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 30px -6px var(--accent); }
.theme-futurista .cx-name { text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em; }
.theme-futurista .cx-price { color: var(--accent); text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.theme-futurista .cx-sec-title { text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.theme-futurista .cx-sec-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); align-self: center; }
.theme-futurista .cx-btn-wa { background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; }
.theme-futurista .cx-btn-wa:hover { background: var(--accent); color: #00141a; }
.theme-futurista .cx-btn-add { border-radius: 8px; }
.theme-futurista .cx-badge { border-radius: 4px; box-shadow: 0 0 14px var(--accent); }
.theme-futurista .cx-sheet, .theme-futurista .cx-cart, .theme-futurista .cx-sheet-foot { background: #0a0d17; }
.theme-futurista .cx-chip.on { box-shadow: 0 0 16px var(--accent); }
.theme-futurista .cx-fab { background: var(--accent); color: #00141a; box-shadow: 0 0 30px -4px var(--accent); }
.theme-futurista .cx-fab-count { background: #00141a; color: var(--accent); }
.theme-futurista .cx-dname { text-transform: uppercase; font-size: 18px; }

/* 4 · VENDEDOR ------------------------------------------- */
.theme-vendedor { --bg: #fff8e6; --radius: 12px; --font-h: Poppins, sans-serif; }
.theme-vendedor .cx-hero:not(.has-cover) { color: #1f1300; }
.theme-vendedor .cx-hero:not(.has-cover) .cx-btn-ghost { color: #1f1300; border-color: rgba(0,0,0,.25); }
.theme-vendedor .cx-title { text-transform: uppercase; text-shadow: 3px 3px 0 #fff; }
.theme-vendedor .cx-hero::after { content: "🔥 OFERTAS POR TIEMPO LIMITADO 🔥 PEDIDOS POR WHATSAPP 🔥 ENVÍOS RÁPIDOS 🔥 OFERTAS POR TIEMPO LIMITADO 🔥 PEDIDOS POR WHATSAPP 🔥 ENVÍOS RÁPIDOS 🔥 OFERTAS POR TIEMPO LIMITADO 🔥 PEDIDOS POR WHATSAPP 🔥 ENVÍOS RÁPIDOS 🔥 OFERTAS POR TIEMPO LIMITADO 🔥 PEDIDOS POR WHATSAPP 🔥 ENVÍOS RÁPIDOS 🔥 OFERTAS POR TIEMPO LIMITADO 🔥 PEDIDOS POR WHATSAPP 🔥 ENVÍOS RÁPIDOS 🔥 OFERTAS POR TIEMPO LIMITADO 🔥 PEDIDOS POR WHATSAPP 🔥 ENVÍOS RÁPIDOS "; position: absolute; left: 0; bottom: 0; white-space: nowrap; font: 800 11px Poppins, sans-serif; letter-spacing: .1em; background: #111; color: #facc15; padding: 5px 0; animation: cxMarquee 16s linear infinite; }
.theme-vendedor .cx-hero { padding-bottom: 46px; }
@keyframes cxMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.theme-vendedor .cx-card { border: 2px solid #111; box-shadow: 4px 4px 0 #111; }
.theme-vendedor .cx-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #111; }
.theme-vendedor .cx-badge { background: #facc15; color: #111; border: 2px solid #111; transform: rotate(-6deg); font-size: 12px; }
.theme-vendedor .cx-off { background: var(--accent); font-size: 14px; padding: 8px; border-radius: 50%; min-width: 46px; height: 46px; display: grid; place-items: center; transform: rotate(10deg); border: 2px solid #fff; }
.theme-vendedor .cx-price { color: var(--accent); font-size: 21px; }
.theme-vendedor .cx-old { font-weight: 700; color: #6b5b2a; }
.theme-vendedor .cx-btn-wa { border-radius: 10px; text-transform: uppercase; font-weight: 800; }
.theme-vendedor .cx-btn-add { border-radius: 10px; background: #facc15; color: #111; }
.theme-vendedor .cx-sec-title { text-transform: uppercase; }
.theme-vendedor .cx-sec-title span { background: #111; color: #facc15; padding: 3px 10px; border-radius: 6px; }
.theme-vendedor .cx-chip.on { background: #111; border-color: #111; color: #facc15; }
.theme-vendedor .cx-fab { background: var(--accent); color: #fff; }
.theme-vendedor .cx-fab-count { background: #facc15; color: #111; }

/* 5 · INMOBILIARIO --------------------------------------- */
.theme-inmobiliario { --bg: #f3f5f8; --text: #0f2a4a; --muted: #5b6b80; --media-ratio: 16 / 10; --radius: 12px; --font-h: "Playfair Display", serif; --accent-ink: #0f2a4a; }
.theme-inmobiliario .cx-hero { text-align: left; padding: 40px 20px 30px; }
.theme-inmobiliario .cx-hero-in { justify-items: start; }
.theme-inmobiliario .cx-meta, .theme-inmobiliario .cx-hero-btns { justify-content: flex-start; }
.theme-inmobiliario .cx-logo { border-radius: 14px; border-color: var(--accent); }
.theme-inmobiliario .cx-grid { grid-template-columns: 1fr; gap: 16px; }
@container cx (min-width: 620px) { .theme-inmobiliario .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container cx (min-width: 980px) { .theme-inmobiliario .cx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-inmobiliario .cx-media::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(8, 20, 36, .7)); }
.theme-inmobiliario .cx-body { padding: 14px; gap: 7px; }
.theme-inmobiliario .cx-name { font-size: 19px; -webkit-line-clamp: 2; }
.theme-inmobiliario .cx-price { font: 800 22px Inter, sans-serif; color: var(--text); }
.theme-inmobiliario .cx-specs { display: flex; gap: 6px; }
.theme-inmobiliario .cx-specs li { background: #eef2f7; color: #0f2a4a; font-weight: 600; padding: 4px 9px; }
.theme-inmobiliario .cx-specs li::before { content: "◆ "; color: var(--accent); }
.theme-inmobiliario .cx-badge { background: var(--accent); color: #0f2a4a; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }
.theme-inmobiliario .cx-btn-wa { border-radius: 8px; background: #0f2a4a; }
.theme-inmobiliario .cx-btn-add { border-radius: 8px; }
.theme-inmobiliario .cx-cat { color: #a8861a; }
.theme-inmobiliario .cx-chip.on { background: #0f2a4a; border-color: #0f2a4a; color: #fff; }
.theme-inmobiliario .cx-sec-title { font-size: 22px; }
.theme-inmobiliario .cx-price-row.big .cx-price { color: #0f2a4a; }
.theme-inmobiliario .cx-fab { background: #0f2a4a; color: #fff; }

/* 6 · MARKETER ------------------------------------------- */
.theme-marketer { --bg: #f2f0eb; --font-h: "Bebas Neue", Impact, sans-serif; --radius: 4px; --shadow: none; }
.theme-marketer .cx-hero { text-align: left; padding: 44px 20px 36px; }
.theme-marketer .cx-hero-in { justify-items: start; }
.theme-marketer .cx-meta, .theme-marketer .cx-hero-btns { justify-content: flex-start; }
.theme-marketer .cx-logo { border-radius: 4px; border-color: var(--accent); }
.theme-marketer .cx-title { font-size: 54px; line-height: .9; letter-spacing: .01em; font-weight: 400; text-transform: uppercase; }
.theme-marketer .cx-title::after { content: ""; display: block; width: 70px; height: 6px; background: var(--accent); margin-top: 10px; }
.theme-marketer .cx-tagline { font-size: 17px; font-weight: 600; }
@container cx (min-width: 620px) { .theme-marketer .cx-title { font-size: 84px; } }
.theme-marketer .cx-card { border: 2px solid #111; }
.theme-marketer .cx-card:hover { transform: none; background: #111; color: #fff; }
.theme-marketer .cx-card:hover .cx-price { color: var(--accent); }
.theme-marketer .cx-name { font-size: 24px; font-weight: 400; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.theme-marketer .cx-price { font-size: 30px; font-weight: 400; }
.theme-marketer .cx-badge { border-radius: 0; background: #111; color: #fff; text-transform: uppercase; }
.theme-marketer .cx-off { border-radius: 0; background: var(--accent); }
.theme-marketer .cx-btn { border-radius: 0; text-transform: uppercase; letter-spacing: .06em; }
.theme-marketer .cx-btn-wa { background: var(--accent); }
.theme-marketer .cx-sec-title { font-size: 40px; font-weight: 400; text-transform: uppercase; line-height: 1; border-bottom: 3px solid #111; padding-bottom: 4px; }
.theme-marketer .cx-chip { border-radius: 0; border: 2px solid #111; color: #111; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.theme-marketer .cx-chip.on { background: #111; color: #fff; border-color: #111; }
.theme-marketer .cx-search { border-radius: 0; border: 2px solid #111; }
.theme-marketer .cx-dname { font-size: 38px; font-weight: 400; text-transform: uppercase; line-height: 1; }
.theme-marketer .cx-fab { border-radius: 0; }

/* 7 · LUJO ----------------------------------------------- */
.theme-lujo { --bg: #0b0b0b; --surface: #141414; --text: #f3ead2; --muted: #a39a82; --line: #2c271a; --font-h: "Playfair Display", serif; --radius: 2px; --media-ratio: 3 / 4; --accent-ink: #0b0b0b; --shadow: none; }
.theme-lujo .cx-hero { padding: 54px 20px 40px; border-bottom: 1px solid var(--accent); }
.theme-lujo .cx-logo { border: 1px solid var(--accent); background: #000; color: var(--accent); }
.theme-lujo .cx-title { font-weight: 500; font-style: italic; font-size: 34px; letter-spacing: .02em; color: var(--accent); }
.theme-lujo .cx-tagline { text-transform: uppercase; letter-spacing: .3em; font-size: 11px; }
.theme-lujo .cx-toolbar { background: rgba(11,11,11,.85); }
.theme-lujo .cx-card { border: 1px solid var(--line); }
.theme-lujo .cx-card:hover { transform: none; border-color: var(--accent); }
.theme-lujo .cx-body { text-align: center; align-items: center; padding: 14px 12px; }
.theme-lujo .cx-name { font-weight: 500; font-size: 16px; }
.theme-lujo .cx-cat { color: var(--muted); letter-spacing: .25em; }
.theme-lujo .cx-price { color: var(--accent); font-weight: 500; font-family: "Playfair Display", serif; }
.theme-lujo .cx-price-row { justify-content: center; }
.theme-lujo .cx-desc { display: none; }
.theme-lujo .cx-actions { width: 100%; }
.theme-lujo .cx-btn { border-radius: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; }
.theme-lujo .cx-btn-wa { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.theme-lujo .cx-btn-wa:hover { background: var(--accent); color: #0b0b0b; }
.theme-lujo .cx-badge { border-radius: 0; background: var(--accent); color: #0b0b0b; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; font-size: 10px; }
.theme-lujo .cx-sec-title { justify-content: center; font-weight: 500; font-style: italic; font-size: 24px; color: var(--accent); }
.theme-lujo .cx-sec-title small { display: none; }
.theme-lujo .cx-chip { border-radius: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.theme-lujo .cx-search { border-radius: 0; }
.theme-lujo .cx-dname { font-weight: 500; font-style: italic; }
.theme-lujo .cx-fab { background: var(--accent); color: #0b0b0b; border-radius: 0; }
.theme-lujo .cx-fab-count { background: #0b0b0b; color: var(--accent); }

/* 8 · MINIMAL -------------------------------------------- */
.theme-minimal { --bg: #fff; --surface: #fff; --radius: 0; --shadow: none; --line: #ececec; }
.theme-minimal .cx-hero:not(.has-cover) { color: #111; border-bottom: 1px solid #ececec; }
.theme-minimal .cx-hero:not(.has-cover) .cx-logo { border: 1px solid #111; background: #fff; color: #111; box-shadow: none; }
.theme-minimal .cx-hero:not(.has-cover) .cx-btn-ghost { color: #111; border-color: #111; }
.theme-minimal .cx-title { font-weight: 600; letter-spacing: -.03em; text-shadow: none; }
.theme-minimal .cx-card:hover { transform: none; }
.theme-minimal .cx-card:hover .cx-media img { transform: scale(1.02); }
.theme-minimal .cx-body { padding: 10px 2px; }
.theme-minimal .cx-name { font-weight: 500; }
.theme-minimal .cx-price { font-weight: 600; font-size: 15px; }
.theme-minimal .cx-cat { color: #999; }
.theme-minimal .cx-desc, .theme-minimal .cx-sizes { display: none; }
.theme-minimal .cx-btn { border-radius: 0; }
.theme-minimal .cx-btn-wa { background: #111; }
.theme-minimal .cx-btn-add { background: transparent; border: 1px solid #111; color: #111; }
.theme-minimal .cx-badge { border-radius: 0; background: #fff; color: #111; border: 1px solid #111; font-weight: 600; }
.theme-minimal .cx-off { border-radius: 0; }
.theme-minimal .cx-sec-title { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.theme-minimal .cx-sec-title small { border: 0; }
.theme-minimal .cx-chip { border-radius: 0; }
.theme-minimal .cx-chip.on { background: #111; border-color: #111; color: #fff; }
.theme-minimal .cx-search { border-radius: 0; }
.theme-minimal .cx-fab { border-radius: 0; }

/* 9 · GOURMET (carta) ------------------------------------ */
.theme-gourmet { --bg: #fbf4e6; --surface: #fffaf0; --text: #3b2414; --muted: #8a6a50; --line: #ead8bb; --font-h: "Playfair Display", serif; --radius: 14px; --shadow: none; }
.theme-gourmet .cx-hero:not(.has-cover) { color: #3b2414; }
.theme-gourmet .cx-hero:not(.has-cover) .cx-btn-ghost { color: #3b2414; border-color: #c9a97f; }
.theme-gourmet .cx-hero:not(.has-cover) .cx-logo { border-color: #3b2414; }
.theme-gourmet .cx-title { font-style: italic; text-shadow: none; font-size: 32px; }
.theme-gourmet .cx-hero-in::before { content: "— Carta —"; font: italic 500 13px "Playfair Display", serif; letter-spacing: .2em; opacity: .7; order: -1; }
.theme-gourmet .cx-list { max-width: 820px; }
.theme-gourmet .cx-grid { grid-template-columns: 1fr; gap: 0; }
@container cx (min-width: 760px) { .theme-gourmet .cx-grid { grid-template-columns: 1fr 1fr; column-gap: 26px; } }
.theme-gourmet .cx-card { flex-direction: row; align-items: center; gap: 12px; background: transparent; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 12px 0; }
.theme-gourmet .cx-card:hover { transform: none; }
.theme-gourmet .cx-media { width: 72px; height: 72px; flex: none; border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.theme-gourmet .cx-badge, .theme-gourmet .cx-off, .theme-gourmet .cx-count { display: none; }
.theme-gourmet .cx-body { padding: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 2px; align-items: baseline; }
.theme-gourmet .cx-cat, .theme-gourmet .cx-swatches, .theme-gourmet .cx-sizes { display: none; }
.theme-gourmet .cx-name { grid-column: 1; font-size: 16.5px; display: flex; align-items: baseline; gap: 6px; -webkit-line-clamp: unset; }
.theme-gourmet .cx-name::after { content: ""; flex: 1; border-bottom: 2px dotted #c9a97f; transform: translateY(-4px); min-width: 20px; }
.theme-gourmet .cx-price-row { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
.theme-gourmet .cx-price { font-family: "Playfair Display", serif; color: var(--accent); }
.theme-gourmet .cx-old { display: none; }
.theme-gourmet .cx-desc { grid-column: 1 / -1; font-style: italic; -webkit-line-clamp: 2; }
.theme-gourmet .cx-specs { grid-column: 1 / -1; }
.theme-gourmet .cx-actions { grid-column: 1 / -1; margin-top: 6px; }
.theme-gourmet .cx-actions .cx-btn-wa { flex: 0 1 auto; padding: 7px 12px; font-size: 12.5px; }
.theme-gourmet .cx-sec-title { justify-content: center; font-style: italic; font-size: 24px; margin-top: 10px; }
.theme-gourmet .cx-sec-title::before, .theme-gourmet .cx-sec-title::after { content: "❦"; font-size: 14px; color: var(--accent); }
.theme-gourmet .cx-sec-title small { display: none; }
.theme-gourmet .cx-chip.on { background: #3b2414; border-color: #3b2414; color: #fbf4e6; }
.theme-gourmet .cx-fab { background: #3b2414; color: #fbf4e6; }

/* 10 · BOUTIQUE ------------------------------------------ */
.theme-boutique { --bg: #fff6f9; --surface: #fff; --text: #4a1d33; --muted: #9b6b80; --line: #f6d5e2; --font-h: "Playfair Display", serif; --radius: 22px; --media-ratio: 3 / 4; --shadow: 0 10px 24px -14px rgba(219, 39, 119, .35); }
.theme-boutique .cx-hero:not(.has-cover) { color: #4a1d33; }
.theme-boutique .cx-hero:not(.has-cover) .cx-btn-ghost { color: #4a1d33; border-color: #f0abc8; }
.theme-boutique .cx-title { font-style: italic; font-weight: 700; text-shadow: none; font-size: 32px; }
.theme-boutique .cx-hero-in::after { content: "✿ ✿ ✿"; color: var(--accent); letter-spacing: .4em; font-size: 12px; margin-top: 4px; }
.theme-boutique .cx-media { margin: 8px 8px 0; border-radius: 16px; }
.theme-boutique .cx-name { font-style: italic; font-size: 16px; font-weight: 500; }
.theme-boutique .cx-cat { color: var(--muted); }
.theme-boutique .cx-price { color: var(--accent); }
.theme-boutique .cx-badge { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.theme-boutique .cx-btn-wa { background: var(--accent); }
.theme-boutique .cx-sec-title { font-style: italic; font-weight: 500; font-size: 22px; justify-content: center; }
.theme-boutique .cx-chip.on { background: var(--accent); }
.theme-boutique .cx-grid { align-items: start; }
.theme-boutique .cx-grid .cx-card:nth-child(even) { margin-top: 22px; }
@container cx (min-width: 620px) { .theme-boutique .cx-grid .cx-card:nth-child(even) { margin-top: 0; } .theme-boutique .cx-grid .cx-card:nth-child(3n+2) { margin-top: 26px; } }
@container cx (min-width: 900px) { .theme-boutique .cx-grid .cx-card:nth-child(3n+2) { margin-top: 0; } .theme-boutique .cx-grid .cx-card:nth-child(even) { margin-top: 26px; } }

/* Destacados: tarjetas un poco más protagonistas */
.cx-sec.is-featured .cx-card { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -2px; }
.theme-gourmet .cx-sec.is-featured .cx-card, .theme-minimal .cx-sec.is-featured .cx-card { outline: 0; }

@media (prefers-reduced-motion: reduce) {
  .cx-root *, .cx-root *::before, .cx-root *::after { animation: none !important; transition: none !important; }
}
