/* =========================================================
   Mil cositas de Leah · Tienda online (vista cliente)
   Misma identidad que el login y el panel: morados, rosados,
   fotografía real, profundidad suave y movimiento discreto.
   ========================================================= */

body.store {
  --deep: #45175C;
  --violet: #76259A;
  --mid: #9C42B9;
  --pink: #EF79B5;
  --pink-soft: #F8C6E4;
  --lav: #EDE1F7;
  --warm: #FFFBFE;

  --bg: #FBF7FD;
  --surface: #FFFFFF;
  --border: #EEE4F5;
  --border-strong: #DCC3EF;
  --input-border: #B7A3C6;
  --ink: #2E1238;
  --muted: #6B5A75;
  --primary: #76259A;
  --primary-hover: #5F1C7D;
  --accent: #9C42B9;
  --danger: #A8174C;
  --disabled: #CDBBD8;
  --lavender: #EEE5F8;
  --lavender-ink: #5B3F8A;

  --script: "Pacifico", "Brush Script MT", cursive;
  --r-card: 28px;
  --sh-1: 0 1px 2px rgba(69, 23, 92, .04), 0 10px 30px rgba(69, 23, 92, .07);
  --sh-2: 0 4px 10px rgba(69, 23, 92, .06), 0 26px 60px rgba(69, 23, 92, .16);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  background: var(--bg);
  color: var(--ink);
}
.store :focus-visible { outline: 3px solid rgba(156, 66, 185, .45); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Botones de la tienda */
.btn-s {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: translate .2s ease, box-shadow .25s ease, background-color .2s ease;
}
.btn-s-primary { background: linear-gradient(90deg, #8a2fb3, var(--violet) 55%, #5a1b7c); color: #fff; box-shadow: 0 12px 26px rgba(118, 37, 154, .35); }
.btn-s-primary:hover { translate: 0 -2px; box-shadow: 0 16px 32px rgba(118, 37, 154, .42); }
.btn-s-ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-s-ghost:hover { background: rgba(255, 255, 255, .26); translate: 0 -2px; }
.store .btn-primary { background: linear-gradient(90deg, #8a2fb3, var(--violet) 55%, #5a1b7c); box-shadow: 0 10px 22px rgba(118, 37, 154, .3); }
.store .btn-primary:hover:not(:disabled) { background: linear-gradient(90deg, #9636bf, #7f29a5 55%, #63208a); transform: translateY(-1px); }
.store .btn-primary:disabled { background: var(--disabled); box-shadow: none; }
.store .btn-lg { border-radius: 999px; }
.store .btn-secondary { border-radius: 999px; }
.store .seg button { border-radius: 14px; }
.store .seg button[aria-pressed="true"] { border-color: var(--violet); background: #F6EDFB; }
.store .input { border-radius: 14px; }
.store .input:focus { outline: none; border-color: var(--mid); box-shadow: 0 0 0 4px rgba(156, 66, 185, .14); }
.store .notice { background: #F1E8FA; color: #4E2B73; border-radius: 14px; }

/* ---------- Encabezado ---------- */

.sh {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 251, 254, .85);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid rgba(220, 195, 239, .55);
}
.sh-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.sh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.sh-brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 6px 14px rgba(118, 37, 154, .25); }
.brand-text { font-family: var(--script); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--deep); }
.brand-text b { font-weight: 400; color: var(--mid); }
.sh-nav { display: flex; gap: 4px; margin-left: auto; }
.sh-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.sh-nav a:hover { background: #F3EAF9; color: var(--violet); }
.sh-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: linear-gradient(90deg, #8a2fb3, var(--violet)); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 8px 18px rgba(118, 37, 154, .3); transition: translate .2s, box-shadow .2s; }
.sh-cta:hover { translate: 0 -1px; box-shadow: 0 12px 24px rgba(118, 37, 154, .38); }

/* ---------- Banner ---------- */

.hero-s {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 460px; display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(120deg, #3d1452, var(--violet) 60%, #8f3cae);
}
.hero-s-bg { position: absolute; inset: 0; z-index: -2; }
.hero-s-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; animation: hs-zoom 40s ease-in-out infinite alternate; }
@keyframes hs-zoom { from { scale: 1.02; } to { scale: 1.1; } }
.hero-s::before { /* tinte para leer el texto sobre la foto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(52, 14, 72, .88) 0%, rgba(69, 23, 92, .66) 42%, rgba(69, 23, 92, .12) 75%),
    radial-gradient(50% 80% at 85% 20%, rgba(239, 121, 181, .25), transparent 70%);
}
.hero-s::after { /* reflejo que cruza lento */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .10) 50%, transparent 60%);
  translate: -100% 0; animation: hs-sheen 10s ease-in-out 2s infinite;
}
@keyframes hs-sheen { 0%, 70% { translate: -100% 0; } 100% { translate: 100% 0; } }
.hero-s-in { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero-s-in > * { max-width: 560px; animation: s-rise .7s var(--ease-out) both; }
.hero-s-in > :nth-child(2) { animation-delay: .08s; }
.hero-s-in > :nth-child(3) { animation-delay: .16s; }
.hero-s-in > :nth-child(4) { animation-delay: .24s; }
.hero-s-in > :nth-child(5) { animation-delay: .32s; }
.hero-s-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-s-kicker .icon { width: 16px; height: 16px; color: #ffd6ec; }
.hero-s-title { margin: 18px 0 10px; font-family: var(--script); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1.15; text-shadow: 0 6px 30px rgba(30, 5, 45, .45); }
.hero-s-title .heart { display: inline-block; width: .5em; height: .5em; vertical-align: .55em; margin-left: .08em; color: var(--pink); animation: s-beat 2.4s ease-in-out 1.2s infinite; }
@keyframes s-beat { 0%, 60%, 100% { scale: 1; } 20% { scale: 1.2; } 40% { scale: .95; } }
.hero-s-lead { margin: 0 0 26px; font-size: clamp(16px, 1.6vw, 19px); opacity: .92; }
.hero-s-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-s-pills { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: none !important; }
.hero-s-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-s-pills .icon { width: 17px; height: 17px; }

/* ---------- Producto ---------- */

.store-alert { margin-top: 24px; }
.section-kicker { display: inline-block; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }

.product { display: grid; gap: 24px; padding: 48px 0 8px; scroll-margin-top: 80px; }
@media (min-width: 880px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .gallery { position: sticky; top: 96px; }
}

.gallery-main {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  aspect-ratio: 1 / 1; overflow: hidden; box-shadow: var(--sh-2);
}
.gallery-main::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .18), transparent 40%); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; animation: s-fade .45s var(--ease-out) both; }
@keyframes s-fade { from { opacity: 0; scale: 1.03; } to { opacity: 1; scale: 1; } }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.thumbs:empty { display: none; }
.thumb { padding: 0; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; background: var(--surface); border: 2px solid var(--border); border-radius: 18px; transition: border-color .2s, translate .2s, box-shadow .2s; }
.thumb:hover { translate: 0 -2px; box-shadow: var(--sh-1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--violet); box-shadow: 0 8px 18px rgba(118, 37, 154, .22); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges:empty { display: none; }
.badges .tag { font-size: 13px; padding: 5px 12px; }
.store .tag-lavender { background: #F1E5F8; color: #5B2A7A; }
.store .tag-mint { background: #E2F3EC; color: #2F6B52; }
.store .tag-danger { background: #FDE4EE; color: #A8174C; }

.info h2#pName {
  margin: 14px 0 8px; font-family: var(--font-body); font-weight: 900;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink);
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 18px; }
.price span { font-weight: 900; font-size: clamp(36px, 3.6vw, 46px); line-height: 1.1; background: linear-gradient(90deg, var(--violet), var(--mid) 60%, #c0509a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price s { font-size: 20px; font-weight: 700; color: var(--muted); }
.price small { font-size: 15px; color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; font-size: 16px; }
.features .icon { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #F1E5F8; color: var(--violet); margin-top: 1px; }
.description { color: var(--muted); font-size: 15px; margin-top: 12px; }

.buy-card {
  position: relative; margin-top: 24px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-2);
  animation: s-rise .6s var(--ease-out) .1s both;
}
.buy-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--pink), var(--mid)); }
.buy-card:focus { outline: none; }
.buy-card:focus-visible { outline: 3px solid rgba(156, 66, 185, .45); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.qty-row .field-label { margin: 0; font-size: 16px; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; background: #F5EEFA; }
.stepper button { width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface); border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(69, 23, 92, .12); transition: scale .15s, background-color .15s; }
.stepper button:hover:not(:disabled) { background: #fff; scale: 1.06; }
.stepper button:active:not(:disabled) { scale: .94; }
.stepper button:disabled { color: var(--disabled); cursor: not-allowed; box-shadow: none; background: transparent; }
.stepper output { min-width: 34px; text-align: center; font-size: 20px; font-weight: 900; }
.stock-hint { font-size: 13px; color: #7A4B00; font-weight: 700; margin-top: 10px; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.total-row span { color: var(--muted); font-weight: 600; }
.total-row strong { font-weight: 900; font-size: 28px; }
.buy-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.form-head h2 { font-size: 20px; font-weight: 900; }
.form-head span { font-size: 14px; color: var(--muted); font-weight: 700; }
.done { text-align: center; padding: 8px 4px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, #a24bc6, var(--violet)); color: #fff; box-shadow: 0 12px 26px rgba(118, 37, 154, .35); animation: s-pop .6s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes s-pop { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
.done h2 { font-size: 21px; font-weight: 900; margin-bottom: 8px; }
.done p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.done-actions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.soldout { text-align: center; padding: 6px 0 2px; }
.soldout p { color: var(--muted); font-size: 15px; margin: 8px 0 16px; }

/* Más productos */
.more { padding: 48px 0 0; }
.more h2 { font-weight: 900; font-size: 28px; margin-bottom: 16px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.more-card { display: block; width: 100%; text-align: left; padding: 0; overflow: hidden; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--sh-1); transition: translate .25s, box-shadow .25s; }
.more-card:hover { translate: 0 -4px; box-shadow: var(--sh-2); }
.more-card[aria-current="true"] { border: 2px solid var(--violet); }
.more-card img, .more-card .ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #F3ECF8; }
.more-card .ph { display: grid; place-items: center; color: var(--violet); }
.more-card div { padding: 12px 14px 14px; }
.more-card strong { display: block; font-size: 15px; line-height: 1.3; }
.more-card span { font-size: 15px; color: var(--violet); font-weight: 900; }

/* ---------- Visor 3D de los vasos ---------- */

.v3d-sec { padding: 72px 0 8px; scroll-margin-top: 80px; }
.v3d-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .v3d-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; } }
.v3d-stage {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 4 / 5;
  border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--sh-2); touch-action: none; user-select: none; -webkit-user-select: none;
}
.v3d-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.v3d-stage canvas:active { cursor: grabbing; }
.v3d-loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  color: #4E2B73; font-weight: 800; font-size: 14.5px; text-align: center; padding: 24px; background: rgba(255, 255, 255, .7);
}
.v3d-loading[hidden] { display: none; }
.v3d-loading p { margin: 0; max-width: 32ch; }
.v3d-spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(118, 37, 154, .2); border-top-color: var(--violet); animation: v3d-spin .8s linear infinite; }
.v3d-loading.is-error .v3d-spinner { display: none; }
@keyframes v3d-spin { to { transform: rotate(360deg); } }
.v3d-tools { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(46, 14, 64, .12); }
.v3d-tools button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--deep); cursor: pointer; transition: background-color .2s; }
.v3d-tools button:hover { background: #F1E4F8; }
.v3d-tools button:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; }
.v3d-tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v3d-tools .i-play { display: none; fill: currentColor; }
.v3d-tools .is-paused .i-play { display: block; }
.v3d-tools .is-paused .i-pause { display: none; }
.v3d-hint { position: absolute; left: 14px; top: 12px; margin: 0; padding: 6px 12px; border-radius: 999px; background: #F4ECFA; color: #4E2B73; font-size: 12.5px; font-weight: 700; pointer-events: none; }
.v3d-panel h2 { margin: 0 0 10px; font-weight: 900; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.01em; line-height: 1.1; }
.v3d-lead { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.v3d-variants { display: grid; gap: 10px; margin-bottom: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v3d-var {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; min-height: 64px; min-width: 0;
  border-radius: 18px; border: 1.5px solid var(--border-strong); background: var(--surface);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, translate .2s, box-shadow .2s;
}
.v3d-var:hover { translate: 0 -2px; box-shadow: var(--sh-1); }
.v3d-swatch { width: 44px; height: 48px; flex: none; border-radius: 12px; background: #fff center / 260% auto no-repeat; border: 1px solid var(--border); }
.v3d-var b { display: block; font-size: 14.5px; line-height: 1.25; }
.v3d-var small { color: var(--muted); font-size: 12.5px; }
.v3d-var[aria-pressed="true"] { border: 2px solid var(--violet); background: #F7EEFB; box-shadow: 0 8px 18px rgba(118, 37, 154, .16); }
.v3d-current { min-height: 64px; }
.v3d-current h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; color: var(--deep); }
.v3d-current p { margin: 0; color: var(--muted); }
.v3d-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 22px; padding: 12px 14px; border-radius: 16px; background: #F4ECFA; color: #4E2B73; font-size: 13.5px; }
.v3d-note .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
@media (max-width: 420px) {
  .v3d-hint { font-size: 11.5px; }
  .v3d-var small { display: none; }
  .v3d-tools { right: 8px; bottom: 8px; padding: 3px; }
  .v3d-tools button { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .v3d-spinner { animation-duration: 2s; } }

/* ---------- Cómo comprar ---------- */

.how { padding: 72px 0 8px; scroll-margin-top: 80px; text-align: center; }
.how h2 { margin: 0 0 8px; font-weight: 900; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.01em; }
.how > p { margin: 0 auto 32px; max-width: 52ch; color: var(--muted); font-size: 16px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; text-align: left; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-steps li {
  position: relative; padding: 26px 22px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1);
  transition: translate .25s, box-shadow .25s;
}
.how-steps li:hover { translate: 0 -4px; box-shadow: var(--sh-2); }
.how-num { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, #a24bc6, var(--violet)); box-shadow: 0 10px 20px rgba(118, 37, 154, .3), inset 0 1px 0 rgba(255, 255, 255, .4); }
.how-steps li:nth-child(2) .how-num { background: linear-gradient(135deg, #f592c4, #c94f8e); box-shadow: 0 10px 20px rgba(239, 121, 181, .32), inset 0 1px 0 rgba(255, 255, 255, .4); }
.how-steps li:nth-child(3) .how-num { background: linear-gradient(135deg, #7d3a9e, var(--deep)); }
.how-steps h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.how-steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Recuadros informativos */
.perks { display: grid; gap: 14px; margin: 28px 0 72px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.perk { display: flex; gap: 14px; padding: 18px 20px; border-radius: 22px; border: 1px solid transparent; }
.perk .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 14px; background: rgba(255, 255, 255, .75); color: var(--violet); }
.perk h3 { margin: 0 0 2px; font-size: 16px; font-weight: 800; }
.perk p { margin: 0; font-size: 14px; color: var(--muted); }
.perk-pink { background: #FCE8F2; border-color: #F8D4E6; }
.perk-lavender { background: #F1E8FA; border-color: #E5D6F3; }
.perk-mint { background: #E7F5EF; border-color: #D3EBE0; }

/* ---------- Pie de página ---------- */

.sf {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .86);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(239, 121, 181, .22), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(156, 66, 185, .4), transparent 60%),
    linear-gradient(180deg, #4f1a6b, var(--deep) 55%, #2c0d3d);
  scroll-margin-top: 80px;
}
.sf-top { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 760px) { .sf-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.sf-brand { display: flex; flex-direction: column; gap: 10px; }
.sf-brand-row { display: flex; align-items: center; gap: 12px; }
.sf-brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.sf .brand-text { color: #fff; font-size: 24px; }
.sf .brand-text b { color: #ffc6e3; }
.sf-note { margin: 0; font-size: 15px; max-width: 34ch; }
.sf h2 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffc6e3; }
.footer-links, .sf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a, .footer-links span, .sf-list a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px;
  color: rgba(255, 255, 255, .88); font-weight: 700; font-size: 15px; text-decoration: none; overflow-wrap: anywhere;
  transition: color .2s;
}
.footer-links a:hover, .sf-list a:hover { color: #fff; text-decoration: underline; }
.footer-links .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.sf-legal { border-top: 1px solid rgba(255, 255, 255, .12); }
.sf-legal-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-top: 18px; padding-bottom: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.sf-legal-in p { margin: 0; }
.sf-legal a { color: rgba(255, 255, 255, .9); font-weight: 700; text-decoration: none; }
.sf-legal a:hover { color: #fff; text-decoration: underline; }
.sf-credit { letter-spacing: .04em; }
.sf-credit b { color: #ffc6e3; font-weight: 800; letter-spacing: .08em; }

/* =========================================================
   Inicio de la tienda y catálogo general (Etapa 1)
   ========================================================= */

/* Encabezado: menú, categorías, buscador y carrito */
.sh-menu-btn, .sh-cart {
  position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--deep); cursor: pointer;
  transition: translate .2s, box-shadow .2s, background-color .2s;
}
.sh-menu-btn { display: none; }
.sh-cart:hover, .sh-menu-btn:hover { translate: 0 -1px; box-shadow: 0 8px 18px rgba(118, 37, 154, .18); }
.sh-cart { background: linear-gradient(135deg, #8a2fb3, var(--violet)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(118, 37, 154, .3); }
.sh-cart .icon { width: 21px; height: 21px; }
.sh-cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 900; border: 2px solid #fff;
}
.sh-cart-count[hidden] { display: none; }
.sh-cart.is-bump { animation: cart-bump .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes cart-bump { 0% { scale: 1; } 35% { scale: 1.18; } 100% { scale: 1; } }
.cart-fly { position: fixed; z-index: 90; width: 18px; height: 18px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 35%, #ffd1ea, var(--pink) 55%, var(--violet)); box-shadow: 0 6px 16px rgba(118, 37, 154, .45); }

.sh-nav { align-items: center; }
.sh-nav a[aria-current="page"] { color: var(--violet); background: #F3EAF9; }
.sh-cats { position: relative; }
.sh-cats > button {
  min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s;
}
.sh-cats > button:hover, .sh-cats > button[aria-expanded="true"] { background: #F3EAF9; color: var(--violet); }
.sh-cats > button .icon { width: 16px; height: 16px; transition: rotate .2s; }
.sh-cats > button[aria-expanded="true"] .icon { rotate: 180deg; }
.sh-cats-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 220px; max-height: 60vh; overflow: auto; padding: 8px;
  display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh-2);
  animation: s-rise .25s var(--ease-out) both;
}
.sh-cats-menu[hidden] { display: none; }
.sh-cats-menu a { min-height: 42px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.sh-cats-menu a:hover { background: #F6EEFB; color: var(--violet); }
.sh-cats-empty { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.sh-search { display: flex; align-items: center; margin-left: 6px; height: 44px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.sh-search:focus-within { border-color: var(--mid); box-shadow: 0 0 0 4px rgba(156, 66, 185, .14); }
.sh-search input { width: 180px; min-width: 0; height: 100%; padding: 0 4px 0 16px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.sh-search button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: var(--violet); cursor: pointer; }
.sh-search .icon { width: 18px; height: 18px; }

.hero-s-pre { display: block; font-family: var(--font-body, inherit); font-weight: 800; font-size: clamp(18px, 2vw, 24px); letter-spacing: .02em; opacity: .9; text-shadow: none; }

/* Secciones del inicio */
.home-sec { padding: 64px 0 8px; scroll-margin-top: 84px; }
.home-head { margin-bottom: 24px; }
.home-head h2 { margin: 0; font-weight: 900; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.01em; line-height: 1.1; }

/* Tarjetas de categoría */
.cc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cc {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none;
  transition: translate .3s var(--ease-out), box-shadow .3s, opacity .7s var(--ease-out);
}
.cc:hover { translate: 0 -5px; box-shadow: var(--sh-2); }
.cc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #F4EAFB, #FCE8F2); }
.cc-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.cc:hover .cc-media img { scale: 1.06; }
.cc-body { display: grid; gap: 4px; padding: 14px 18px 18px; }
.cc-body strong { font-size: 18px; font-weight: 900; }
.cc-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--violet); font-weight: 800; font-size: 14px; }
.cc-count .icon { width: 14px; height: 14px; transition: translate .2s; }
.cc:hover .cc-count .icon { translate: 4px 0; }

/* Tarjetas de producto */
.pc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); transition: opacity .16s ease, translate .16s ease; }
.pc-grid.is-swapping { opacity: 0; translate: 0 6px; }
.pc {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--sh-1);
  animation: s-rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms);
  transition: translate .3s var(--ease-out), box-shadow .3s;
}
.pc:hover { translate: 0 -5px; box-shadow: var(--sh-2); }
.pc-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #F7F1FB; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, scale .6s var(--ease-out); }
.pc-media .pc-alt { opacity: 0; }
.pc:hover .pc-media img { scale: 1.05; }
.pc:hover .pc-media .pc-alt { opacity: 1; }
.pc-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mid); background: linear-gradient(135deg, #F4EAFB, #FCE8F2); }
.pc-tags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags .tag { box-shadow: 0 4px 10px rgba(69, 23, 92, .12); }
.pc-tags .icon { width: 12px; height: 12px; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pc-cat { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); }
.pc-name { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.25; }
.pc-name a { color: var(--ink); text-decoration: none; }
.pc-name a:hover { color: var(--violet); }
.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pc-price strong { font-size: 21px; font-weight: 900; color: var(--violet); }
.pc-price s { font-size: 14px; color: var(--muted); font-weight: 700; }
.pc-stock .tag { font-size: 12px; }
.store .tag-peach { background: #FFF0DD; color: #8A4B00; }
.pc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.pc-actions .btn { flex: 1; min-height: 42px; border-radius: 999px; font-size: 14px; padding: 0 12px; }
.pc-actions .btn .icon { width: 16px; height: 16px; }

/* Catálogo: filtros + grilla */
.cat-layout { display: grid; gap: 22px; }
@media (min-width: 980px) { .cat-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .cat-side { position: sticky; top: 92px; } }
.filters-toggle { display: none; width: 100%; }
.filters-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 900; }
.filters-count[hidden] { display: none; }
.filters { display: grid; gap: 14px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.filters .field { margin: 0; }
.filters label, .filters legend { font-weight: 800; font-size: 14px; }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend { margin-bottom: 6px; padding: 0; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; color: var(--muted); }
.f-search { position: relative; }
.f-search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.f-search .input { padding-left: 40px; }
.filters select.input { appearance: auto; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 10px; }
.cat-bar p { margin: 0; color: var(--muted); font-weight: 700; }
.store .btn[hidden], .store .pc-grid[hidden] { display: none; }
.cat-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; border-radius: 24px; background: var(--surface); border: 1px dashed var(--border-strong); color: var(--muted); }
.cat-empty .icon { color: var(--mid); }
.cat-empty h3 { margin: 4px 0 0; color: var(--ink); font-size: 20px; font-weight: 900; }
.cat-empty p { margin: 0 0 8px; max-width: 42ch; }

/* Detalle */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--violet); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.info h1#pName { margin: 6px 0 8px; font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
.p-cat { margin: 12px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.p-cat a { color: var(--mid); text-decoration: none; }
.gallery-main .pc-ph .icon { width: 48px; height: 48px; }
.var-field { margin-bottom: 16px; }
.var-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.var-chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.var-chip:hover { border-color: var(--mid); }
.var-chip[aria-checked="true"] { border: 2px solid var(--violet); background: #F6EDFB; color: var(--violet); }
/* Presentación: kit o unidad individual */
.pres-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pres-chip { border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.pres-chip b { font-size: 14px; }
.pres-chip small { font-size: 13px; font-weight: 800; color: var(--muted); }
.pres-chip[aria-checked="true"] small { color: var(--violet); }
.pres-chip[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pc-alt-price { flex-basis: 100%; font-size: 13px; font-weight: 700; color: var(--muted); }
.in-cart, .add-msg { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--violet); }
.add-msg { color: #2F6B52; animation: s-rise .3s var(--ease-out) both; }
.buy-card .btn .icon { width: 18px; height: 18px; }

/* Panel del carrito */
html.cart-open { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0; z-index: 80; }
.cart-drawer[hidden] { display: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(46, 18, 56, .45); opacity: 0; transition: opacity .28s ease; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--warm); box-shadow: -20px 0 60px rgba(46, 18, 56, .25); translate: 100% 0; transition: translate .32s var(--ease-out); outline: none;
}
.cart-drawer.is-open .cart-backdrop { opacity: 1; }
.cart-drawer.is-open .cart-panel { translate: 0 0; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-head h2 { margin: 0; font-size: 21px; font-weight: 900; }
.cart-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #F3EAF9; color: var(--deep); cursor: pointer; }
.cart-body { flex: 1; overflow: auto; padding: 16px 20px 24px; }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 10px; text-align: center; color: var(--muted); }
.cart-empty .icon { color: var(--mid); }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); animation: s-rise .3s var(--ease-out) both; }
.cart-line.has-problem { border-color: #F2B8CD; background: #FFF7FA; }
.cart-img { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #F7F1FB; color: var(--mid); }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: grid; gap: 2px; min-width: 0; }
.cart-name { font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.25; }
a.cart-name:hover { color: var(--violet); }
.cart-variant { font-size: 13px; color: var(--violet); font-weight: 700; }
.cart-unit { font-size: 13px; color: var(--muted); }
.cart-unit s { margin-left: 4px; }
.cart-problem { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--danger); }
.cart-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.stepper-sm { gap: 4px; padding: 3px; }
.stepper-sm button { width: 34px; height: 34px; }
.stepper-sm output { min-width: 24px; font-size: 16px; }
.cart-remove { border: 0; background: none; padding: 6px 4px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cart-remove:hover { color: var(--danger); }
.cart-line-total { font-weight: 900; font-size: 15px; white-space: nowrap; }
.cart-summary { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.cart-row { display: flex; justify-content: space-between; gap: 12px; }
.cart-row strong { font-size: 20px; font-weight: 900; }
.cart-row-sm { font-size: 14px; color: var(--muted); }
.cart-note { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 14px; background: #F1E8FA; color: #4E2B73; font-size: 13.5px; }
.cart-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.cart-form { display: grid; gap: 4px; }
.cart-form .textarea { min-height: 70px; resize: vertical; }
.cart-done h3 { font-size: 21px; font-weight: 900; margin-bottom: 8px; }
.cart-done .cart-summary { text-align: left; margin: 0 0 12px; }
.cart-done .cart-note { text-align: left; margin-bottom: 16px; }

/* Checkout (Etapa 2) */
.cart-row-note { color: var(--muted); font-size: 13px; text-align: right; }
.cart-row-disc span:last-child { color: #2F6B52; font-weight: 800; }
.co { gap: 18px; }
.co-sec { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); min-width: 0; display: grid; gap: 4px; }
.co-sec legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 900; font-size: 16px; color: var(--ink); }
.co-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #a24bc6, var(--violet)); color: #fff; font-size: 13px; }
.co-sec .field { margin: 6px 0 4px; }
.co-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 8px; }
.co-seg button {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; text-align: left;
  border: 1.5px solid var(--border-strong); border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s, translate .2s;
}
.co-seg button:hover:not(:disabled) { border-color: var(--mid); translate: 0 -1px; }
.co-seg button[aria-checked="true"] { border: 2px solid var(--violet); background: #F6EDFB; }
.co-seg button:disabled { opacity: .55; cursor: not-allowed; }
.co-seg button .icon { flex: none; width: 20px; height: 20px; color: var(--violet); }
.co-seg button span { display: grid; font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.co-seg button small { font-weight: 600; font-size: 12px; color: var(--muted); }
.co-box { display: flex; gap: 10px; padding: 12px 14px; margin: 4px 0; border-radius: 16px; background: #F6EEFB; color: #3e2a48; font-size: 14px; }
.co-box .icon { flex: none; color: var(--violet); margin-top: 2px; }
.co-box p { margin: 0 0 6px; }
.co-box strong { font-size: 13px; color: var(--deep); }
.co-fee { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: 14px; color: #2F6B52; }
.co-nocover { margin: 6px 0; }
.co-pay { display: grid; gap: 8px; margin-top: 4px; font-size: 14px; }
.co-pay p { margin: 0; }
.co-paytotal strong, .co-change strong { font-size: 17px; color: var(--violet); }
.co-change { display: flex; align-items: center; gap: 6px; margin: 0; min-height: 22px; font-weight: 700; color: #2F6B52; }
.co-change.is-error { color: var(--danger); }
.bank { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #FBF7FD; border: 1px solid var(--border); }
.bank-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 36px; font-size: 13.5px; }
.bank-row span { color: var(--muted); }
.bank-row strong { text-align: right; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--violet); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.copy-btn .icon { width: 14px; height: 14px; }
.co-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.co-items li { display: flex; justify-content: space-between; gap: 12px; }
.co-items small { color: var(--violet); font-weight: 700; }
.co-missing { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #7A4B00; }
.co .cart-summary { margin-top: 10px; }
.done-num { font-size: 18px; margin: 0 0 12px; }
.done-num strong { color: var(--violet); font-size: 22px; }
.cart-done .co-items, .cart-done .co-pay, .cart-done .co-box { text-align: left; margin-bottom: 12px; }

/* ---------- Página de privacidad ---------- */

.legal { padding: 48px 0 72px; }
.legal-card { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-1); padding: clamp(24px, 4vw, 48px); }
.legal h1 { margin: 0 0 6px; font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.legal h2 { margin: 28px 0 8px; font-size: 19px; font-weight: 900; color: var(--deep); }
.legal p, .legal li { font-size: 16px; color: #3e2a48; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--violet); font-weight: 700; }

/* ---------- Movimiento ---------- */

@keyframes s-rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Celular ---------- */

.sf-delivery { margin: 12px 0 0; font-size: 14px; max-width: 34ch; color: rgba(255, 255, 255, .75); }

/* Encabezado en pantallas medianas y chicas: menú desplegable */
@media (max-width: 1040px) {
  .sh-menu-btn { display: grid; }
  .sh-in { gap: 12px; }
  .sh-brand { margin-right: auto; }
  .sh-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 35;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px 16px 18px;
    background: var(--warm); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(69, 23, 92, .14);
  }
  .sh:has(.sh-nav.is-open) { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--warm); }
  .sh-nav.is-open { display: flex; animation: s-rise .25s var(--ease-out) both; }
  .sh-nav a, .sh-cats > button { width: 100%; justify-content: space-between; font-size: 16px; }
  .sh-cats-menu { position: static; box-shadow: none; margin-top: 4px; background: #FBF6FE; }
  .sh-search { order: -1; margin: 0 0 6px; }
  .sh-search input { width: 100%; flex: 1; }
}
@media (max-width: 979px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; margin-top: 10px; }
  .filters.is-open { display: grid; animation: s-rise .25s var(--ease-out) both; }
}
@media (max-width: 520px) {
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc-body { padding: 12px; }
  .pc-name { font-size: 15px; }
  .pc-price strong { font-size: 18px; }
  .pc-actions { flex-direction: column; }
  .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cc-body { padding: 10px 12px 14px; }
  .cc-body strong { font-size: 16px; }
  .cart-line { grid-template-columns: 60px minmax(0, 1fr); }
  .cart-img { width: 60px; height: 60px; }
  .cart-line-total { grid-column: 2; }
}

@media (max-width: 760px) {
  .sh-in { min-height: 64px; }
  .brand-text { font-size: 18px; }
  .sh-brand img { width: 36px; height: 36px; }
  .sh-cta { padding: 0 16px; }
  .hero-s { min-height: 0; }
  .hero-s-in { padding-top: 44px; padding-bottom: 44px; }
  .hero-s::before { background: linear-gradient(180deg, rgba(52, 14, 72, .82), rgba(69, 23, 92, .7)); }
  .hero-s-bg img { object-position: 20% 80%; }
  .hero-s-pills li { font-size: 13px; }
  .product { padding-top: 32px; }
  .buy-card { padding: 20px; }
  .how { padding-top: 56px; }
  .sf-legal-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .brand-text { font-size: 16px; }
  .sh-brand img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .store *, .store *::before, .store *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  .pc-grid.is-swapping { opacity: 1; translate: none; }
}
