/* ===== Megatienda de la Belleza — paleta tomada del logo ===== */
:root {
  --red: #E31B23;
  --red-dark: #B5121A;
  --red-soft: #FFF0F0;
  --black: #111111;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #ececec;
  --bg: #fafafa;
  --white: #ffffff;
  --green: #1FAF5A;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(17, 17, 17, .08);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.45; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- barra superior ---------- */
.topbar {
  background: var(--black); color: #fff; font-size: 12.5px; font-weight: 500;
  text-align: center; padding: 7px 12px; letter-spacing: .02em;
}
.topbar .dot { color: var(--red); margin: 0 8px; }
@media (max-width: 560px) { .topbar #tagline, .topbar .dot { display: none; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding-top: 10px; padding-bottom: 10px;
}
.logo img { height: 40px; width: auto; }
.search {
  display: flex; align-items: center; gap: 8px; background: #f3f3f4; border-radius: 999px;
  padding: 0 16px; height: 44px; max-width: 560px; width: 100%; justify-self: center;
  border: 1.5px solid transparent; transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--red); background: #fff; }
.search svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; min-width: 0; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px; border: 0;
  background: var(--red); color: #fff; height: 44px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; transition: background .2s, transform .1s;
}
.cart-btn:hover { background: var(--red-dark); }
.cart-btn:active { transform: scale(.97); }
.cart-btn svg { width: 20px; height: 20px; fill: currentColor; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--black); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
@media (max-width: 760px) {
  .header-row { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .logo img { height: 30px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 42px; }
  .cart-btn { padding: 0 14px; }
  .cart-label { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(227,27,35,.18), transparent 45%),
    linear-gradient(120deg, #ffffff 0%, #fff5f5 55%, #ffe1e3 100%);
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.hero-inner { padding-top: 34px; padding-bottom: 38px; }
/* --mx/--my = mouse (-1..1), --sp = progreso de scroll (0..1) */
.hero { --mx: 0; --my: 0; --sp: 0; isolation: isolate; }
.hero-inner { padding-top: 56px; padding-bottom: 84px; }
@media (max-width: 900px) { .hero-inner { padding-top: 36px; padding-bottom: 56px; } }
.hero-copy {
  transform: translate3d(0, calc(var(--sp) * -90px), 0);
  opacity: calc(1 - var(--sp) * 1.4); will-change: transform, opacity;
}
.hero-spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(560px circle at var(--cx, 72%) var(--cy, 42%), rgba(227,27,35,.14), transparent 65%);
}
.hero-word {
  position: absolute; left: -.06em; bottom: -.3em; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--script); font-size: clamp(150px, 26vw, 400px); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(227,27,35,.17);
  translate: calc(var(--sp) * -14vw + var(--mx) * -14px) calc(var(--my) * -8px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-lg { height: 54px; padding: 0 26px; border-radius: 999px; font-size: 16px; }
.btn-lg svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary.btn-lg { box-shadow: 0 12px 28px -8px rgba(227,27,35,.55); }
.btn.btn-ghost { background: rgba(255,255,255,.7); color: var(--black); border: 1.5px solid var(--black); backdrop-filter: blur(6px); }
.btn.btn-ghost:hover { background: var(--black); color: #fff; }
.magnetic { transition: translate .35s var(--ease-out, ease), background .2s, color .2s, box-shadow .2s, transform .15s; }
.hero-social { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.hero-social span { font-size: 13px; font-weight: 600; color: var(--muted); }
.hero-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); color: #fff; transition: background .2s, transform .2s;
}
.hero-social a:hover { background: var(--red); transform: translateY(-2px); }
.hero-social svg { width: 20px; height: 20px; fill: currentColor; }
.hero-social svg.ig { fill: none; stroke: currentColor; stroke-width: 2; }
.hero-social svg.ig .dot { fill: currentColor; stroke: none; }
.hero-perks {
  list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.hero-perks li { display: flex; align-items: baseline; gap: 6px; }
.hero-perks li::before { content: "✦"; color: var(--red); font-size: 11px; align-self: center; }
.hero-perks strong { color: var(--black); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn-lg { flex: 1; height: 50px; padding: 0 16px; font-size: 15px; }
  .hero-perks { margin-top: 18px; font-size: 13px; }
  .hero-perks strong { font-size: 17px; }
}

/* cintas inclinadas tipo "DE LA BELLEZA" del logo */
.ribbon { position: relative; height: 112px; overflow: hidden; margin-top: -30px; z-index: 2; pointer-events: none; }
.ribbon-band {
  position: absolute; left: -5%; width: 110%; top: 34px; padding: 11px 0; overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(17,17,17,.35);
}
.ribbon-red { background: var(--red); rotate: 2.2deg; }
.ribbon-black { background: var(--black); rotate: -1.8deg; }
.ribbon-track {
  display: flex; align-items: center; gap: 22px; width: max-content; padding-right: 22px;
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap;
  animation: marquee 50s linear infinite;
}
.ribbon-red .ribbon-track { animation-direction: reverse; animation-duration: 60s; }
.ribbon-track i { font-style: normal; color: var(--red); letter-spacing: 0; }
.ribbon-red .ribbon-track i { color: var(--black); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .ribbon { height: 84px; margin-top: -10px; }
  .ribbon-band { top: 24px; padding: 8px 0; }
  .ribbon-track { font-size: 11.5px; gap: 16px; padding-right: 16px; }
}

/* barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #ff6a70); box-shadow: 0 0 10px rgba(227,27,35,.5);
}
.header { transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 30px -12px rgba(17,17,17,.18); }
#catalogo { scroll-margin-top: 90px; }
@media (max-width: 1023px) { #catalogo { scroll-margin-top: 130px; } }
@media (max-width: 760px) { #catalogo { scroll-margin-top: 180px; } }

.hero-kicker {
  display: inline-block; margin: 0 0 10px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; transform: skewX(-10deg);
}
.hero h1 { margin: 0; font-size: clamp(32px, 5.2vw, 64px); line-height: 1.05; font-weight: 800; max-width: 640px; letter-spacing: -.02em; }
.hero .script { font-family: var(--script); font-weight: 400; color: var(--red); font-size: 1.15em; }
.hero-sub { margin: 16px 0 0; color: var(--muted); max-width: 500px; font-size: 17px; }
@media (max-width: 560px) { .hero-inner { padding-top: 22px; padding-bottom: 24px; } .hero-sub { font-size: 14px; } }

/* ---------- categorías (chips móvil) ---------- */
.cat-bar {
  position: sticky; top: 65px; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line); display: none;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500; white-space: nowrap; scroll-snap-align: start;
  transition: all .15s;
}
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 1023px) { .cat-bar { display: block; } }
@media (max-width: 760px) { .cat-bar { top: 115px; } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 56px; }
@media (max-width: 1023px) { .layout { grid-template-columns: 1fr; padding-top: 18px; } .sidebar { display: none; } }

.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  margin: 0 0 12px; font-weight: 700;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.sidebar li + li { border-top: 1px solid var(--line); }
.sidebar li button {
  width: 100%; text-align: left; border: 0; background: none; padding: 13px 18px; font-size: 15px;
  font-weight: 500; display: flex; align-items: center; gap: 10px; transition: background .15s, color .15s;
}
.sidebar li button:hover { background: var(--red-soft); color: var(--red); }
.sidebar li button.active { background: var(--red); color: #fff; font-weight: 600; }

.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.results-head h2::after { content: ""; display: block; width: 42px; height: 4px; background: var(--red); margin-top: 6px; border-radius: 2px; }
#resultsInfo { color: var(--muted); font-size: 14px; }

/* ---------- grid de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.loading, .empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--muted); }
.empty .btn { margin-top: 8px; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
@media (hover: hover) { .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); } }
.card-media { position: relative; border: 0; padding: 0; background: #f4f4f4; aspect-ratio: 1 / 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.04); } }

.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badges.static { position: static; flex-direction: row; flex-wrap: wrap; margin: 4px 0 14px; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px;
  border-radius: 6px; color: #fff; line-height: 1.2; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.tag-oferta { background: var(--red); }
.tag-top { background: var(--black); }
.tag-nuevo { background: #0E9F6E; }
.tag-reco { background: #7C3AED; }
.tag-excl { background: linear-gradient(135deg, #C9A227, #8A6D12); }
.tag-custom { background: #fff; color: var(--black); border: 1.5px solid var(--black); }
.discount {
  position: absolute; top: 10px; right: 10px; background: #FFE14D; color: var(--black); font-weight: 800;
  font-size: 12.5px; padding: 5px 8px; border-radius: 999px;
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-cat { margin: 0 0 2px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card-title {
  margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price .now { font-size: 18px; font-weight: 800; color: var(--black); }
.price s { color: var(--muted); font-size: 13.5px; }
.card .price .now { color: var(--black); }
.card-actions { margin-top: 10px; height: 42px; }
/* dos precios en una fila: divisas (billete) a la izquierda y referencia en Bs pegada al borde derecho */
.prices { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.prices .price { margin-top: 0; align-items: center; gap: 4px 6px; flex-wrap: nowrap; }
.price-bs { margin-left: auto; }
/* con dos precios no cabe el tachado en la tarjeta: la oferta se ve en la etiqueta -% de la foto */
.card .prices.two s { display: none; }
.price-bs .now { font-size: 16px; color: var(--ink); }
.cur { flex: none; width: 26px; height: 16px; display: inline-block; vertical-align: -3px; }
.cur-bs {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 3px;
  background: #F2A900; color: var(--black); font-size: 9.5px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.12);
}
.prices.big { margin: 6px 0 0; gap: 8px; }
.prices-save { flex-basis: 100%; }
.prices.big .cur { width: 34px; height: 21px; }
.prices.big .cur-bs { font-size: 12px; }
.prices.big .price-bs .now { font-size: 21px; }
@media (max-width: 760px) {
  .cur { width: 22px; height: 14px; }
  .cur-bs { font-size: 8.5px; }
  .price-bs .now { font-size: 13.5px; }
}
/* precio al mayor: se consulta por WhatsApp */
.ask-mayor {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; align-self: flex-start;
  font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s;
}
.ask-mayor svg { width: 15px; height: 15px; fill: var(--green); flex: none; }
.ask-mayor u { color: var(--green); font-weight: 700; text-underline-offset: 2px; }
.ask-mayor:hover { color: var(--ink); }
.pm-wholesale {
  margin: 14px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1.5px dashed var(--black); border-radius: 12px; padding: 12px 14px; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.pm-wholesale:hover { border-color: var(--green); background: #effaf3; }
.pm-wholesale-text { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.pm-wholesale-text b { display: block; color: var(--ink); font-size: 14.5px; }
.pm-wholesale-btn {
  flex: none; background: var(--green); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 9px 14px; border-radius: 999px;
}
/* aviso: precios con promo por pago en divisas */
.price-note {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; color: var(--ink);
}
.price-note b {
  background: var(--black); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 3px 9px; transform: skewX(-10deg);
}
.price-note.small { margin: 12px 0 0; padding: 8px 12px; font-size: 12.5px; gap: 4px 8px; }
.price-note.small b { font-size: 9.5px; }
.drawer-foot .price-note.small { margin: 0 0 12px; }
@media (max-width: 760px) {
  .ask-mayor { font-size: 11px; gap: 4px; }
  .ask-mayor svg { width: 13px; height: 13px; }
  .price-note { font-size: 13px; padding: 9px 12px; }
}

/* aviso de entrada: solo se cierra con "Aceptar" */
.notice {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px;
  background: rgba(17,17,17,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s;
}
.notice.open { opacity: 1; }
.notice-card {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 20px; overflow: hidden;
  padding: 30px 26px 24px; text-align: center; border-bottom: 6px solid var(--red);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.96); transition: transform .45s var(--ease-out, ease);
}
.notice.open .notice-card { transform: none; }
.notice-logo { height: 46px; width: auto; margin: 0 auto 18px; }
.notice-tag {
  display: inline-block; background: var(--black); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; padding: 4px 12px; transform: skewX(-10deg);
}
.notice-card h2 { margin: 12px 0 8px; font-size: 24px; line-height: 1.2; font-weight: 800; }
.notice-card h2 .script { font-family: var(--script); font-weight: 400; color: var(--red); font-size: 1.2em; }
.notice-card p { margin: 0 0 22px; color: #444; font-size: 16px; }
.notice-card .btn { width: 100%; }
@media (max-width: 760px) {
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 13.5px; }
  .price .now { font-size: 16px; }
  .price s { font-size: 12px; }
  .tag { font-size: 9.5px; padding: 3px 7px; }
  .badges { top: 7px; left: 7px; }
  .discount { top: 7px; right: 7px; font-size: 11px; }
  .card-actions { height: 38px; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
  font-weight: 600; padding: 0 18px; height: 46px; transition: background .2s, transform .1s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: #fff; border: 1.5px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-add { width: 100%; height: 100%; background: var(--black); color: #fff; font-size: 14px; }
.btn-add:hover { background: var(--red); }
.btn-wa { width: 100%; background: var(--green); color: #fff; height: 52px; font-size: 16px; }
.btn-wa:hover { background: #17924a; }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13.5px; padding: 8px; }

.stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--black); border-radius: 10px; height: 46px; overflow: hidden;
}
.stepper button { border: 0; background: #fff; width: 44px; height: 100%; font-size: 20px; font-weight: 600; }
.stepper button:hover { background: var(--red-soft); color: var(--red); }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; }
.stepper.small { height: 100%; width: 100%; justify-content: space-between; border-color: var(--red); }
.cart-line .stepper.small { height: 34px; width: auto; }
.cart-line .stepper.small button { width: 34px; font-size: 17px; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); display: flex; align-items: center;
  justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s;
}
.overlay.open { opacity: 1; }
.close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.close:hover { background: var(--red); color: #fff; }

.modal {
  position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 900px; max-height: 92vh;
  overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr; transform: translateY(16px); transition: transform .22s;
}
.overlay.open .modal { transform: none; }
.pm-gallery { background: #f4f4f4; padding: 0 0 12px; }
.pm-zoom { overflow: hidden; }
.pm-zoom img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s var(--ease-out, ease); }
.pm-thumbs { display: flex; gap: 8px; padding: 12px 12px 0; overflow-x: auto; }
.pm-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 60px; height: 60px; flex: none; background: none; }
.pm-thumbs button.active { border-color: var(--red); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 32px 28px 28px; display: flex; flex-direction: column; }
.pm-cat { margin: 0; color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .1em; }
.pm-info h2 { margin: 6px 0 6px; font-size: 24px; line-height: 1.2; }
.prices.big .now { font-size: 28px; }
.prices.big s { font-size: 16px; }
.price .save { background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }
.pm-desc { color: #444; white-space: pre-line; margin: 14px 0 22px; }
.pm-buy { display: flex; gap: 10px; margin-top: auto; }
.pm-buy .btn { flex: 1; }
@media (max-width: 760px) {
  .overlay:not(.drawer-overlay) { padding: 0; align-items: flex-end; }
  .modal { grid-template-columns: 1fr; border-radius: 18px 18px 0 0; max-height: 94vh; transform: translateY(40px); }
  .pm-zoom img { aspect-ratio: 4 / 3.4; }
  .pm-info { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .pm-info h2 { font-size: 20px; }
  .prices.big .now { font-size: 24px; }
  .pm-buy { position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
}

/* ---------- carrito ---------- */
.drawer-overlay { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer {
  position: relative; background: #fff; width: 100%; max-width: 440px; height: 100%; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
.overlay.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head .close { position: static; box-shadow: none; background: #f3f3f4; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 17px; }
.total-row strong { font-size: 24px; color: var(--black); }
.total-label { font-weight: 800; letter-spacing: .04em; color: var(--black); display: inline-flex; align-items: center; gap: 7px; }
.total-label small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.total-bs { margin-top: -4px; }
.total-bs strong { font-size: 19px; color: var(--ink); }
.cl-unit .cur { width: 20px; height: 13px; vertical-align: -2px; }
.cl-unit .cur-bs { font-size: 8px; }
.cl-bs { font-size: 12px; color: var(--muted); margin-top: -8px; }
#checkout { display: grid; gap: 8px; }
#checkout input, #checkout textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 15px; resize: vertical; outline: 0;
}
#checkout input:focus, #checkout textarea:focus { border-color: var(--black); }
#checkout .invalid { border-color: var(--red); background: var(--red-soft); }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f4f4f4; }
.cl-name { margin: 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.cl-unit { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cl-remove { border: 0; background: none; color: var(--red); font-size: 12.5px; font-weight: 600; text-decoration: underline; padding: 0; }
.cl-remove:hover { color: var(--red-dark); }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty svg { width: 56px; height: 56px; fill: #ddd; }

/* ---------- botón flotante móvil ---------- */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; justify-content: space-between; border: 0; background: var(--red); color: #fff;
  height: 54px; border-radius: 14px; padding: 0 20px; font-weight: 600; box-shadow: 0 10px 28px rgba(227,27,35,.4);
}
@media (max-width: 760px) {
  .fab:not([hidden]) { display: flex; }
  body:has(.fab:not([hidden])) .footer { padding-bottom: 90px; }
}

/* ---------- botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s, bottom .25s; text-decoration: none;
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float.magnetic { transition: transform .2s, box-shadow .2s, bottom .25s, translate .35s var(--ease-out, ease); }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,.55); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--black); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-float-tip { opacity: 1; transform: translateY(-50%); }
@media (max-width: 760px) {
  .wa-float { width: 54px; height: 54px; right: 16px; }
  .wa-float-tip { display: none; }
  /* sube el botón cuando aparece la barra "Ver carrito" */
  body:has(.fab:not([hidden])) .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------- pantalla de carga ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: #fff; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  border-bottom: 6px solid var(--red);
  transition: transform .85s cubic-bezier(.77,0,.18,1) .15s;
}
/* halo rojo que respira detrás del logo */
.preloader-glow {
  position: absolute; width: min(620px, 120vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,27,35,.16), transparent 62%);
  animation: pre-glow 2.4s ease-in-out infinite;
}
@keyframes pre-glow { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
/* logo: entra con desenfoque y luego un brillo lo recorre */
.preloader-logo-wrap {
  /* sin máscara CSS: si la máscara no carga (o se abre con doble clic) el logo queda invisible */
  position: relative; overflow: hidden;
  animation: pre-logo-in 1s cubic-bezier(.2,.8,.2,1) both;
}
.preloader-logo-wrap::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: pre-shine 1.8s ease-in-out .9s infinite;
}
.preloader-logo { width: min(440px, 84vw); height: auto; }
@keyframes pre-logo-in {
  from { opacity: 0; transform: scale(.82) translateY(14px); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pre-shine { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(220%) skewX(-20deg); } }
/* barra de carga con destello */
.preloader-bar {
  position: relative; width: min(320px, 70vw); height: 6px; background: #f1f1f1; border-radius: 999px; overflow: hidden;
  animation: pre-logo-in .8s cubic-bezier(.2,.8,.2,1) .25s both;
}
.preloader-bar span {
  position: relative; display: block; height: 100%; width: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #ff6a70);
  box-shadow: 0 0 12px rgba(227,27,35,.6);
  animation: pre-fill 2.4s cubic-bezier(.2,.7,.3,1) .3s forwards;
}
.preloader-bar span::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: bar-shine 1.1s linear infinite;
}
@keyframes bar-shine { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pre-fill { from { width: 0; } to { width: 88%; } }
/* salida: la barra se completa, el logo crece y la pantalla sube como telón */
.preloader.done { transform: translateY(-100%); pointer-events: none; }
.preloader.done .preloader-bar span { width: 100%; animation: none; transition: width .25s; }
.preloader.done .preloader-logo-wrap { transition: transform .6s ease .1s, opacity .5s ease .1s; transform: scale(1.12); opacity: 0; }
body:has(.preloader:not(.done)) { overflow: hidden; }

/* ---------- animaciones de entrada ---------- */
:root { --ease-out: cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes skew-in { from { opacity: 0; transform: translateX(-30px) skewX(-10deg); } to { opacity: 1; transform: skewX(-10deg); } }
@keyframes grow-line { from { width: 0; } to { width: 42px; } }

body.ready .header { animation: drop .7s var(--ease-out) .15s backwards; }
body.ready .hero-kicker { animation: skew-in .7s var(--ease-out) .35s backwards; }
body.ready .hero h1 { animation: rise .8s var(--ease-out) .45s backwards; }
body.ready .hero-sub { animation: rise .8s var(--ease-out) .6s backwards; }
body.ready .hero-actions { animation: rise .8s var(--ease-out) .72s backwards; }
body.ready .hero-perks { animation: rise .8s var(--ease-out) .84s backwards; }
.chips.intro .chip { animation: rise .5s var(--ease-out) backwards; animation-delay: calc(.6s + var(--i, 0) * 50ms); }
body.ready .wa-float { animation: pop .6s var(--ease-out) 1.1s backwards; }

/* "belleza" con brillo que recorre las letras */
.hero .script {
  background: linear-gradient(100deg, var(--red) 0%, var(--red) 40%, #ff8a8f 50%, var(--red) 60%, var(--red) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-shine 4s ease-in-out 1.6s infinite; padding-right: .08em;
}
@keyframes text-shine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }

/* círculos decorativos flotando en el hero */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(227,27,35,.12), transparent 70%);
}
.hero::before { width: 420px; height: 420px; right: -120px; top: -160px; animation: float-a 9s ease-in-out infinite; }
.hero::after { width: 260px; height: 260px; left: 30%; bottom: -130px; animation: float-b 11s ease-in-out infinite; }
.hero-inner { position: relative; z-index: 1; }
@keyframes float-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.15); } }

/* aparición al hacer scroll */
.reveal:not(.in) { opacity: 0; }
.reveal.in { animation: rise .75s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
.results-head.in h2::after { animation: grow-line .6s var(--ease-out) .35s backwards; }

/* tarjetas: se elevan, la foto hace zoom y un brillo la cruza */
@media (hover: hover) {
  .card { transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .35s; }
  .card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(17,17,17,.12); border-color: rgba(227,27,35,.25); }
  .card-media img { transition: transform .6s var(--ease-out); }
  .card:hover .card-media img { transform: scale(1.09); }
  .card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  }
  .card:hover .card-media::after { transform: translateX(130%) skewX(-18deg); transition: transform .8s ease; }
  .card-title { transition: color .2s; }
  .card:hover .card-title { color: var(--red); }
  .chip, .sidebar li button { transition: background .2s, color .2s, transform .2s, padding-left .2s; }
  .chip:hover { transform: translateY(-2px); }
  .sidebar li button:hover { padding-left: 24px; }
  .footer-links a { transition: color .2s, transform .2s; display: inline-block; }
  .footer-links a:hover { transform: translateY(-2px); }
}
/* tarjetas con inclinación 3D y reflejo que sigue al mouse */
@media (hover: hover) and (pointer: fine) {
  .card { position: relative; }
  .card::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0;
    background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.4), transparent 45%);
    transition: opacity .3s;
  }
  .card.tilting {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px);
    transition: transform .12s linear, box-shadow .35s var(--ease-out), border-color .35s;
  }
  .card.tilting::after { opacity: 1; }
  .pm-zoom { cursor: zoom-in; }
  .pm-zoom.zooming img { transform: scale(1.9); }
}
.btn { transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.btn.magnetic { transition: translate .35s var(--ease-out), background .2s, color .2s, transform .15s, box-shadow .2s; }
.btn-add:hover, .btn-primary:hover { box-shadow: 0 8px 18px rgba(227,27,35,.3); }
.cart-btn.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.15) rotate(-4deg); } 70% { transform: scale(.96); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal:not(.in) { opacity: 1; }
  .preloader { transition: opacity .3s; }
  .preloader.done { transform: none; opacity: 0; }
}

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-logo { height: 36px; width: auto; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.copy { margin: 0; color: var(--muted); font-size: 13px; }
.admin-link { color: var(--muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--black); color: #fff;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 70; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .toast { bottom: 28px; } }

:focus-visible { outline: 3px solid rgba(227,27,35,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
a.btn { text-decoration: none; }
