/* Layer · Journey. Estilo de la landing de GoHighLevel: blanco, azul, lima, sin sombras. */
:root {
  --blue: #2448f5; --blue-d: #1739d2; --lime: #d2f842; --lime-d: #c5eb2e;
  --ink: #191a1d; --navy: #17243b; --muted: #69717d; --muted2: #64748b;
  --line: #e3e8ef; --pale: #f5f7fb; --warn: #b4531a; --ok: #1f9d55; --wa: #25d366;
  --serif: "GARMOT", "Cormorant Garamond", Georgia, serif;
  --sans: "Asen Pro", "Manrope", Arial, sans-serif;
  --r: 11px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--navy); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 14px; z-index: 2000; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #84a9ff; outline-offset: 3px; }

/* Header */
#site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(calc(100% - 32px), 1240px); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 50px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .18s, background .18s; }
.hbtn:hover { transform: translateY(-1px); }
.hbtn[hidden] { display: none; }
.hbtn svg { width: 19px; height: 19px; }
.hbtn.lime { background: var(--lime); color: var(--ink); } .hbtn.lime:hover { background: var(--lime-d); }
.hbtn.blue { background: var(--blue); color: #fff; } .hbtn.blue:hover { background: var(--blue-d); }
.hbtn.ghost-h { background: #fff; border: 1.5px solid var(--blue); color: var(--blue); }
.hbtn.ghost-h b { background: var(--blue); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; }

/* Layout */
#app { min-height: 70vh; }
.shell { width: min(calc(100% - 32px), 1240px); margin: 0 auto; padding: 22px 0 56px; }
.eyebrow { margin: 0 0 8px; color: #5265c8; font-size: 17px; }
h1, h2.q { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1.06; outline: none; }
h1 { font-size: clamp(40px, 5vw, 66px); margin: 0 0 12px; }
h2.q { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 8px; }
h1 em, h2.q em, #promo h2 em { color: var(--blue); font-style: italic; font-weight: 600; }
.lead, .q-sub { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 760px; }
.q-sub b { color: var(--navy); }
.legend { font-size: 13px; color: var(--muted2); }
.group { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 800; margin: 28px 0 14px; }
.sec { font-size: 17px; margin: 24px 0 10px; font-weight: 800; }
.sec small { font-weight: 500; color: var(--muted2); }
.hint { color: var(--muted2); font-size: 13px; margin: 8px 0; }
.warn { color: var(--warn); font-size: 13px; min-height: 18px; margin: 4px 0 0; }

/* Hero + strip */
.hero { padding: 24px 0 10px; max-width: 850px; }
.strip { overflow: hidden; border-top: 1px solid #e1e4e8; border-bottom: 1px solid #e1e4e8; margin-top: 14px; }
.strip-track { display: flex; width: max-content; min-height: 56px; align-items: center; animation: scroll 32s linear infinite; }
.strip-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 28px; color: #59616d; white-space: nowrap; font-size: 15px; }
.strip-item svg { width: 22px; height: 22px; color: var(--blue); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Paso 1: círculos */
.circle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 14px; }
.circle { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; text-align: center; }
.cimg { position: relative; width: 100%; max-width: 190px; aspect-ratio: 1; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; transition: border-color .18s, transform .18s; }
.cimg img { width: 74%; height: 66%; object-fit: contain; margin-top: -10%; }
.circle:hover .cimg, .circle:focus-visible .cimg { border-color: var(--blue); transform: translateY(-2px); }
.clabel { position: absolute; left: 7px; right: 7px; bottom: 7px; display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.94); font-weight: 800; font-size: 12.5px; line-height: 1.2; color: var(--navy); text-align: center; }
.csub { font-size: 11px; color: var(--muted2); margin-top: -4px; }
.cbadge { position: absolute; top: 8px; right: 8px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 999px; }

/* Barra superior de pasos */
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.back { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 8px 4px; }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--blue); transition: width .3s; }
.pcount { font-size: 12px; color: var(--muted2); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { background: #eef2ff; color: #2248da; border: 0; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; }

/* Paso 2: tarjetas de producto */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .18s; }
.pcard:hover, .pcard:focus-visible { border-color: #b8c8fa; }
.pimg { height: 170px; display: grid; place-items: center; border-radius: 8px; background: #fff; }
.pimg img { max-height: 150px; max-width: 80%; object-fit: contain; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 2px 0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #eef2ff; color: #2248da; }
.badge.promo { background: var(--lime); color: var(--ink); }
.badge.stock { background: #e8f7ee; color: #17703e; }
.badge.custom { background: #f1f3f7; color: #4a5568; }
.badge.limited { background: linear-gradient(135deg, #f8ecc4 0%, #e6c872 55%, #f3dd9a 100%); color: #5b4108; border: 1px solid #d3b25c; letter-spacing: .02em; }
.pname { font-weight: 800; font-size: 14px; line-height: 1.3; margin: 8px 2px 0; }
.pdesc { color: var(--muted2); font-size: 12px; margin: 4px 2px 6px; }
.more { display: block; margin: 16px auto 0; }

/* Paso 3 */
.tabs { display: flex; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }
.tab { flex: 1 1 220px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 16px; text-align: left; font-weight: 800; }
.tab small { display: block; font-weight: 500; color: var(--muted2); }
.tab.on { border-color: var(--blue); background: #f2f5ff; color: var(--blue); }
.banner { background: var(--pale); border-radius: var(--r); padding: 12px 16px; margin: 0 0 14px; font-size: 14px; }
.banner.lime { background: #f4fdd0; border: 1px solid var(--lime-d); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 14px; background: #fff; }
.check:has(input:checked) { border-color: var(--blue); background: #f2f5ff; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.check.one { margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 8px 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-weight: 500; font-size: 15px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.inp { position: relative; display: block; }
.inp .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted2); font-size: 13px; font-weight: 500; pointer-events: none; }
.inp input { padding-right: 52px; }
.field.notes { margin-top: 18px; }

/* Paso 4 */
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 8px; }
.mcard { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.mcard b { display: block; font-size: 15px; } .mcard small { color: var(--muted2); font-size: 13px; }
.mcard.on { border-color: var(--blue); background: #f2f5ff; }
.color-block { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.color-block h3 { margin: 0 0 8px; font-size: 14px; }
.pres { margin-bottom: 8px; }
.tog { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.tog.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px 4px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 6px; font-size: 12px; font-weight: 700; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.swatch.on { border-color: var(--blue); background: #f2f5ff; }

/* Paso 5 */
.qty-row { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.qlabel { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.presets.wrap { margin: 6px 0 4px; }
.field.inline { max-width: 260px; }

/* Paso 6 */
.tcard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.tcard h3 { margin: 0 0 4px; font-size: 15px; }
.tcard header { display: flex; gap: 12px; align-items: flex-start; }
.tcard .num { background: var(--blue); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.tcard .meta { margin: 0 0 6px; color: var(--muted2); font-size: 13px; }
.tcard footer { display: flex; gap: 8px; margin-top: 10px; }
.lines { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.tcard.summary { background: var(--pale); border-color: var(--pale); }
.tcard.summary p { margin: 4px 0; font-size: 14px; }
.combo { border: 1.5px solid var(--lime-d); background: #fbffe6; border-radius: var(--r); padding: 16px; margin: 12px 0; }
.combo h3 { margin: 6px 0; } .combo p { margin: 0 0 8px; font-size: 14px; }
.mas-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; max-width: 560px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 800; font-size: 15px; transition: background .18s, transform .18s; }
.btn.primary { background: var(--blue); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--blue-d); }
.btn.primary:disabled { background: #b9c4ee; cursor: not-allowed; }
.btn.secondary { background: #fff; border-color: var(--blue); color: var(--blue); } .btn.secondary:hover { background: #f2f5ff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--navy); } .btn.ghost:hover { border-color: var(--blue); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn.danger { color: #b3261e; }
.btn.center { display: flex; margin: 12px auto 0; }
.actions { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); padding: 18px 0 8px; margin-top: 16px; }
.actions .btn { width: 100%; max-width: 420px; }
.advice-link { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.center-t { text-align: center; }
.link { background: none; border: 0; color: var(--blue); text-decoration: underline; padding: 0 4px; }
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #f2f5ff; border-radius: var(--r); padding: 12px 16px; margin: 14px 0 0; }
.resume span { flex: 1 1 200px; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 16px; border: 0; border-radius: 16px; background: var(--wa); color: #06310f; font-weight: 800; font-size: 18px; }
.wa-btn:hover { background: #1fbd5b; }
.sent { background: #e8f7ee; border-radius: var(--r); padding: 14px 16px; margin: 12px 0; font-size: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Pop-up de ofertas (réplica del de la landing de Jesús: foto 3:2 con el 15% encima, franja lima con pausa) */
@font-face { font-family: "Cormorant Light"; font-style: italic; font-weight: 300; src: url("../assets/fonts/cormorant-garamond-light-italic.woff") format("woff"); font-display: swap; }
dialog.promo { --cacao: #401008; --orange: #ff6b18; --cream: #fff3e5; padding: 0; border: 0; border-radius: 8px; background: var(--cream); color: var(--cacao); width: min(820px, calc(100% - 24px)); max-width: 820px; max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; }
dialog.promo::backdrop { background: rgba(33, 9, 5, .6); }
.dlg-x { position: absolute; border: 0; background: none; line-height: 1; cursor: pointer; }
.promo .dlg-x { top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid #40100838; border-radius: 50%; background: var(--cream); color: var(--cacao); font-size: 26px; z-index: 3; }
.promo-alert { margin: 0; padding: 21px 76px 5px 28px; font-size: 11px; font-weight: 500; letter-spacing: .2em; display: flex; gap: 13px; align-items: center; }
.promo-alert span { font-size: 19px; line-height: 1; }
dialog.promo h2 { margin: 0; padding: 0 76px 19px 28px; font: 400 29px/1.15 var(--sans); letter-spacing: -.025em; color: var(--cacao); }
.promo-stage { position: relative; isolation: isolate; }
.promo-photo { margin: 0; }
.promo-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.promo-copy { position: absolute; z-index: 1; right: 3.5%; top: 4%; width: 37%; text-align: center; color: var(--cream); }
.promo-discount { margin: 0; font: italic 300 clamp(70px, 17vw, 170px)/.86 "Cormorant Light", "Cormorant Garamond", Georgia, serif; letter-spacing: -.065em; color: var(--orange); white-space: nowrap; }
.promo-discount span { font-size: .5em; vertical-align: top; line-height: 1.4; margin-left: 3px; letter-spacing: -.04em; }
.promo-desc { margin: 12px 0 0; font: 400 21px/1.2 var(--sans); letter-spacing: .01em; }
.promo-desc small { display: block; margin-top: 6px; font: 400 12px/1.4 var(--sans); color: var(--cream); }
.promo-ticker { position: relative; display: flex; align-items: center; background: var(--lime); color: var(--cacao); min-height: 44px; margin: 0 0 22px; overflow: hidden; }
.promo-viewport { flex: 1; min-width: 0; overflow: hidden; }
.promo-track { display: flex; width: max-content; animation: promo-loop 30s linear infinite; }
.promo-group { display: flex; align-items: center; flex: none; gap: 32px; padding-right: 32px; white-space: nowrap; font: 500 12px/1.4 var(--sans); letter-spacing: .15em; }
.promo-group i { font-style: normal; font-size: 16px; }
.promo-ticker[data-paused="true"] .promo-track { animation-play-state: paused; }
#promo-motion { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 11px; border: 0; border-left: 1px solid #40100833; background: var(--lime); color: var(--cacao); }
#promo-motion svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
#promo-motion .pi-play { display: none; }
#promo-motion[aria-pressed="true"] .pi-pause { display: none; }
#promo-motion[aria-pressed="true"] .pi-play { display: block; }
@keyframes promo-loop { to { transform: translateX(-50%); } }
.promo-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 28px 20px; }
.promo-scope p { margin: 0; font-size: 12px; line-height: 1.45; }
.promo-scope strong { display: block; margin-bottom: 6px; font: 400 17px/1.2 var(--sans); letter-spacing: -.02em; }
.promo-scope span { color: #643c30; }
.promo-actions { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 0 28px; }
.promo-cta { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 13px 19px; border: 1px solid var(--cacao); border-radius: 5px; background: var(--cacao); color: var(--cream); font: 700 14px/1.3 var(--sans); }
.promo-cta:hover { background: #5a1a10; }
.promo-menu { min-height: 48px; border: 0; background: transparent; color: var(--cacao); font: 500 13px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 5px; padding: 12px 0; }
.promo-cond { margin: 0; padding: 14px 28px 22px; font-size: 11px; line-height: 1.45; color: #643c30; }
@media (max-width: 600px) {
  .promo-alert { padding: 18px 64px 4px 18px; font-size: 10px; }
  dialog.promo h2 { padding: 0 64px 14px 18px; font-size: 22px; }
  .promo-copy { right: 3%; top: 3%; width: 40%; }
  .promo-desc { font-size: 13px; margin-top: 6px; }
  .promo-desc small { font-size: 9.5px; margin-top: 3px; }
  .promo-scope { grid-template-columns: 1fr; gap: 12px; padding: 0 18px 16px; }
  .promo-scope strong { font-size: 14px; margin-bottom: 3px; }
  .promo-actions { grid-template-columns: 1fr; gap: 6px; padding: 0 18px; }
  .promo-cond { padding: 10px 18px 18px; }
  .promo-group { font-size: 11px; gap: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .promo-track { animation: none; } #promo-motion { display: none; } }

/* Círculos de color (como en la landing de referencia) */
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.ctile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 11px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); }
.ctile:hover { border-color: #b8c8fa; }
.ctile .cmark { position: absolute; top: 6px; right: 9px; font-size: 16px; line-height: 1; color: var(--blue); font-weight: 800; }
.ctile .cdot { width: 54px; height: 54px; border-radius: 50%; border: 1px solid #cbd2da; box-shadow: inset 0 0 0 4px #ffffff85; }
.ctile .cname { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.25; }
.ctile.on { border-color: var(--blue); background: #f2f5ff; }
.ctile.on .cmark { background: var(--blue); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; top: 5px; right: 6px; }

/* Empaque elegido siempre visible: foto a la izquierda del nombre; fija bajo el encabezado en escritorio */
.selcard { position: sticky; top: 72px; z-index: 50; display: flex; flex-direction: row; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin: 10px 0 4px; }
.selcard img { width: 64px; height: 64px; max-width: 64px; max-height: 64px; object-fit: contain; flex: none; display: block; }
.selinfo { flex: 1; min-width: 0; }
.seleyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); }
.selcard h3 { margin: 2px 0; font-size: 15px; line-height: 1.25; }
.selmeta { margin: 0; font-size: 12px; color: var(--muted2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.selcard .link { flex: none; align-self: center; white-space: nowrap; }

@media (max-width: 650px) {
  .selcard { position: static; padding: 8px 10px; } .selcard img { width: 48px; height: 48px; } .ctiles { grid-template-columns: repeat(3, 1fr); } .ctile .cdot { width: 44px; height: 44px; }
  .header-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 12px; }
  .logo img { height: 60px; }
  .header-actions { display: grid; grid-template-columns: .8fr 1.2fr; }
  .hbtn { justify-content: center; min-height: 48px; padding: 0 12px; }
  .hbtn.ghost-h { grid-column: 1 / -1; order: 3; }
  .circle-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
  .clabel { font-size: 10.5px; min-height: 28px; padding: 2px 5px; } .csub { display: none; } .cbadge { font-size: 10px; right: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pimg { height: 120px; } .pimg img { max-height: 104px; }
  .pname { font-size: 12.5px; }
  .check-grid { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 24px); }
}


/* ───────── Animaciones y fluidez ───────── */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes step-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.14); } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(32px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes bd-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bd-out { to { opacity: 0; } }
@keyframes photo-in { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes num-in { from { opacity: 0; transform: scale(.78) translateY(10px); } to { opacity: 1; transform: none; } }

/* Entrada de cada paso: el bloque sube suave y sus tarjetas entran en cascada */
.shell.enter { animation: step-in .5s var(--ease) both; }
.shell.enter .circle, .shell.enter .pcard, .shell.enter .tcard, .shell.enter .mcard, .shell.enter .color-block,
.shell.enter .qty-row, .shell.enter .check, .shell.enter .tab, .shell.enter .field {
  animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 38ms + 70ms);
}
.shell.enter .hero { animation: rise .7s var(--ease) both; }
.progress span { transition: width .6s var(--ease); }

/* Microinteracciones */
.btn, .hbtn, .mcard, .tab, .tog, .ctile, .check, .chip, .wa-btn, .pcard, .circle .cimg, .circle .cimg img, .swatch, .back, .advice-link {
  transition: transform .22s var(--ease), border-color .2s, background-color .2s, color .2s;
}
.pcard:hover, .pcard:focus-visible { transform: translateY(-3px); }
.mcard:hover, .ctile:hover, .check:hover { transform: translateY(-2px); }
.circle:hover .cimg img, .circle:focus-visible .cimg img { transform: scale(1.07); }
.btn:active, .hbtn:active, .tog:active, .mcard:active, .ctile:active, .pcard:active, .circle:active .cimg, .wa-btn:active { transform: scale(.97); }
.wa-btn:hover { transform: translateY(-2px); }
.hbtn.bump { animation: bump .45s var(--ease); }
.badge.promo { animation: pop .5s var(--ease) .25s backwards; }
.sent, .combo, .banner { animation: rise .5s var(--ease) both; }

/* Animación suave y escalonada para tarjetas reveladas con "Ver más opciones" */
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pcard.card-enter {
  animation: card-fade-in .38s var(--ease) both;
  animation-delay: calc(var(--card-i, 0) * 45ms);
}


/* Pop-up de ofertas: entra con escala + fundido, el contenido llega escalonado; sale con animación */
dialog.promo[open] { animation: dlg-in .55s var(--ease) both; }
dialog.promo[open]::backdrop { animation: bd-in .45s ease both; }
dialog.promo.closing { animation: dlg-out .3s ease-in both; }
dialog.promo.closing::backdrop { animation: bd-out .3s ease-in both; }
.promo-photo { overflow: hidden; }
dialog.promo[open] .promo-photo img { animation: photo-in 1.4s var(--ease) both; }
dialog.promo[open] .promo-discount { animation: num-in .9s var(--ease) .3s both; }
dialog.promo[open] .promo-desc { animation: rise .7s var(--ease) .5s both; }
dialog.promo[open] .promo-alert, dialog.promo[open] h2 { animation: rise .6s var(--ease) .12s both; }
dialog.promo[open] .promo-ticker { animation: rise .6s var(--ease) .3s both; }
dialog.promo[open] .promo-scope { animation: rise .6s var(--ease) .45s both; }
dialog.promo[open] .promo-actions { animation: rise .6s var(--ease) .55s both; }
dialog.promo[open] .promo-cond { animation: rise .6s var(--ease) .65s both; }
.promo-cta span { display: inline-block; transition: transform .25s var(--ease); }
.promo-cta:hover span { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .strip-track, .promo-track { animation: none !important; }
}

.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin-top: 18px; }
.yesno .btn { min-height: 56px; }
@media (max-width: 650px) { .yesno { grid-template-columns: 1fr; } }

/* ───────── Barra de progreso de 4 hitos (estilo Amazon) ───────── */
.stepper { position: relative; margin: 6px 34px 34px; }
.st-track { height: 4px; border-radius: 99px; background: var(--line); }
.st-fill { display: block; height: 100%; border-radius: 99px; background: var(--blue); transition: width .6s var(--ease); }
.stepper ol { list-style: none; margin: 0; padding: 0; }
.stepper li { position: absolute; top: -10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stepper li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: #fff; border: 2px solid var(--line); color: var(--muted2); transition: background-color .3s, border-color .3s, color .3s; }
.stepper li span { font-size: 12px; font-weight: 700; color: var(--muted2); white-space: nowrap; }
.stepper li.done i { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper li.on i { border-color: var(--blue); color: var(--blue); }
.stepper li.done span, .stepper li.on span { color: var(--navy); }
.topbar { margin-bottom: 2px; }
@media (max-width: 650px) { .stepper { margin: 6px 30px 32px; } .stepper li span { font-size: 11px; } }

/* ───────── Edición limitada: franja destacada arriba del listado ───────── */
.limited-strip { border: 1px solid #d5bc82; background: linear-gradient(180deg, #fbf6ea, #fff); border-radius: var(--r); padding: 14px; margin: 4px 0 6px; }
.ls-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ls-head p { margin: 0; font-size: 13px; color: var(--muted2); }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.std-title { margin: 22px 0 10px; }
.selsizes { margin: 0 0 2px; font-size: 13px; line-height: 1.35; color: var(--navy); }
.combo-choice { margin: 0 0 14px; }

/* ───────── Modo Buen Fin ───────── */
.bf-bar { background: #b3122f; color: #fff; text-align: center; font-size: 14px; padding: 9px 14px; letter-spacing: .02em; }
.bf-bar[hidden] { display: none; }
body.buenfin { --lime: #ffd23f; --lime-d: #f2bf17; }
body.buenfin .hbtn.lime { background: #ffd23f; }
body.buenfin .badge.promo, body.buenfin .cbadge { background: #ffd23f; color: #3a0d12; }
body.buenfin .promo-ticker, body.buenfin #promo-motion { background: #ffd23f; }

.stepper + .chips, .stepper ~ .chips { margin-top: 16px; }

/* Edición limitada: la tarjeta es igual a las del catálogo; solo cambia la imagen (recorte de las 3 bolsas) y la etiqueta */
.limcrop { display: block; background: url("../assets/limited-edition-reference.png") no-repeat #fff; border-radius: 12px; }
.pimg .limcrop { width: 92%; }
.selcard .limcrop { flex: none; width: 128px; border: 1px solid var(--line); }
@media (max-width: 650px) { .selcard .limcrop { width: 104px; } }
.stepper { margin-bottom: 46px; }
@media (max-width: 650px) { .stepper { margin-bottom: 46px; } }

.lim-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; color: var(--muted2); }

/* Caja del combo: producto con foto y medidas en una sola fila */
.box-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.box-head img { width: 84px; height: 84px; object-fit: contain; flex: none; border-radius: 10px; background: #fff; }
.box-head h3 { margin: 4px 0 2px; }
.box-head p { margin: 0; font-size: 13px; }
.box-sub { margin: 10px 0 4px; font-size: 14px; }
.dims-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
.dims-row .inp input { padding-right: 38px; }
@media (max-width: 650px) { .box-head img { width: 64px; height: 64px; } .dims-row { gap: 6px; } .dims-row .inp .unit { right: 8px; font-size: 12px; } .dims-row .inp input { padding-right: 28px; padding-left: 8px; } }

/* Cambio de foto en la tarjeta de selección (bolsa ↔ combo): pop con rebote + destello del borde */
@keyframes img-pop { 0% { transform: scale(.55) rotate(-8deg); opacity: 0; } 55% { transform: scale(1.18) rotate(3deg); opacity: 1; } 78% { transform: scale(.96) rotate(-1deg); } 100% { transform: none; opacity: 1; } }
@keyframes card-flash { 0% { border-color: var(--lime-d); background: #fbffe6; } 100% { border-color: var(--line); background: #fff; } }
.selcard.swap { animation: card-flash .9s ease-out; }
.selcard.swap img { animation: img-pop .65s cubic-bezier(.34, 1.56, .64, 1); }

/* La caja sola: recorte de la foto del combo (la caja ocupa la esquina inferior derecha) */
.boxcrop { flex: none; display: block; width: 132px; aspect-ratio: 860 / 640; border-radius: 10px; background: url("../assets/combo-secos-v40.webp") no-repeat #fff; background-size: 145.8% auto; background-position: 99% 98.4%; }
.box-head h3 { font-size: 17px; line-height: 1.25; margin: 2px 0 4px; }
@media (max-width: 650px) { .boxcrop { width: 96px; } }

/* Campo con ayuda (i): texto corto que se abre al tocar */
.field .flabel { display: flex; align-items: center; gap: 8px; }
.field .flabel label { font-size: 13px; font-weight: 700; }
.info-btn { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: 800 12px/1 var(--serif); font-style: italic; display: inline-grid; place-items: center; padding: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--blue); color: #fff; }
.info-pop { margin: 2px 0 0; padding: 9px 12px; border-radius: 8px; background: #f2f5ff; color: var(--navy); font-size: 13px; font-weight: 500; line-height: 1.4; animation: rise .3s var(--ease); }
.info-pop[hidden] { display: none; }

/* ───────── Aviso de datos guardados (arriba de 'Tu resumen de cotización') ───────── */
.saved-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0 14px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.08);
  animation: rise .45s var(--ease) both;
}
.saved-notice .sn-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  color: #16a34a;
}
.saved-notice .sn-icon svg {
  width: 100%;
  height: 100%;
}
.saved-notice b {
  font-weight: 800;
  color: #14532d;
  margin-right: 4px;
}
@media (max-width: 600px) {
  .saved-notice {
    display: flex;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.35;
  }
}

/* ───────── Fila de datos de entrega y botón Cambiar mis datos ───────── */
.contact-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.contact-summary-row .cs-data {
  margin: 0;
  font-size: 14px;
  color: var(--navy);
  flex: 1;
  min-width: 220px;
  line-height: 1.45;
}
.change-data-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  min-height: 38px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  transition: background-color .18s, transform .18s;
}
.change-data-btn:hover {
  background: #f2f5ff;
  transform: translateY(-1px);
}

/* ───────── Miniaturas de color e imagen activa de Limited Edition ───────── */
.ctile .cimg-thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px;
  transition: transform .2s var(--ease), border-color .2s;
}
.ctile:hover .cimg-thumb {
  transform: scale(1.08);
  border-color: var(--blue);
}
.ctile.has-thumb {
  padding-top: 12px;
}
.selcard .lim-active-img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
  animation: img-pop .55s cubic-bezier(.34, 1.56, .64, 1);
}
@media (max-width: 650px) {
  .selcard .lim-active-img {
    width: 104px;
    height: 104px;
  }
}
.selcolor {
  color: var(--blue);
  font-weight: 700;
}
