/* Paleta tomada del catálogo y del logo de Nuevos Placeres */
:root {
  --bg: #8a1120;
  --bg-deep: #5e0912;
  --bg-darker: #3a050b;
  --ink: #ffe9ef;
  --ink-soft: #f7c6d3;
  --pink: #ffc3d3;
  --outline: #4a0710;
  --neon: #ff3d6e;
  --neon-2: #a78bfa;
  --card: #ffffff;
  --card-ink: #3a050b;
  --accent: #ff3d6e;
  --accent-ink: #fff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-title: 'Shrikhand', 'Titan One', cursive;
  --font-name: 'Titan One', 'Montserrat', sans-serif;
  --font-script: 'Dancing Script', cursive;
  color-scheme: dark;
}

/* Catálogo Belleza: tonos rosados de la lista de precios de cera */
body.theme-belleza {
  --bg: #ffd9e8;
  --bg-deep: #ffc2da;
  --bg-darker: #c2185b;
  --ink: #5a0f33;
  --ink-soft: #8d2a5a;
  --pink: #e0247a;
  --outline: #fff;
  --neon: #e0247a;
  --neon-2: #ff7eb6;
  --card-ink: #5a0f33;
  --accent: #e0247a;
  --soft-border: #f5b5cf;
  --soft-bg: #ffe1ee;
  color-scheme: light;
}

/* Tienda de ropa: estilo boutique (crema, vino y tipografía editorial) */
body.theme-ropa {
  --bg: #f6effc;
  --bg-deep: #ecdcf8;
  --bg-darker: #5b2a6e;
  --ink: #4a1d57;
  --ink-soft: #7d5a88;
  --pink: #e0249a;
  --outline: #fff;
  --neon: #e0249a;
  --neon-2: #c9a6f0;
  --card-ink: #4a1d57;
  --accent: #e0249a;
  --soft-border: #e5cdf5;
  --soft-bg: #f1e4fb;
  --font-title: 'Titan One', 'Shrikhand', cursive;
  --font-name: 'Dancing Script', cursive;
  color-scheme: light;
}

/* Pantalla de entrada: neutra, cada tarjeta con el color de su tienda */
body.theme-entry {
  --bg: #fbf7fa;
  --bg-deep: #f3eaf0;
  --bg-darker: #2b1a2a;
  --ink: #2b1a2a;
  --ink-soft: #6d5a69;
  --pink: #c2185b;
  --accent: #c2185b;
  --soft-border: #ead9e3;
  --soft-bg: #f6edf2;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 110% -10%, rgba(0, 0, 0, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0, 0, 0, .25), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px 48px; outline: none; }
.loading { padding: 80px 0; text-align: center; opacity: .7; }

/* ----- Barra superior ----- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg-darker) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
body.light .topbar { background: rgba(255, 255, 255, .85); border-bottom-color: var(--soft-border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 14px rgba(255, 61, 110, .55); }
.brand-name {
  font-family: var(--font-name); font-size: 1.15rem; letter-spacing: .5px;
  color: #ffd0dc; text-shadow: 0 0 8px rgba(255, 61, 110, .8);
}
body.light .brand-name { color: var(--pink); text-shadow: none; }
.mainnav { display: flex; gap: 6px; margin-left: auto; }
.mainnav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--ink-soft); white-space: nowrap;
}
.mainnav a:hover, .mainnav a.active { background: rgba(255, 255, 255, .12); color: var(--ink); }
body.light .mainnav a:hover, body.light .mainnav a.active { background: var(--soft-bg); }
.cart-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #fff; color: #8a1120; font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count[hidden], .toast[hidden] { display: none; }

/* ----- Tipografía tipo catálogo ----- */
.title {
  font-family: var(--font-title); font-weight: 400; margin: 0;
  color: var(--pink);
  -webkit-text-stroke: 1.5px var(--outline);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--outline);
  line-height: 1.1;
}
body.theme-belleza .title { -webkit-text-stroke: 0; text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(224, 36, 122, .25); }
.script { font-family: var(--font-script); font-weight: 600; font-size: 1.5rem; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.25; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 36px 0 18px; flex-wrap: wrap; }
.section-head .title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.muted { color: var(--ink-soft); }

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; text-decoration: none; font-size: 1rem; transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-primary:hover { box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid currentColor; }
.btn-wa { background: #25d366; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }

/* ----- Portada ----- */
.hero {
  position: relative; overflow: hidden; margin: 18px 0 8px; border-radius: 28px; min-height: 420px;
  display: grid; align-items: end; box-shadow: var(--shadow);
  background: var(--bg-darker) url('/img/hero.jpg') center 30% / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58, 5, 11, .15) 0%, rgba(58, 5, 11, .65) 55%, rgba(58, 5, 11, .95) 100%);
}
.hero-content { position: relative; padding: 32px; max-width: 640px; }
.hero .kicker { font-family: var(--font-body); font-weight: 300; letter-spacing: .35em; text-transform: uppercase; font-size: .9rem; color: #ffd0dc; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); margin: 6px 0 4px; }
.hero .script { color: #ffd0dc; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0; }
.perk {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .08); font-size: .92rem;
}
.perk b { display: block; color: var(--pink); font-family: var(--font-name); font-weight: 400; font-size: 1rem; letter-spacing: .3px; }
.perk-ico { font-size: 1.5rem; }


/* ----- Catálogo ----- */
.store-banner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  margin: 22px 0 6px; padding: 22px 26px; border-radius: 26px; background: rgba(0, 0, 0, .18);
}
body.light .store-banner { background: rgba(255, 255, 255, .7); }
.store-banner .title { font-size: clamp(2rem, 6vw, 3rem); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .25);
  background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap;
}
body.light .chip { border-color: var(--soft-border); }
.chip.active { background: var(--pink); color: var(--outline); border-color: var(--pink); }
body.light .chip.active { color: #fff; }
.search {
  width: 100%; max-width: 340px; padding: 11px 16px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .95); color: #3a050b;
}
.cat-title { font-size: clamp(1.6rem, 4.6vw, 2.2rem); margin: 30px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: rgba(0, 0, 0, .18); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(255, 255, 255, .07);
}
body.light .card { background: #fff; border-color: var(--soft-border); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: var(--accent); color: #fff; text-transform: uppercase; letter-spacing: .04em;
}
.badge.out { background: #333; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-family: var(--font-name); font-weight: 400; font-size: 1.08rem; color: var(--pink); line-height: 1.15; }
.card-details { font-size: .8rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 800; font-style: italic; letter-spacing: .02em; font-size: 1.05rem; margin-top: auto; padding-top: 6px; }
.price small { font-weight: 600; font-style: normal; font-size: .75rem; opacity: .8; }
.price s { opacity: .55; font-weight: 500; margin-left: 6px; font-size: .85rem; }

.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 16px;
  background: radial-gradient(circle at 30% 20%, #fff 0, #ffe3ef 45%, #ffc2da 100%);
  color: #c2185b; font-family: var(--font-name); font-size: 1.1rem;
}
.placeholder span { font-size: 3rem; display: block; }

/* ----- Detalle de producto ----- */
.crumbs { margin: 18px 0 0; font-size: .88rem; }
.crumbs a { color: var(--ink-soft); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 18px; align-items: start; }
.product-img { background: #fff; border-radius: 28px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-family: var(--font-name); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--pink); margin: 6px 0 10px; }
.product .cat { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--ink-soft); }
.specs { list-style: none; padding: 0; margin: 0 0 16px; }
.specs li { padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); }
body.light .specs li { border-bottom-color: var(--soft-border); }
.product .price { font-size: 1.9rem; margin: 6px 0 16px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255, 255, 255, .12); }
body.light .qty { background: var(--soft-bg); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 1.3rem; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.note { font-size: .86rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; margin: 6px 0; }

/* ----- Paneles / formularios ----- */
.panel { background: rgba(0, 0, 0, .2); border-radius: var(--radius); padding: 22px; border: 1px solid rgba(255, 255, 255, .07); }
body.light .panel { background: #fff; border-color: var(--soft-border); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: #3a050b; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .18); margin-bottom: 10px;
}
body.light .choice { border-color: var(--soft-border); }
.choice:has(input:checked) { border-color: var(--neon); background: rgba(255, 61, 110, .12); }
.choice input { margin-top: 4px; accent-color: var(--neon); }
.choice b { display: block; }
.choice small { color: var(--ink-soft); }
.choice.disabled { opacity: .45; pointer-events: none; }
.hp { position: absolute; left: -9999px; }
.error { background: #fff; color: #b00020; padding: 10px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 12px; }
legend { font-family: var(--font-name); color: var(--pink); font-size: 1.15rem; padding: 0; margin-bottom: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
body.light .line { border-bottom-color: var(--soft-border); }
.line img, .line .ph { width: 64px; height: 64px; border-radius: 14px; background: #fff; object-fit: contain; }
.line .ph { display: grid; place-items: center; font-size: 1.6rem; }
.line-name { font-weight: 700; }
.line-opt { font-size: .82rem; color: var(--ink-soft); }
.link-btn { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 0; font-size: .82rem; }
.totals { margin-top: 12px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { font-size: 1.3rem; font-weight: 800; border-top: 2px solid rgba(255, 255, 255, .25); margin-top: 6px; padding-top: 12px; }
.empty { text-align: center; padding: 60px 0; }

.status-steps { display: flex; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.status-steps span { flex: 1; min-width: 90px; text-align: center; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: .8rem; font-weight: 600; }
.status-steps span.done { background: var(--accent); color: #fff; }
.bank { background: #fff; color: #3a050b; border-radius: 16px; padding: 16px; margin: 14px 0; }
.bank dt { font-size: .78rem; text-transform: uppercase; opacity: .7; }
.bank dd { margin: 0 0 8px; font-weight: 700; }
.demo-box { border: 2px dashed var(--pink); border-radius: 20px; padding: 22px; text-align: center; margin-top: 18px; }

/* ----- Pie ----- */
.footer { background: var(--bg-darker); color: #ffd9e3; padding: 36px 16px 90px; }
body.theme-belleza .footer { background: #5a0f33; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer h4 { font-family: var(--font-name); font-weight: 400; font-size: 1.05rem; margin: 0 0 8px; color: #ffc3d3; }
.footer p { margin: 0 0 6px; font-size: .9rem; line-height: 1.5; }
.footer .script { color: #ffc3d3; }
.footer-logo { border-radius: 50%; }
.legal { text-align: center; font-size: .78rem; opacity: .7; margin-top: 26px !important; }

.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

/* ----- Modal de edad / toast / lightbox ----- */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(30, 2, 6, .92); backdrop-filter: blur(8px); }
.age-gate[hidden] { display: none; }
.age-gate:not([hidden]) { animation: fade-in .3s; }
.age-gate.closing { opacity: 0; transition: opacity .25s; }
.age-gate:not([hidden]) .age-card { animation: zoom-in .35s cubic-bezier(.2, .9, .3, 1.2); }
.age-card { background: #5e0912; border-radius: 28px; padding: 30px 24px; max-width: 420px; text-align: center; box-shadow: 0 0 40px rgba(255, 61, 110, .45); color: #ffe9ef; }
.age-card img { margin: 0 auto 12px; border-radius: 50%; }
.age-card h2 { font-family: var(--font-name); font-weight: 400; color: #ffc3d3; margin: 0 0 6px; }
.age-actions { display: grid; gap: 10px; margin-top: 18px; }
.age-actions .btn-ghost { color: #ffe9ef; }
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  background: #fff; color: #5e0912; padding: 10px 10px 10px 16px; border-radius: 18px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35); border-left: 5px solid var(--neon);
  opacity: 0; transform: translate(-50%, 16px) scale(.96); transition: opacity .22s, transform .25s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast > span:nth-child(2) { padding-right: 6px; }
.toast-ico { font-size: 1.15rem; }
.toast-action {
  flex: none; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 12px; font: inherit; font-weight: 700;
  background: var(--neon); color: #fff; text-decoration: none; white-space: nowrap;
}
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; animation: fade-in .2s; }
.lightbox img { max-height: 92vh; border-radius: 16px; animation: zoom-in .25s ease-out; }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #5e0912; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 760px) {
  .brand-name { display: none; }
  .mainnav { gap: 0; }
  .mainnav a { padding: 8px 10px; font-size: .86rem; }
  .product, .layout-2 { grid-template-columns: 1fr; }
  .hero { min-height: 460px; }
  .hero-content { padding: 22px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; font-size: .78rem; line-height: 1.3; }
  .perk b { font-size: .92rem; }
  .perk-ico { font-size: 1.25rem; }
  .filters-wrap { margin: 0 -16px; padding: 0 16px 8px; }
  .search { max-width: none; }
  .banner-logo { width: 76px; height: 76px; }
  .store-banner { padding: 18px; }
  .row-2 { grid-template-columns: 1fr; }
}

/* ----- Navegación ----- */
.page-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.page-top .crumbs { margin: 0; }
.back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .12); color: var(--ink); font-weight: 600; font-size: .9rem; transition: background .2s, transform .12s;
}
.back:hover { background: rgba(255, 255, 255, .2); }
.back:active { transform: scale(.96); }
.back span { font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.back:hover span { transform: translateX(-3px); }
body.light .back { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.see-all { font-weight: 700; color: var(--pink); text-decoration: none; }

/* Categorías de la portada */
.cats { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat-tile {
  flex: none; width: 112px; scroll-snap-align: start; text-decoration: none; text-align: center;
  font-family: var(--font-name); font-size: .92rem; color: var(--pink);
}
.cat-tile img { width: 112px; height: 112px; object-fit: contain; border-radius: 50%; background: #fff; margin-bottom: 8px; border: 3px solid var(--pink); transition: transform .2s, opacity .35s; }
.cat-tile:hover img { transform: scale(1.05) rotate(-3deg); }

/* Filtros fijos al hacer scroll */
.filters-wrap {
  position: sticky; top: 64px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-bottom: 8px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px);
}
.filters-wrap .filters { flex: 1 1 320px; min-width: 0; }
.search-box { flex: 1 1 220px; display: flex; justify-content: flex-end; }
.cat-title small { font-family: var(--font-body); font-size: .9rem; -webkit-text-stroke: 0; text-shadow: none; color: var(--ink-soft); font-weight: 600; vertical-align: middle; }
.small-empty { padding: 40px 0; }
.empty-ico { font-size: 3.2rem; margin-bottom: 8px; }

/* Producto */
.opt-label { margin: 4px 0 8px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.grow { flex: 1; min-width: 180px; }
.ask-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.note.warn { color: #ffd166; font-weight: 700; }
body.light .note.warn { color: var(--accent); }
.center { justify-content: center; }
.btn.done { background: #2bb673; box-shadow: 0 0 18px rgba(43, 182, 115, .55); }

/* Checkout */
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--neon); color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .85rem; margin-right: 6px; }
.reveal { animation: fade-up .3s; }
.reveal.closed { display: none; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #ff4d4f; background: #fff5f5; animation: shake .35s; }
.field-err { color: #ffd166; font-weight: 700; font-size: .82rem; }
body.light .field-err { color: #b00020; }
.error { border-left: 5px solid #b00020; animation: fade-up .25s; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); font-weight: 600; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; flex: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.demo-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.sent { text-align: center; padding: 30px 0; animation: zoom-in .35s; }
.sent .title { margin-bottom: 8px; }

/* ----- Animaciones ----- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.92); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 30% { transform: scale(1.25); } 60% { transform: scale(.92); } }
@keyframes pop { 40% { transform: scale(1.12); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Sin transform en la entrada del contenedor de filtros: rompería el "sticky" */
.view-enter > :not(.filters-wrap) { animation: fade-up .38s cubic-bezier(.2, .7, .3, 1) both; }
.view-enter > .filters-wrap { animation: fade-in .38s both; }
.view-enter > :nth-child(2) { animation-delay: .05s; }
.view-enter > :nth-child(3) { animation-delay: .1s; }
.view-enter > :nth-child(n + 4) { animation-delay: .14s; }
.view-enter .card, .view-enter .cat-tile { animation: fade-up .4s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(.12s + var(--i, 0) * 35ms); }
#results .card { animation: fade-up .3s both; animation-delay: calc(var(--i, 0) * 25ms); }
img.fade { opacity: 0; transition: opacity .35s; }
img.fade.loaded { opacity: 1; }
.cart-btn.bump { animation: bump .45s; }
.price.pop { animation: pop .3s; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ----- Tema claro: arreglos de contraste ----- */
body.light .field input, body.light .field select, body.light .field textarea { border-color: var(--soft-border); }
body.light .field input:focus, body.light .field select:focus, body.light .field textarea:focus { border-color: var(--accent); }
body.light .search { border: 1px solid var(--soft-border); }
body.light .notice { background: #fff; }
body.light .status-steps span { background: var(--soft-bg); }
body.light .totals .grand { border-top-color: var(--soft-border); }
body.light .filters-wrap { background: color-mix(in srgb, var(--bg) 94%, transparent); }

/* ----- Tienda de ropa ----- */
body.theme-ropa .title { -webkit-text-stroke: 0; color: #ff8fcb; text-shadow: 2px 2px 0 #fff, 3px 3px 0 #e0249a; font-weight: 400; letter-spacing: .01em; }
body.theme-ropa .script { color: var(--accent); }
body.theme-ropa .store-banner { background: linear-gradient(135deg, #fff 0%, #ecdcf8 100%); border: 2px solid #f6b3dc; }
body.theme-ropa .card { border-radius: 20px; }
body.theme-ropa .footer { background: #5b2a6e; }
.banner-logo { width: 104px; height: 104px; border-radius: 50%; flex: none; box-shadow: 0 6px 18px rgba(224, 36, 154, .25); }
body.theme-ropa .card-img { aspect-ratio: 3 / 4; }
body.theme-ropa .card-img img { object-fit: cover; }
body.theme-ropa .card-name { font-weight: 700; }
body.theme-ropa .product-img { aspect-ratio: 3 / 4; border-radius: 18px; }
body.theme-ropa .product-img img { object-fit: cover; }
body.theme-ropa .chip.active { background: var(--accent); border-color: var(--accent); }
body.theme-ropa .btn-primary { box-shadow: 0 4px 0 #b3157a; }
body.theme-ropa .badge { background: var(--accent); }
.kicker { font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; color: var(--ink-soft); margin-bottom: 4px; }
.placeholder.ph-ropa { background: radial-gradient(circle at 30% 20%, #fff 0, #f1e4fb 55%, #e2c8f5 100%); color: #e0249a; font-family: 'Titan One', cursive; }
.coming { text-align: center; padding: 48px 16px 24px; max-width: 520px; margin: 0 auto; }
.coming .title { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 8px; }
.coming p { color: var(--ink-soft); line-height: 1.5; }


/* ----- Pantalla de entrada ----- */
body.theme-entry .brand, body.theme-entry .mainnav { visibility: hidden; }
body.theme-entry .footer-grid > div:first-child { display: none; }
.entry { text-align: center; padding: 28px 0 8px; }
.entry-title { font-family: 'Titan One', cursive; font-weight: 400; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.15; margin: 0 0 8px; color: var(--ink); }
.entry-sub { color: var(--ink-soft); margin: 0 auto 26px; max-width: 560px; font-size: .92rem; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; text-align: center; }
.entry-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 20px 22px; border-radius: 28px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s; animation: rise .5s both; animation-delay: calc(var(--i) * 90ms);
}
.entry-card:hover { transform: translateY(-4px); }
.entry-card img { border-radius: 50%; margin-bottom: 6px; }
.entry-card h2 { margin: 0; font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.entry-card p { margin: 0; max-width: 300px; font-size: .92rem; line-height: 1.45; }
.entry-card .btn { margin-top: 12px; min-width: 140px; }
.entry-card.np { background: linear-gradient(160deg, #5e0912, #a3142a); color: #ffe3ea; }
.entry-card.np img { box-shadow: 0 0 22px rgba(255, 61, 110, .6); }
.entry-card.np h2 { font-family: 'Shrikhand', cursive; color: #ff7aa2; text-shadow: 2px 2px 0 #fff; }
.entry-card.np .btn { background: #ff3d6e; color: #fff; }
.entry-card.belleza { background: linear-gradient(160deg, #ffe4ef, #ff9cc6); color: #5a0f33; }
.entry-card.belleza h2 { font-family: 'Dancing Script', cursive; font-weight: 700; font-size: 2.1rem; color: #c2185b; }
.entry-card.belleza .btn { background: #e0247a; color: #fff; }
.entry-card.ropa { background: linear-gradient(160deg, #f6effc, #e2c8f5); color: #4a1d57; }
.entry-card.ropa h2 { font-family: 'Titan One', cursive; color: #ff8fcb; text-shadow: 2px 2px 0 #fff, 3px 3px 0 #e0249a; }
.entry-card.ropa .btn { background: #e0249a; color: #fff; }
.entry-tag { position: absolute; top: 14px; right: 14px; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #a3142a; }
.entry-card.ropa .entry-tag { color: #e0249a; }
.entry-note { color: var(--ink-soft); font-size: .85rem; margin: 22px 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ----- Envío gratis y etiquetas ----- */
.free-ship { margin: 12px 0 4px; font-size: .88rem; }
.free-ship.done { font-weight: 700; color: #2bb673; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); margin-top: 6px; overflow: hidden; }
body.light .meter { background: var(--soft-bg); }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.tag { font-style: normal; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; margin-left: 6px; white-space: nowrap; }

@media (max-width: 430px) {
  .mainnav .nav-extra { display: none; }
  .mainnav a { padding: 8px 8px; }
}
