:root {
  --primario: #C81E66;
  --primario-osc: #9d1350;
  --acento: #FFC83D;
  --fondo: #fbf7f9;
  --tarjeta: #ffffff;
  --texto: #2a2226;
  --suave: #75676d;
  --linea: #eadfe4;
  --verde: #1f9d55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--fondo); color: var(--texto); padding-bottom: 76px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--primario); }

.cab { background: linear-gradient(135deg, var(--primario), #e2477f 60%, #f47b50); color: #fff; padding-bottom: 26px; position: relative; }
.cab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--acento) 0 22px, #fff 22px 44px); }
.cab-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.volver { color: #fff; text-decoration: none; font-weight: 600; font-size: .95em; }
.marca { font-size: 1em; margin: 0; font-weight: 600; opacity: .95; }
.marca b { background: var(--acento); color: #7a1640; padding: 2px 10px; border-radius: 999px; margin-left: 4px; }
.hero h2 { font-size: 2em; margin: 18px 0 4px; }
.hero p { margin: 4px 0; max-width: 640px; }
.chips span { display: inline-block; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 4px 12px; margin: 6px 6px 0 0; font-weight: 600; font-size: .9em; }

.tit { font-size: 1.35em; margin: 28px 0 4px; color: var(--primario-osc); }
.tit small { font-weight: 400; color: var(--suave); font-size: .7em; }
.sub { color: var(--suave); margin: 0 0 12px; }
.aviso { text-align: center; color: var(--suave); padding: 30px 0; }

.plantillas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.plantilla { background: var(--tarjeta); border: 2px solid var(--linea); border-radius: 18px; overflow: hidden; text-align: left; padding: 0; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.plantilla:hover, .plantilla:focus-visible { transform: translateY(-2px); border-color: var(--primario); }
.plantilla .foto { aspect-ratio: 4/3; background: #fff1f6 center/cover no-repeat; display: grid; place-items: center; font-size: 3.4em; }
.plantilla .info { padding: 12px 14px 14px; }
.plantilla h3 { margin: 0; font-size: 1.1em; }
.plantilla .precio { color: var(--primario); font-weight: 800; font-size: 1.15em; }
.plantilla p { margin: 4px 0 0; color: var(--suave); font-size: .9em; }

.filtros { position: sticky; top: 0; z-index: 5; background: var(--fondo); padding: 10px 0; }
.filtros input { width: 100%; font: inherit; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--linea); background: #fff; }
.grupos { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.grupos button { flex: 0 0 auto; border: 2px solid var(--linea); background: #fff; color: var(--texto); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.grupos button[aria-selected="true"] { background: var(--primario); border-color: var(--primario); color: #fff; }

.rejilla { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dulce { position: relative; background: var(--tarjeta); border: 2px solid var(--linea); border-radius: 16px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.dulce.on { border-color: var(--primario); box-shadow: 0 10px 18px -14px rgba(200,30,102,.9); }
.dulce.off { opacity: .5; filter: grayscale(1); }
.dulce img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 10px; background: #fff; }
.dulce .nom { font-weight: 700; font-size: .92em; line-height: 1.2; margin: 6px 0 2px; min-height: 2.4em; }
.dulce .pp { color: var(--primario); font-weight: 700; font-size: .92em; }
.dulce .badge { position: absolute; top: 14px; left: 14px; background: #be123c; color: #fff; font-size: .72em; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ctl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.ctl button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--primario); color: #fff; font-size: 1.25em; font-weight: 700; cursor: pointer; }
.ctl button:disabled { background: #ccc; cursor: not-allowed; }
.ctl span { min-width: 22px; font-weight: 800; font-size: 1.1em; }

.pedido { background: var(--tarjeta); border: 3px solid var(--primario); border-radius: 22px; padding: 18px; margin: 30px auto 20px; max-width: 680px; }
.pedido .tit { margin-top: 0; }
.vacio { text-align: center; color: var(--suave); }
.lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lista li { background: #fffafc; border: 1px solid var(--linea); border-radius: 14px; padding: 8px 10px; }
.lista .fila { display: flex; align-items: center; gap: 10px; }
.lista img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.lista .n { flex: 1; font-weight: 600; }
.lista .q { font-weight: 800; color: var(--primario); }
.lista .si { display: block; font-size: .88em; color: var(--suave); margin-top: 6px; }
.lista select { width: 100%; margin-top: 3px; }
.alerta { background: #fff0f3; border: 1px solid #fecdd3; color: #be123c; border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.cuantos { display: block; font-weight: 700; margin-top: 16px; }
.stepper { display: flex; gap: 6px; margin-top: 6px; }
.stepper button { border: 2px solid var(--primario); background: #fff; color: var(--primario); border-radius: 10px; font: inherit; font-weight: 700; padding: 0 12px; cursor: pointer; }
.stepper input { width: 110px; text-align: center; font-size: 1.3em; font-weight: 800; }
.totales { background: #fffaf0; border: 2px dashed var(--acento); border-radius: 16px; padding: 10px 14px; margin-top: 14px; }
.t { display: flex; justify-content: space-between; padding: 4px 0; }
.t.desc { color: var(--verde); }
.t.total { font-size: 1.45em; font-weight: 800; color: var(--primario); border-top: 2px dashed var(--acento); margin-top: 4px; padding-top: 8px; }
.tip { margin: 6px 0 0; font-weight: 700; color: var(--primario-osc); }

form { margin-top: 14px; }
fieldset { border: 1px solid var(--linea); border-radius: 14px; margin: 0 0 12px; padding: 10px 14px; }
legend { font-weight: 700; padding: 0 6px; }
form label { display: grid; gap: 4px; font-weight: 600; margin-bottom: 8px; }
form label.op, form label.acepto { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { font: inherit; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--linea); background: #fff; color: var(--texto); max-width: 100%; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; }
.err { color: #be123c; margin: -4px 0 8px; font-size: .9em; }
.acepto { align-items: flex-start !important; }
.enviar, .btn { display: inline-block; width: 100%; text-align: center; background: var(--primario); color: #fff; border: 0; border-radius: 14px; padding: 14px; font: inherit; font-weight: 800; font-size: 1.05em; cursor: pointer; text-decoration: none; }
.enviar:disabled { background: #c9b8c0; cursor: not-allowed; }
.btn.wa { background: #25d366; }
.btn.sec { background: #fff; color: var(--primario); border: 2px solid var(--primario); }
.letra { font-size: .85em; color: var(--suave); text-align: center; }

.listo { text-align: center; max-width: 520px; margin: 30px auto; background: #fff; border-radius: 22px; padding: 22px; border: 3px solid var(--verde); }
.listo-ico { font-size: 3em; margin: 0; }

.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--primario); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; box-shadow: 0 -8px 20px -10px rgba(0,0,0,.4); }
.barra a { background: var(--acento); color: #5c1030; font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) { .hero h2 { font-size: 1.6em; } .stepper input { width: 80px; } }
.bolsa-info{margin:12px 0;padding:10px 14px;border:2px dashed #c2185b;border-radius:12px;background:#fff5f9;color:#7a1040;line-height:1.5}
.bolsa-info small{color:#6b4a57}
.tabla-bolsas{width:100%;border-collapse:collapse;margin:8px 0;font-size:.95em}
.tabla-bolsas th,.tabla-bolsas td{padding:6px 8px;border-bottom:1px solid #f3c6d8;text-align:left}
.tabla-bolsas tr.sel{background:#fde3ee}
.tabla-bolsas tr.no{opacity:.45}
.tabla-bolsas em{font-style:normal;font-size:.8em;background:#c2185b;color:#fff;border-radius:8px;padding:1px 6px;margin-left:4px}
.tabla-bolsas label{cursor:pointer}
.vista-bolo{display:flex;flex-direction:column;align-items:center;margin:14px 0;padding:18px 12px;border-radius:14px;background:radial-gradient(circle at 50% 35%,#fff 0,#fde3ee 100%)}
.bolso{position:relative;display:flex;flex-direction:column;align-items:center}
.copete{width:46%;height:34px;background:linear-gradient(90deg,rgba(255,255,255,.3),rgba(255,255,255,.95),rgba(255,255,255,.3));clip-path:polygon(0 0,10% 14%,20% 0,30% 14%,40% 0,50% 14%,60% 0,70% 14%,80% 0,90% 14%,100% 0,62% 100%,38% 100%)}
.liga{position:relative;z-index:3;width:22%;height:9px;margin:-2px 0;border-radius:6px;background:#e91e63;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.cuerpo{position:relative;width:100%;margin-top:-3px;overflow:hidden;border:1px solid rgba(150,150,170,.45);border-radius:42% 42% 16px 16px/14% 14% 16px 16px;background:rgba(255,255,255,.45);box-shadow:inset 0 0 18px rgba(255,255,255,.9),0 8px 18px rgba(194,24,91,.18)}
.cuerpo::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,0) 20%,rgba(255,255,255,.55) 28%,rgba(255,255,255,0) 36%,rgba(255,255,255,0) 62%,rgba(255,255,255,.35) 68%,rgba(255,255,255,0) 74%)}
.pz{position:absolute;display:flex;align-items:center;justify-content:center;font-size:24px}
.pz img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.vista-txt{text-align:center;margin:10px 0 0;color:#7a1040;font-weight:600}
.vista-txt small{font-weight:400;color:#6b4a57}
.bolso{filter:drop-shadow(0 0 1px rgba(110,110,140,.7)) drop-shadow(0 10px 14px rgba(194,24,91,.22))}
.copete{width:52%;height:44px;background:linear-gradient(90deg,rgba(240,244,255,.55),rgba(255,255,255,.98) 50%,rgba(240,244,255,.55));clip-path:polygon(0 0,8% 16%,17% 2%,26% 18%,35% 0,44% 16%,52% 2%,61% 18%,70% 0,79% 16%,88% 2%,100% 0,74% 100%,26% 100%)}
.liga{width:30%;height:11px;margin:-6px 0 -5px;border-radius:7px;background:linear-gradient(#ff4f8b,#c2185b)}
.cuerpo{margin-top:0;border:none;border-radius:0;box-shadow:none;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(232,240,255,.6));clip-path:polygon(38% 0,62% 0,68% 5%,84% 14%,95% 27%,100% 42%,100% 95%,96% 100%,4% 100%,0 95%,0 42%,5% 27%,16% 14%,32% 5%)}
.cuerpo::after{z-index:60;background:linear-gradient(110deg,rgba(255,255,255,0) 14%,rgba(255,255,255,.6) 20%,rgba(255,255,255,0) 27%,rgba(255,255,255,0) 66%,rgba(255,255,255,.4) 71%,rgba(255,255,255,0) 77%)}
.pz{z-index:auto}
.pz img{display:block;mix-blend-mode:multiply;filter:saturate(1.15) contrast(1.05)}
.cuerpo{background:linear-gradient(0deg,rgba(140,150,185,.35) 0 3px,transparent 3px 7px,rgba(140,150,185,.18) 7px 8px,transparent 8px),linear-gradient(180deg,rgba(250,251,255,.8),rgba(236,242,252,.9))}
.cuerpo::before{content:"";position:absolute;inset:0;z-index:59;pointer-events:none;background:repeating-linear-gradient(90deg,rgba(255,255,255,0) 0 14px,rgba(255,255,255,.4) 15px,rgba(150,160,195,.13) 17px,rgba(255,255,255,0) 19px 31px)}
.copete{background:repeating-linear-gradient(90deg,rgba(255,255,255,.98) 0 5px,rgba(215,224,242,.8) 7px,rgba(255,255,255,.98) 10px)}
.liga::before,.liga::after{content:"";position:absolute;top:-8px;width:16px;height:12px;border:3px solid #d81b60;border-radius:50%}
.liga::before{left:-12px;transform:rotate(-25deg)}
.liga::after{right:-12px;transform:rotate(25deg)}
.sombra{height:16px;margin-top:-9px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(122,16,64,.28),rgba(122,16,64,0) 70%)}

/* DULCIREGIA - BOLSA PREMIUM */
.bolso {
  filter: drop-shadow(0 15px 18px rgba(130,40,90,.18));
}

.cuerpo {
  background: linear-gradient(105deg,
    rgba(210,225,255,.35) 0%,
    rgba(255,255,255,.12) 25%,
    rgba(255,255,255,.04) 55%,
    rgba(220,235,255,.35) 100%);
  box-shadow:
    inset 8px 0 15px rgba(255,255,255,.65),
    inset -8px 0 15px rgba(160,185,220,.18),
    0 12px 25px rgba(130,60,110,.15);
}

.cuerpo::before {
  opacity: .25;
}

.copete {
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.95) 0px,
    rgba(210,225,245,.65) 6px,
    rgba(255,255,255,.45) 12px);
  filter: drop-shadow(0 3px 3px rgba(100,100,140,.15));
}

.liga {
  background: linear-gradient(180deg,#ff8db8,#e91670,#aa0649);
  box-shadow: 0 3px 7px rgba(190,0,90,.4);
}

.pz img {
  mix-blend-mode: normal;
  filter: saturate(1.3) contrast(1.12)
          drop-shadow(0 3px 3px rgba(0,0,0,.25));
}

/* DULCIREGIA — REDISEÑO PREMIUM V2 */

.bolso {
  transform: scale(1.25);
  transform-origin: center;
  margin: 42px auto 55px;
  filter: drop-shadow(0 18px 14px rgba(95,40,75,.20));
}

.cuerpo {
  background:
    linear-gradient(100deg,
      rgba(255,255,255,.65) 0%,
      rgba(255,255,255,.08) 17%,
      rgba(255,255,255,.02) 45%,
      rgba(220,235,255,.10) 75%,
      rgba(255,255,255,.55) 100%);
  border: 1px solid rgba(170,195,225,.40);
  border-radius: 43% 43% 12% 12% / 25% 25% 6% 6%;
  overflow: hidden;
  box-shadow:
    inset 8px 0 12px rgba(255,255,255,.45),
    inset -7px 0 12px rgba(120,160,210,.12),
    0 12px 22px rgba(80,40,80,.10);
}

.cuerpo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      transparent 12%,
      rgba(255,255,255,.30) 17%,
      transparent 25%,
      transparent 73%,
      rgba(255,255,255,.35) 82%,
      transparent 91%);
}

.cuerpo::after {
  opacity: .30;
}

.pz {
  background: transparent !important;
  filter: drop-shadow(0 2px 2px rgba(50,30,40,.15));
}

.pz img {
  mix-blend-mode: multiply !important;
  scale: 1.18;
  filter: saturate(1.35) contrast(1.18);
}

.copete {
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.88) 0px,
    rgba(190,215,245,.35) 5px,
    rgba(255,255,255,.78) 10px);
}

.liga {
  background: linear-gradient(180deg,#ff75ad,#ef1671,#b60050);
  box-shadow: 0 3px 7px rgba(180,0,80,.30);
}


/* BOLSA INTELIGENTE DULCIREGIA */
.bolso {
  transform: none !important;
  margin: 14px auto 20px !important;
}

/* DULCIREGIA - CONTORNO DE BOLSA REALISTA */

.cuerpo {
  box-sizing: border-box;
  border: 2px solid rgba(130,165,205,.65) !important;

  border-radius: 43% 43% 15px 15px / 24% 24% 12px 12px;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.85),
    inset 10px 0 18px rgba(255,255,255,.55),
    inset -10px 0 18px rgba(160,190,225,.22),
    0 8px 20px rgba(100,120,160,.16);
}

.copete {
  filter:
    drop-shadow(0 0 2px rgba(100,145,195,.65))
    drop-shadow(0 2px 2px rgba(100,120,160,.20));
}

.bolso {
  filter: drop-shadow(0 12px 12px rgba(90,110,150,.18));
}


/* DULCIREGIA - CONTORNO DORADO PREMIUM */

.cuerpo {
  border: 3px solid #D4AF37 !important;

  box-shadow:
    inset 0 0 0 1px #FFF4C2,
    0 0 0 1px #B8860B,
    0 0 12px rgba(212,175,55,.35),
    0 12px 22px rgba(120,80,20,.15) !important;
}

.copete {
  filter:
    drop-shadow(1px 0 0 #D4AF37)
    drop-shadow(-1px 0 0 #D4AF37)
    drop-shadow(0 -1px 0 #D4AF37)
    drop-shadow(0 1px 0 #D4AF37) !important;
}

