/* GLIDE Tienda — tema alineado al manual de marca de Glide (glide-theme.css).
   Azul #004AAD + celeste #5DE0E6, Raleway títulos / Public Sans cuerpo. */
:root {
  --azul: #004AAD;
  --azul-d: #003580;
  --azul-l: #1A66C7;
  --celeste: #5DE0E6;
  --celeste-d: #2BB6BD;

  --tinta: #053E5C;
  --tinta-2: #4A7A95;
  --tinta-3: #8FB0C2;

  --bg: #F4FAFD;
  --surface: #ffffff;
  --surface-2: #F7FBFD;
  --surface-3: #EBF4F9;
  --border: #D5E6F0;
  --border-2: #B8D2E0;

  --rojo: #E63946;
  --rojo-bg: #FDECEE;
  --verde: #2BB673;
  --ok-text: #085041;

  --shadow-sm: 0 1px 2px rgba(5,62,92,.05), 0 1px 6px rgba(5,62,92,.05);
  --shadow-md: 0 2px 6px rgba(5,62,92,.06), 0 8px 24px rgba(5,62,92,.07);
  --shadow-lg: 0 4px 12px rgba(5,62,92,.08), 0 16px 48px rgba(5,62,92,.12);

  --grad-azul: linear-gradient(135deg, #004AAD 0%, #0B5FD0 100%);
  --grad-marca: linear-gradient(90deg, var(--azul) 0%, var(--celeste-d) 100%);
  --focus-ring: 0 0 0 3px rgba(0,74,173,.16);

  --r-sm: 6px; --r: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;

  /* aliases usados por el markup de la tienda */
  --linea: var(--border);
  --gris: var(--tinta-2);
  --fondo: var(--bg);
  --blanco: var(--surface);
  --error: var(--rojo);
  --ok: var(--verde);
  --radio: var(--r-lg);
  --sombra: var(--shadow-sm);
  --sombra-hover: var(--shadow-md);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  background: linear-gradient(180deg, #EEF7FC 0%, var(--bg) 220px);
  background-color: var(--bg);
  color: var(--tinta);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .brand { font-family: 'Raleway', system-ui, sans-serif; letter-spacing: -0.01em; }
::selection { background: rgba(93,224,230,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

/* ---------- Header ---------- */
.shop-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--grad-azul);
  border-bottom: 2px solid transparent;
  border-image: var(--grad-marca) 1;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  box-shadow: var(--shadow-sm);
}
.shop-header .brand {
  font-weight: 800; font-size: 21px; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.shop-header .brand small { color: rgba(255,255,255,.75); font-weight: 600; font-size: 12px; }
.shop-header .spacer { flex: 1; }
.cart-btn {
  position: relative; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s ease;
}
.cart-btn:hover { background: rgba(255,255,255,.26); }
.cart-btn .badge {
  background: var(--celeste); color: var(--azul-d); border-radius: 999px;
  font-size: 12px; font-weight: 800; padding: 0 7px; line-height: 18px;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 18px; }
.grid-productos {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (min-width: 720px) {
  .grid-productos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-azul); color: #fff; border: 0; border-radius: var(--r-xl);
  padding: 26px 24px; margin-bottom: 18px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(93,224,230,.45), transparent 70%);
}
.hero h1 { margin: 0 0 6px; font-size: 27px; position: relative; }
.hero p { margin: 0; opacity: .92; position: relative; max-width: 640px; }

/* ---------- Cards de producto ---------- */
.prod-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.prod-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-marca); opacity: 0; transition: opacity .18s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--azul-l); }
.prod-card:hover::after { opacity: 1; }
.prod-card .ph {
  aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.prod-card .ph img { width: 100%; height: 100%; object-fit: contain; }
.prod-card .info { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.prod-card .nombre { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 14px; line-height: 1.3; }
.prod-card .precio { color: var(--azul); font-weight: 800; font-size: 15px; margin-top: auto; }
.prod-card .precio small { color: var(--tinta-3); font-weight: 600; font-size: 11px; }
.prod-card .swatches { display: flex; gap: 4px; flex-wrap: wrap; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(5,62,92,.15); display: inline-block; }

/* ---------- Chips / filtros ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--tinta);
  border-radius: 999px; padding: 6px 15px; font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--azul-l); }
.chip.on { background: var(--grad-azul); border-color: transparent; color: #fff; }

.search {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 15px; background: var(--surface); outline: none; color: var(--tinta); font-family: inherit;
}
.search:focus { border-color: var(--celeste-d); box-shadow: var(--focus-ring); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-md); padding: 12px 20px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn-primario { background: var(--grad-azul); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primario:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primario:disabled { background: #9db4d8; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secundario { background: var(--surface-3); color: var(--azul); }
.btn-secundario:hover { background: #dfeef8; }
.btn-fantasma { background: transparent; color: var(--tinta-2); border: 1px solid var(--border); }
.btn-fantasma:hover { border-color: var(--azul-l); color: var(--azul); }
.btn-mp { background: #009ee3; color: #fff; box-shadow: var(--shadow-sm); }
.btn-mp:hover { background: #0089c4; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--tinta-2); }
.field input, .field select, .field textarea {
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--r); font-size: 16px;
  background: var(--surface); outline: none; font-family: inherit; color: var(--tinta);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--celeste-d); box-shadow: var(--focus-ring); }
.field .err { color: var(--error); font-size: 12px; display: none; }
.field.invalid input { border-color: var(--error); }
.field.invalid .err { display: block; }
@media (min-width: 640px) { .field input, .field select, .field textarea { font-size: 15px; } }

/* ---------- Paneles ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.panel h2 { margin: 0 0 12px; font-size: 17px; color: var(--tinta); }

/* ---------- Tabla de precios por cantidad ---------- */
.tabla-precios { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla-precios th, .tabla-precios td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--border); }
.tabla-precios th { color: var(--tinta-3); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.tabla-precios tr.activo { background: var(--surface-3); font-weight: 800; color: var(--azul); }
.tabla-precios .desc { color: var(--verde); font-weight: 700; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--tinta); color: #fff; padding: 12px 20px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 200; max-width: 90vw; text-align: center;
  box-shadow: var(--shadow-lg);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--rojo); }

/* ---------- Loader ---------- */
.spin {
  width: 22px; height: 22px; border: 3px solid rgba(0,74,173,.18); border-top-color: var(--azul);
  border-radius: 50%; animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 1.6s; } .prod-card, .btn { transition: none; } }
.cargando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; color: var(--tinta-2); }

/* ---------- Personalizador ---------- */
.pz { display: grid; gap: 16px; }
@media (min-width: 820px) { .pz { grid-template-columns: 1fr 300px; align-items: start; } }
.pz-canvas-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-sm); }
.pz-canvas-wrap canvas { width: 100%; height: auto; display: block; border-radius: var(--r); touch-action: none; background: #fff; aspect-ratio: 1; }
.pz-viewtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pz-vtab { border: 1px solid var(--border); background: #fff; border-radius: var(--r); padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--tinta); }
.pz-vtab.on { background: var(--grad-azul); border-color: transparent; color: #fff; }
.pz-side { display: flex; flex-direction: column; gap: 12px; }
.pz-block { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; }
.pz-block h3 { font-family: 'Raleway',sans-serif; font-size: 13px; margin: 0 0 8px; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .4px; }
.pz-hint { font-size: 12px; color: var(--tinta-2); margin: 8px 0 0; }
.pz input[type=range] { width: 100%; accent-color: var(--azul); }
/* barra de herramientas de diseño */
.pz-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-tool {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--tinta);
  border-radius: var(--r); padding: 7px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; transition: all .12s ease;
}
.pz-tool:hover { border-color: var(--azul-l); background: #fff; }
.pz-tool.on { background: var(--grad-azul); color: #fff; border-color: transparent; }
.pz-tool:disabled { opacity: .45; cursor: not-allowed; }
.pz-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pz-sw { width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(5,62,92,.15); }
.pz-sw.on { border-color: var(--azul); }
.pz-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pz-color-lbl { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); }

/* ---------- Página de producto ---------- */
.prod-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .prod-layout { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.prod-title { font-family: 'Raleway',sans-serif; font-size: 25px; margin: 0 0 4px; color: var(--tinta); }
.prod-cat { color: var(--tinta-3); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.color-opt { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(5,62,92,.15); }
.color-opt.on { border-color: var(--azul); }
.tech-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.precio-live { font-family: 'Raleway',sans-serif; font-size: 28px; font-weight: 800; color: var(--azul); }
.precio-live small { font-size: 14px; color: var(--tinta-2); font-weight: 600; }
.precio-desglose { font-size: 13px; color: var(--tinta-2); margin-top: 2px; }

/* Talles */
.tallas { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.talla {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  border: 1px solid var(--border); border-radius: var(--r); padding: 6px 8px; background: var(--surface-2);
}
.talla span { font-weight: 700; font-size: 13px; }
.talla input { width: 46px; padding: 5px 6px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 15px; }
.tallas-sum { font-size: 13px; margin-top: 8px; font-weight: 700; }
.tallas-sum.bad { color: var(--rojo); }
.tallas-sum.ok { color: var(--ok-text); }

/* ---------- Carrito / resumen ---------- */
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--r); }
.cart-item .meta { font-size: 13px; color: var(--tinta-2); }
.resumen-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.resumen-row.total { font-family: 'Raleway',sans-serif; font-size: 20px; font-weight: 800; color: var(--azul); border-top: 2px solid var(--border); padding-top: 12px; margin-top: 6px; }
.empty { text-align: center; padding: 48px 16px; color: var(--tinta-2); }

/* ═══════════════════════════════════════════════════════════════════
   NAVEGACIÓN GLOBAL DEL SITIO (embudo)
   ═══════════════════════════════════════════════════════════════════ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 20px; color: var(--azul); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-azul); color: #fff; display: grid; place-items: center; font-size: 17px; box-shadow: var(--shadow-sm); }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-logo-w { height: 30px; }
@media (max-width: 640px) { .brand-logo { height: 30px; } }
.brand-txt { letter-spacing: .5px; }
.site-nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { text-decoration: none; color: var(--tinta); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: var(--r); white-space: nowrap; transition: background .12s ease, color .12s ease; }
.site-nav a:hover { background: var(--surface-3); color: var(--azul); }
.site-nav a.active { color: var(--azul); background: var(--surface-3); }
.site-header-actions { display: flex; align-items: center; gap: 8px; }
.wa-btn { display: inline-flex; align-items: center; gap: 6px; background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; padding: 8px 13px; border-radius: 999px; transition: background .15s ease; }
.wa-btn:hover { background: #1eb257; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 5px; background: var(--surface-3); color: var(--azul); border: 1px solid var(--border); border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: 14px; text-decoration: none; }
.cart-btn:hover { background: #e2eef8; }
.cart-btn .badge { background: var(--azul); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 0 6px; line-height: 17px; min-width: 17px; text-align: center; }
@media (max-width: 720px) {
  .site-header-inner { gap: 10px; }
  .site-nav { order: 3; flex-basis: 100%; width: 100%; border-top: 1px solid var(--border); padding-top: 6px; }
  .wa-lbl { display: none; }
  .brand-txt { display: none; }
}

.wrap-wide { max-width: 1280px; }

/* ═══════════════════════════════════════════════════════════════════
   PERSONALIZADOR — layout 3 columnas (herramientas · diseño · compra)
   ═══════════════════════════════════════════════════════════════════ */
.btn-back { margin-bottom: 14px; }
.pz-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pz-stage-col { order: 1; min-width: 0; }
.pz-tools-col { order: 2; min-width: 0; }
.pz-buy-col { order: 3; min-width: 0; }
@media (min-width: 720px) and (max-width: 1039px) {
  .pz-layout { grid-template-columns: 1fr 1fr; }
  .pz-stage-col { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .pz-layout { grid-template-columns: 320px minmax(0, 1fr) 360px; align-items: start; }
  .pz-tools-col { order: 1; position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .pz-stage-col { order: 2; }
  .pz-buy-col { order: 3; position: sticky; top: 76px; }
}
.pz-stage { display: flex; flex-direction: column; gap: 8px; }
.pz-stage-mount { }
.pz-canvas-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-sm); }
.pz-canvas-wrap canvas { width: 100%; height: auto; display: block; border-radius: var(--r); touch-action: none; background: #fff; aspect-ratio: 1; max-width: 640px; margin: 0 auto; }
.pz-stage-hint { font-size: 12px; color: var(--tinta-2); text-align: center; margin: 2px 0 0; }
.pz-viewtabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pz-vtab { border: 1px solid var(--border); background: #fff; border-radius: var(--r); padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--tinta); }
.pz-vtab.on { background: var(--grad-azul); border-color: transparent; color: #fff; }

.pz-tools-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.pz-add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Botones HÉROE del editor: subir logo / agregar texto — lo central del flujo */
.pz-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px solid var(--border); background: var(--surface-2); color: var(--azul);
  border-radius: var(--r-lg); padding: 20px 10px 16px; cursor: pointer; text-align: center;
  font: inherit; transition: all .14s ease; min-height: 104px;
}
.pz-hero span { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 15.5px; color: var(--tinta); }
.pz-hero small { font-size: 11px; color: var(--tinta-3); font-weight: 600; }
.pz-hero:hover { border-color: var(--azul); background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pz-hero:active { transform: translateY(0); }
.pz-block h3 { font-family: 'Raleway', sans-serif; font-size: 12px; margin: 0 0 8px; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .5px; }
.pz-hint { font-size: 12px; color: var(--tinta-2); margin: 8px 0 0; }
.pz-empty { background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--r); padding: 12px; text-align: center; }
.pz-tools-panel input[type=range] { width: 100%; accent-color: var(--azul); }
.pz-layerbar { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pz-layertitle { font-weight: 800; font-size: 13px; color: var(--tinta); display: inline-flex; align-items: center; gap: 5px; }
.pz-x { background: none; border: 0; cursor: pointer; font-size: 15px; color: var(--tinta-2); margin-left: auto; }
.pz-x:hover { color: var(--rojo); }
/* Chip de ZONA de cotización (se actualiza en vivo al mover/agrandar el logo) */
.pz-zone-chip {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  background: var(--surface-3); color: var(--azul); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}

.pz-metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pz-metodo { border: 1px solid var(--border); background: var(--surface-2); color: var(--tinta); border-radius: var(--r); padding: 10px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px; transition: all .12s ease; }
.pz-metodo:hover { border-color: var(--azul-l); }
.pz-metodo b { font-size: 14px; }
.pz-metodo small { font-size: 10.5px; color: var(--tinta-2); line-height: 1.25; }
.pz-metodo.on { background: var(--grad-azul); border-color: transparent; color: #fff; }
.pz-metodo.on small { color: rgba(255,255,255,.85); }
.pz-muted { color: var(--tinta-3); }
/* Botón de edición avanzada */
.pz-adv-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  margin-top: 10px; border: 1.5px dashed var(--azul-l); background: var(--surface-3);
  color: var(--azul); border-radius: var(--r); padding: 11px 10px; font: inherit;
  font-weight: 800; font-size: 13px; cursor: pointer; transition: all .13s ease;
}
.pz-adv-btn:hover { border-style: solid; background: #fff; }

/* ── Modal de EDICIÓN AVANZADA del logo ── */
.pzadv-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(6,22,45,.55);
  display: grid; place-items: center; padding: 14px; backdrop-filter: blur(3px);
}
.pzadv-modal {
  background: #fff; border-radius: var(--r-lg); padding: 16px; width: 100%; max-width: 480px;
  max-height: calc(100vh - 28px); overflow-y: auto; box-shadow: 0 18px 50px rgba(5,30,70,.35);
}
.pzadv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pzadv-head b { font-family: 'Raleway', sans-serif; font-size: 16px; color: var(--tinta); display: inline-flex; align-items: center; gap: 7px; }
.pzadv-canvaswrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 6px; }
.pzadv-canvaswrap canvas { width: 100%; height: auto; display: block; border-radius: 6px; touch-action: none; cursor: crosshair; }
.pzadv-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.pzadv-tab {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--tinta);
  border-radius: var(--r); padding: 8px 4px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; transition: all .12s ease;
}
.pzadv-tab.on { background: var(--grad-azul); color: #fff; border-color: transparent; }
.pzadv-panel { margin-top: 10px; min-height: 74px; }
.pzadv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* barra de herramientas de diseño (retoque) */
.pz-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-tool { border: 1px solid var(--border); background: var(--surface-2); color: var(--tinta); border-radius: var(--r); padding: 7px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all .12s ease; }
.pz-tool:hover { border-color: var(--azul-l); background: #fff; }
.pz-tool.on { background: var(--grad-azul); color: #fff; border-color: transparent; }
.pz-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pz-sw { width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(5,62,92,.15); }
.pz-sw.on { border-color: var(--azul); }
.pz-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pz-color-lbl { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); }

/* Página de producto — columna derecha */
.prod-title { font-family: 'Raleway', sans-serif; font-size: 23px; margin: 0 0 2px; color: var(--tinta); line-height: 1.15; }
.prod-cat { color: var(--tinta-3); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(5,62,92,.18); }
.color-opt.on { border-color: var(--azul); }
.muted { font-weight: 400; color: var(--tinta-2); }
.precio-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; margin-top: 6px; }
.precio-live { font-family: 'Raleway', sans-serif; font-size: 27px; font-weight: 800; color: var(--azul); }
.precio-live small { font-size: 13px; color: var(--tinta-2); font-weight: 600; }
.precio-desglose { font-size: 12.5px; color: var(--tinta-2); margin-top: 2px; }
.precio-box .tabla-precios { margin-top: 12px; }
.btn-lg { padding: 15px 20px; font-size: 16px; }

/* Resumen de personalizaciones */
.perso-summary { display: flex; flex-direction: column; gap: 6px; }
.perso-empty { font-size: 12.5px; color: var(--tinta-2); background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--r); padding: 10px; }
.perso-item { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 7px 9px; }
.perso-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: #fff; text-transform: uppercase; letter-spacing: .3px; }
.perso-badge.dtf { background: var(--celeste-d); }
.perso-badge.bordado { background: var(--azul); }
.perso-desc { flex: 1; color: var(--tinta-2); }
.perso-note { display: block; font-size: 11px; color: var(--tinta-3); margin-top: 2px; }
.perso-cost { font-weight: 800; color: var(--azul); white-space: nowrap; }
.perso-cost small { font-weight: 600; color: var(--tinta-3); font-size: 10px; margin-left: 2px; }
.wa-inline { display: block; text-align: center; margin-top: 12px; color: #128C4B; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.wa-inline:hover { text-decoration: underline; }

/* Tienda — hero, toolbar, tags */
.hero-shop .hero-body { position: relative; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.shop-toolbar { margin-bottom: 6px; }
.prod-card { position: relative; }
.prod-tag { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--verde); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; box-shadow: var(--shadow-sm); }
.swatch-more { font-size: 10px; color: var(--tinta-3); font-weight: 700; align-self: center; }
.demo-note { text-align: center; color: var(--tinta-3); font-size: 12px; margin-top: 24px; }

/* ═══════════════════════════════════════════════════════════════════
   HOME (embudo) + PÁGINAS DE CONTENIDO
   ═══════════════════════════════════════════════════════════════════ */
.home-hero { position: relative; overflow: hidden; background: var(--grad-azul); color: #fff; padding: 64px 20px 72px; text-align: center; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 80% 10%, rgba(93,224,230,.35), transparent 60%), radial-gradient(50% 80% at 10% 90%, rgba(93,224,230,.22), transparent 60%); }
.home-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.home-hero .eyebrow { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; margin-bottom: 18px; }
.home-hero h1 { font-family: 'Raleway', sans-serif; font-size: 40px; line-height: 1.08; margin: 0 0 14px; letter-spacing: -.02em; }
.home-hero p.lead { font-size: 17px; opacity: .94; max-width: 640px; margin: 0 auto 26px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--azul); }
.btn-white:hover { background: #eaf2fd; transform: translateY(-2px); }
.btn-ghost-white { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.2); }
.hero-trust { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; font-size: 13px; opacity: .92; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .home-hero h1 { font-size: 30px; } .home-hero { padding: 44px 16px 52px; } }

.section { max-width: 1180px; margin: 0 auto; padding: 54px 20px; }
.section-tight { padding: 36px 20px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.section-head .eyebrow { color: var(--celeste-d); font-weight: 800; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }
.section-head h2 { font-family: 'Raleway', sans-serif; font-size: 30px; margin: 6px 0 10px; color: var(--tinta); letter-spacing: -.01em; }
.section-head p { color: var(--tinta-2); font-size: 15.5px; margin: 0; }
.section-alt { background: linear-gradient(180deg, #EEF7FC, #fff); }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); position: relative; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-azul); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: 'Raleway', sans-serif; margin-bottom: 12px; }
.step h3 { font-family: 'Raleway', sans-serif; font-size: 17px; margin: 0 0 6px; color: var(--tinta); }
.step p { font-size: 13.5px; color: var(--tinta-2); margin: 0; }

.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; text-decoration: none; color: var(--tinta); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--azul-l); }
.cat-card .cat-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(145deg, rgba(0,74,173,.08), rgba(93,224,230,.16)); }
.cat-card .cat-name { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 14.5px; }

.cards-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.info-card .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(145deg, rgba(0,74,173,.09), rgba(93,224,230,.17)); margin-bottom: 14px; }
.info-card h3 { font-family: 'Raleway', sans-serif; font-size: 18px; margin: 0 0 8px; color: var(--tinta); }
.info-card p { font-size: 14px; color: var(--tinta-2); margin: 0; line-height: 1.55; }
.info-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--tinta-2); font-size: 13.5px; }
.info-card li { margin: 3px 0; }

.tech-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tech-pill { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.tech-pill .t { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 16px; color: var(--azul); }
.tech-pill .d { font-size: 12.5px; color: var(--tinta-2); margin-top: 4px; }

.cta-band { background: var(--grad-marca); color: #fff; border-radius: var(--r-xl); padding: 40px 28px; text-align: center; margin: 20px; max-width: 1140px; margin-inline: auto; }
.cta-band h2 { font-family: 'Raleway', sans-serif; font-size: 28px; margin: 0 0 8px; }
.cta-band p { margin: 0 0 20px; opacity: .95; font-size: 15.5px; }
.cta-band .hero-ctas { justify-content: center; }

.feat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Página interna hero */
.page-hero { background: var(--grad-azul); color: #fff; padding: 46px 20px; text-align: center; }
.page-hero h1 { font-family: 'Raleway', sans-serif; font-size: 32px; margin: 0 0 8px; }
.page-hero p { margin: 0 auto; max-width: 620px; opacity: .94; font-size: 15.5px; }

/* FAQ acordeón */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; font-size: 15px; font-weight: 700; color: var(--tinta); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit; }
.faq-q .chev { transition: transform .2s ease; color: var(--azul); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 18px 16px; margin: 0; color: var(--tinta-2); font-size: 14px; line-height: 1.6; }

/* Contacto */
.contact-grid { display: grid; gap: 22px; grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(145deg, rgba(0,74,173,.09), rgba(93,224,230,.17)); flex-shrink: 0; }
.contact-line b { display: block; font-size: 14px; color: var(--tinta); }
.contact-line a, .contact-line span { color: var(--tinta-2); font-size: 14px; text-decoration: none; }
.contact-line a:hover { color: var(--azul); }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER GLOBAL
   ═══════════════════════════════════════════════════════════════════ */
.site-footer { margin-top: 56px; background: var(--tinta); color: #b9d3e2; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 28px; padding: 42px 20px; }
@media (max-width: 800px) { .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 460px) { .site-footer-inner { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--grad-marca); }
.foot-col h4 { font-family: 'Raleway', sans-serif; font-size: 14px; color: #fff; margin: 0 0 10px; }
.foot-col a { display: block; color: #b9d3e2; text-decoration: none; font-size: 13.5px; padding: 3px 0; }
.foot-col a:hover { color: #fff; }
.foot-brand p { font-size: 13px; line-height: 1.55; margin: 12px 0; max-width: 320px; }
.foot-social { display: flex; gap: 14px; }
.foot-hours { display: block; font-size: 12.5px; color: #8fb0c2; margin-top: 4px; }
.site-footer-legal { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px; font-size: 12px; color: #8fb0c2; }
