:root {
  --ink: #16121f;
  --paper: #fff8e7;
  --card: #ffffff;
  --yellow: #ffd23f;
  --red: #ee4035;
  --blue: #2b7de9;
  --green: #3bb273;
  --purple: #7b3fe4;
  --pink: #ff5fa2;
  --orange: #ff8c1a;
  --wa: #25d366;
  --muted: #5d5670;
  --radius: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --border: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
@media (max-width: 1080px) {
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) { html { scroll-padding-top: 120px; } }
body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(22, 18, 31, .07) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Bungee", "Rubik", sans-serif; font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pop { color: var(--purple); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--red); margin: 0 0 .6rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .8rem 1.3rem; border: var(--border); border-radius: 999px;
  font: 700 1rem "Rubik", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
  background: var(--card); color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--yellow); }
.btn-ghost { background: var(--card); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn-block { width: 100%; }
.btn-auto { width: auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* ---------- Promo + nav ---------- */
.promo-bar {
  background: var(--red); color: #fff; font-weight: 500; font-size: .92rem;
  padding: .5rem 0; border-bottom: var(--border); overflow: hidden;
}
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: var(--paper); border-bottom: var(--border);
}
.logo { display: block; line-height: 0; }
.logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; }
.nav-links a:hover { color: var(--purple); }
.cart-btn {
  border: var(--border); background: var(--yellow); border-radius: 999px;
  padding: .5rem 1rem; font: 700 1rem "Rubik", sans-serif; cursor: pointer;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .4rem;
}
.badge {
  background: var(--red); color: #fff; border-radius: 999px; min-width: 1.5rem;
  padding: 0 .4rem; font-size: .85rem; line-height: 1.5rem; text-align: center;
}

/* ---------- Banner ---------- */
.banner {
  position: relative; max-width: 1200px; margin: clamp(1rem, 3vw, 2rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.banner picture img {
  width: 100%; height: auto; border: var(--border); border-radius: calc(var(--radius) + 6px);
  box-shadow: 10px 10px 0 var(--ink);
  max-height: min(54vh, 520px); object-fit: cover; object-position: 50% 40%;
}
.banner .banner-cta {
  position: absolute; left: 50%; bottom: 0; translate: -50% 50%;
  font-size: 1.1rem; padding: .9rem 1.8rem; white-space: nowrap;
}
.banner-cta:hover { transform: translate(-2px, -2px); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1200px; margin: 0 auto;
}
.hero .hero-title { font-size: clamp(2.1rem, 5.2vw, 3.8rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li {
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
  padding: .3rem .8rem; font-weight: 500; font-size: .9rem;
}
.hero { overflow: hidden; }
.hero-stage { position: relative; display: grid; place-items: end center; min-height: 440px; }
.burst {
  position: absolute; left: 50%; top: 46%; width: 108%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: var(--border); box-shadow: 10px 10px 0 var(--ink);
  background:
    radial-gradient(circle, rgba(255, 210, 63, .0) 0 30%, rgba(123, 63, 228, .25) 70%),
    repeating-conic-gradient(from 0deg, var(--yellow) 0 10deg, #ffe27a 10deg 20deg);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.lineup {
  position: relative; width: 112%; max-width: none; margin-bottom: -6px;
  filter: drop-shadow(0 18px 22px rgba(22, 18, 31, .35));
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.chip {
  position: absolute; z-index: 2; background: var(--card); border: var(--border); border-radius: 999px;
  padding: .35rem .9rem; font-weight: 900; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.chip-a { right: -4%; top: 12%; transform: rotate(6deg); background: var(--blue); color: #fff; }
.chip-b { left: -2%; bottom: 14%; transform: rotate(-5deg); background: var(--pink); color: #fff; }
.sticker {
  position: absolute; top: 0; left: 2%; z-index: 2;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--red); color: #fff; border: var(--border);
  display: grid; place-items: center; font: 1.5rem "Bungee", sans-serif;
  transform: rotate(-12deg); box-shadow: var(--shadow-sm);
}

/* ---------- Tienda ---------- */
.shop, .faq { max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem); }
.section-head { text-align: center; margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); margin: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  border: 2px solid var(--ink); background: var(--card); border-radius: 999px;
  padding: .4rem .9rem; font: 500 .92rem "Rubik", sans-serif; cursor: pointer;
}
.filters button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--card); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card-img { position: relative; padding: 0; border: 0; border-bottom: var(--border); cursor: zoom-in; background: #eee; }
.card-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.tag {
  position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff;
  font: .95rem "Bungee", sans-serif; padding: .2rem .6rem; border: 2px solid var(--ink); border-radius: 8px;
  transform: rotate(4deg);
}
.tag.inline { position: static; display: inline-block; margin-left: .4rem; font-size: .8rem; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin: 0; }
.line { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0; }
.price { margin: .2rem 0 .8rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price strong { font-size: 1.45rem; }
.price s { color: var(--muted); }
.card-actions { margin-top: auto; display: grid; gap: .45rem; }
.btn-sm { padding: .5rem .8rem; font-size: .88rem; box-shadow: 2px 2px 0 var(--ink); }
.show-sm { display: none; }
.media-badge {
  position: absolute; left: 8px; bottom: 8px; background: rgba(22, 18, 31, .82); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}
.grid-more { text-align: center; margin-top: 1.8rem; }

/* ---------- Videos ---------- */
.videos { max-width: 1200px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.vgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
.vcard {
  background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
}
.vmedia { position: relative; background: #000; border-bottom: var(--border); }
.vmedia video { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; display: block; }
/* videos como imágenes: sin controles ni botón de play del sistema */
.vmedia video, .mm-main video { pointer-events: none; }
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.vbody { padding: .7rem .75rem .85rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.vbody h3 { font-size: 1rem; margin: 0; }
.vbody .price { margin: .1rem 0 .55rem; }
.vbody .price strong { font-size: 1.15rem; }
.vbody .btn { font-size: .85rem; padding: .55rem .6rem; }

/* ---------- A medida: portada principal ---------- */
.custom {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 210, 63, .22), transparent 42%),
    radial-gradient(rgba(255, 255, 255, .08) 1.5px, transparent 1.5px) 0 0 / 18px 18px,
    var(--purple);
  color: #fff; border-block: var(--border);
}
.custom .pop { color: var(--yellow); }
.custom .kicker { color: var(--yellow); }
.custom-hero {
  max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.custom-hero .custom-title { font-size: clamp(2rem, 3.6vw, 3.1rem); text-shadow: 3px 3px 0 var(--ink); margin-bottom: .4em; }
.custom-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); opacity: .95; max-width: 34rem; margin: 0 0 1.5rem; }
.custom-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-big { padding: .95rem 1.5rem; font-size: 1.05rem; }
.custom .btn-wa { width: auto; }
.trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.trust li {
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 999px; padding: .3rem .8rem;
  font-weight: 700; font-size: .88rem; background: rgba(22, 18, 31, .18);
}

/* Antes -> despues destacado */
.showcase {
  display: grid; grid-template-columns: minmax(0, .9fr) auto minmax(0, 1.1fr); align-items: center; gap: .5rem;
  text-decoration: none; color: inherit;
}
.showcase figure { margin: 0; position: relative; display: grid; justify-items: center; }
.showcase img { border: var(--border); width: 100%; }
.sc-before img {
  aspect-ratio: 821/1200; object-fit: cover; border-radius: 12px; background: #f1f2f6;
  transform: rotate(-4deg); box-shadow: 6px 6px 0 var(--ink);
}
.sc-after img {
  aspect-ratio: 3/4; object-fit: cover; border-radius: 16px;
  transform: rotate(2.5deg); box-shadow: 10px 10px 0 var(--yellow); transition: transform .2s;
}
.showcase:hover .sc-after img { transform: rotate(0deg) scale(1.02); }
.showcase figcaption {
  margin-top: -.9rem; position: relative; z-index: 1; font-weight: 900; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; padding: .35rem .8rem; border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap;
}
.sc-before figcaption { background: var(--ink); color: var(--yellow); }
.sc-after figcaption { background: var(--green); color: #fff; }
.sc-arrow {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: var(--yellow); color: var(--ink); border: var(--border); box-shadow: var(--shadow-sm);
  font-size: 1.6rem; font-weight: 900; margin-inline: -.6rem;
}

/* ---------- Casos reales ---------- */
.custom-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.cases-title { text-align: center; font-size: clamp(1.4rem, 3vw, 2.1rem); max-width: 820px; margin: 0 auto clamp(2rem, 4vw, 3rem); }

.cases { display: grid; gap: clamp(2.2rem, 4vw, 3rem); --h: clamp(300px, 34vw, 430px); }
.case {
  position: relative; display: grid; grid-template-columns: auto auto auto; justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem); align-items: center; background: var(--paper); color: var(--ink);
  border: var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: 10px 10px 0 var(--yellow);
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 1.8rem);
}
.case-num {
  position: absolute; top: -18px; left: 22px; background: var(--yellow); border: var(--border); border-radius: 10px;
  padding: .15rem .8rem; font: 1rem "Bungee", sans-serif; box-shadow: var(--shadow-sm); transform: rotate(-3deg);
}
.case figure { margin: 0; display: grid; gap: .6rem; justify-items: center; min-width: 0; }
.case figcaption { font-weight: 500; color: var(--muted); text-align: center; font-size: .92rem; max-width: 30ch; }
.case-label {
  justify-self: start; background: var(--ink); color: var(--yellow); font-weight: 900; font-size: .75rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px;
}
.case-label.result { background: var(--green); color: #fff; }
.case-ref img {
  cursor: zoom-in;
  height: var(--h); width: auto; max-width: 100%; object-fit: contain; background: var(--ref-bg, #fff);
  border: var(--border); border-radius: 12px; transform: rotate(-2deg); box-shadow: var(--shadow-sm);
}
.case-arrow {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); border: var(--border); box-shadow: var(--shadow-sm); font-size: 1.6rem; font-weight: 900;
}
.case-main { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.case-main img {
  height: var(--h); width: auto; aspect-ratio: 3/4; object-fit: cover; border: var(--border); border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink); transition: transform .15s;
}
.case-main:hover img { transform: scale(1.015); }
.case-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.case-thumbs button {
  padding: 0; width: 54px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden;
  cursor: pointer; opacity: .55; background: #fff; transition: opacity .15s, transform .15s;
}
.case-thumbs button:hover { opacity: .85; }
.case-thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--yellow); transform: translateY(-2px); }
.case-thumbs img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* Caso con referencia apaisada: referencia arriba, figura abajo */
.case-wide { grid-template-columns: minmax(0, 1.7fr) auto auto; }
.case-wide .case-ref { width: 100%; }
.case-wide .case-ref img { height: auto; width: 100%; transform: rotate(-1deg); }

.custom-bottom {
  margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  align-items: center; justify-content: center;
}
.steps { padding-left: 1.2rem; margin: 0; font-size: 1.05rem; }
.steps li { margin-bottom: .4rem; }

/* Teaser en la portada */
.custom-teaser {
  display: flex; align-items: center; gap: .55rem; margin-top: 1.3rem; max-width: 34rem;
  background: var(--card); border: var(--border); border-radius: 14px; padding: .55rem .9rem .55rem .6rem;
  box-shadow: var(--shadow-sm); text-decoration: none; font-size: .92rem; line-height: 1.35;
  transition: transform .12s, box-shadow .12s;
}
.custom-teaser:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.custom-teaser img { flex: none; width: 42px; height: 56px; object-fit: cover; border: 2px solid var(--ink); border-radius: 6px; }
.teaser-arrow { flex: none; font-weight: 900; color: var(--purple); }

/* Lightbox */
.lightbox {
  border: var(--border); border-radius: var(--radius); padding: 0; background: #000;
  max-width: min(92vw, 900px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(22, 18, 31, .85); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; object-fit: contain; }

/* ---------- Historia ---------- */
.story {
  max-width: 1100px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.story img { border: var(--border); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--red); aspect-ratio: 4/5; object-fit: cover; }
.story p { color: var(--muted); font-size: 1.05rem; }
blockquote {
  margin: 1.2rem 0 0; padding: .8rem 1rem; background: var(--yellow); border: var(--border);
  border-radius: 10px; font-weight: 500; box-shadow: var(--shadow-sm);
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq h2 { text-align: center; }
details {
  background: var(--card); border: var(--border); border-radius: 12px; margin-bottom: .8rem;
  box-shadow: var(--shadow-sm); padding: .2rem 1.1rem;
}
summary { cursor: pointer; font-weight: 700; padding: .8rem 0; }
details p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #eee; text-align: center; padding: 2.5rem 1rem; }
.footer a { color: var(--yellow); }
.footer-logo { height: 80px; width: auto; margin: 0 auto .6rem; }
.small { font-size: .8rem; opacity: .6; }

/* ---------- Modal ---------- */
.modal {
  border: var(--border); border-radius: var(--radius); padding: 0; max-width: 880px; width: calc(100% - 2rem);
  box-shadow: 10px 10px 0 var(--ink); background: var(--card); color: var(--ink);
}
.modal::backdrop { background: rgba(22, 18, 31, .6); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal { max-height: 92vh; overflow: auto; }
.modal-media { border-right: var(--border); background: #111; display: flex; flex-direction: column; min-width: 0; }
.mm-main { flex: 1; display: grid; place-items: center; min-height: 0; }
.mm-main img, .mm-main video { width: 100%; max-height: 74vh; aspect-ratio: 4/5; object-fit: cover; display: block; }
.mm-main video { object-fit: contain; background: #000; }
.mm-thumbs { display: flex; gap: .45rem; padding: .55rem; background: var(--paper); border-top: var(--border); overflow-x: auto; }
.mm-thumbs button {
  position: relative; flex: none; width: 54px; padding: 0; border: 2px solid var(--ink); border-radius: 8px;
  overflow: hidden; opacity: .6; cursor: pointer; background: #fff;
}
.mm-thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--yellow); }
.mm-thumbs img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.mm-thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: rgba(0, 0, 0, .3); }
.modal-info { padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.modal-info h3 { font-size: 1.8rem; margin: 0; }
.modal-info p { margin: 0; }
.price.big strong { font-size: 1.8rem; }
.specs { list-style: none; padding: 0; margin: .3rem 0 .6rem; display: grid; gap: .3rem; font-weight: 500; }
.close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: var(--border); background: var(--yellow);
  font-size: 1rem; font-weight: 700; cursor: pointer;
}

/* ---------- Drawer carrito ---------- */
.overlay { position: fixed; inset: 0; background: rgba(22, 18, 31, .55); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 50;
  background: var(--paper); border-left: var(--border);
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s ease;
  overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; padding: 1rem 1.2rem; border-bottom: var(--border); position: relative; }
.drawer-head h3 { margin: 0; font-size: 1.4rem; }
.drawer-head .close { top: 50%; transform: translateY(-50%); right: 1rem; }
.drawer-head { position: sticky; top: 0; background: var(--paper); z-index: 1; }
.drawer-items { flex: 1 0 auto; padding: 1rem 1.2rem; display: grid; gap: .8rem; align-content: start; }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: .8rem; align-items: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: .6rem;
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.ci-name { font-weight: 700; margin: 0; }
.ci-price { margin: 0; color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.qty button {
  width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow);
  font-weight: 700; cursor: pointer;
}
.remove { border: 0; background: none; font-size: 1rem; cursor: pointer; color: var(--muted); align-self: start; }
.checkout { border-top: var(--border); padding: 1rem 1.2rem 1.3rem; display: grid; gap: .6rem; background: var(--card); }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.totals strong { font-size: 1.5rem; }
.note { margin: 0; font-size: .82rem; color: var(--muted); }
.checkout label { display: grid; gap: .2rem; font-weight: 500; font-size: .88rem; }
.checkout input, .checkout select, .checkout textarea {
  font: inherit; font-weight: 400; padding: .55rem .7rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 150%);
  background: var(--ink); color: var(--yellow); padding: .7rem 1.2rem; border-radius: 999px;
  font-weight: 700; z-index: 60; transition: transform .25s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }


/* Secciones de abajo: el navegador las dibuja recién cuando se acercan */
.story, .faq, .footer { content-visibility: auto; contain-intrinsic-size: auto 700px; }

button, a { touch-action: manipulation; }


/* =========================================================
   EFECTOS
   ========================================================= */

/* Barra de progreso de lectura */
.progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 70;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink), var(--purple), var(--blue));
}

/* Cinta de promociones */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.mq-group { display: flex; gap: 3rem; padding-right: 3rem; }
.mq-group span { flex: none; }
.promo-bar:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Aparecer al bajar */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Brillo al pasar por los botones */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }

/* Tarjetas: zoom suave de la foto */
.card-img img, .vmedia video { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img { overflow: hidden; }

/* Portada: figuras que flotan y sellos que se mueven */
.lineup { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.sticker { animation: wobble 3.2s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: 8deg; } }
.chip-a { animation: float 4s ease-in-out infinite .6s; }
.chip-b { animation: float 4.6s ease-in-out infinite 1.2s; }
.sc-arrow, .case-arrow { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 5px 0; } }
.case-wide .case-arrow { animation-name: nudge-down; }
@keyframes nudge-down { 50% { translate: 0 5px; } }

/* Títulos con subrayado que se dibuja */
.section-head h2, .faq h2 { position: relative; display: table; margin-inline: auto; }
.section-head h2::after, .faq h2::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -.18em; height: .22em; border-radius: 99px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .8s .25s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-in h2::after, .faq h2.is-in::after, .no-js .section-head h2::after { transform: scaleX(1); }

/* Carrito: el contador salta al agregar */
.badge.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* Instagram en el encabezado */
.ig-btn {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 700;
  padding: .45rem .8rem; border: var(--border); border-radius: 999px; color: #fff;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.ig-btn:hover { transform: translate(-2px, -2px) rotate(-2deg); }

/* Botones flotantes */
.fabs {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
}
.fab {
  position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  color: #fff; border: var(--border); box-shadow: var(--shadow-sm); text-decoration: none;
  animation: fab-in .6s cubic-bezier(.3, 1.5, .5, 1) both; transition: transform .15s;
}
.fab:hover { transform: scale(1.08); }
.fab-wa { background: var(--wa); animation-delay: .4s; }
.fab-ig { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); width: 52px; height: 52px; animation-delay: .2s; }
.fab-wa::before {  /* onda que llama la atención */
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--wa);
  animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite 1.5s; z-index: -1;
}
@keyframes ping { 75%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fab-in { from { opacity: 0; transform: translateY(30px) scale(.6); } }
.fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .88rem; padding: .4rem .8rem; border-radius: 999px; border: 2px solid #fff; box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transform: translateX(8px); transition: opacity .2s, transform .2s;
}
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; transform: none; }
.fab-wa .fab-label { opacity: 1; transform: none; animation: label-hide 1s ease 6s forwards; } /* se muestra al entrar y luego se oculta */
.fab-wa:hover .fab-label { animation: none; opacity: 1; }
@keyframes label-hide { to { opacity: 0; transform: translateX(8px); } }

/* Pie de página */
.footer-social { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin: 1rem 0 1.2rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px;
  font-weight: 700; color: #fff !important; text-decoration: none; border: 2px solid #fff; transition: transform .15s;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn.ig { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.social-btn.wa { background: var(--wa); }
.credit {
  margin: 1.8rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 520px;
  display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa3b5;
}
.credit a { display: inline-flex; border-radius: 8px; transition: transform .2s, filter .2s; }
.credit a:hover { transform: translateY(-2px); filter: drop-shadow(0 0 10px rgba(53, 224, 210, .45)); }
.aq-logo { height: 54px; width: auto; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; row-gap: .5rem; padding-block: .6rem; }
  .cart-btn { margin-left: auto; }
  .ig-btn { margin-left: auto; }
  .ig-btn + .cart-btn { margin-left: 0; }
  .nav-links {
    order: 3; width: 100%; margin: 0; gap: .5rem;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: none; font-size: .88rem; padding: .3rem .8rem;
    border: 2px solid var(--ink); border-radius: 999px; background: var(--card);
  }
  .hero, .story { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { max-width: 460px; width: 100%; margin: 1rem auto 0; min-height: 0; }
  .lineup { width: 100%; }
  .burst { width: 94%; }
  .story img { width: 100%; max-width: 420px; margin: 0 auto; }
  .custom-hero { grid-template-columns: minmax(0, 1fr); }
  .showcase { max-width: 440px; width: 100%; margin: .2rem auto .4rem; order: -1; }
  .sc-arrow { width: 46px; height: 46px; font-size: 1.2rem; }
  .showcase figcaption { font-size: .66rem; padding: .3rem .55rem; }
  .custom-cta .btn { flex: 1 1 100%; }
  .case { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--yellow); }
  .case-ref img { height: auto; max-height: 300px; width: auto; }
  .case-arrow { transform: rotate(90deg); margin: -.3rem auto; width: 48px; height: 48px; font-size: 1.3rem; }
  .case-main { width: 100%; }
  .case-main img { height: auto; width: 100%; }
  .case-wide .case-ref img { max-height: none; width: 100%; }
  .case-wide { justify-items: center; }
  .case-wide .case-arrow { transform: rotate(90deg); margin: -.4rem auto; }
  .custom-bottom { flex-direction: column; align-items: stretch; }
  .custom-bottom .btn { width: 100%; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { border-right: 0; border-bottom: var(--border); }
  .mm-main img, .mm-main video { max-height: 50vh; }
}
@media (max-width: 560px) {
  /* Header más compacto; el menú de secciones se esconde al bajar */
  .nav { padding: .5rem 1rem; row-gap: .4rem; }
  .logo img { height: 36px; }
  .cart-btn { padding: .4rem .8rem; }
  .nav-links { transition: max-height .25s ease, opacity .2s; max-height: 48px; }
  .nav-links a { padding: .45rem .85rem; }
  body.scrolling-down .nav-links { max-height: 0; opacity: 0; overflow: hidden; }
  .promo-bar { font-size: .82rem; padding: .42rem 0; }

  /* Casos: antes y después lado a lado, más corto y fácil de comparar */
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem .8rem; align-items: start; padding: 1.6rem .8rem 1rem; }
  .case-arrow { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 40px; height: 40px; font-size: 1.1rem; margin: 0; z-index: 2; }
  .case-label { font-size: .6rem; padding: .25rem .5rem; letter-spacing: .03em; justify-self: center; }
  .case-ref img { width: 100%; max-height: none; aspect-ratio: 3/4; object-fit: contain; transform: rotate(-1.5deg); }
  .case-main img { aspect-ratio: 3/4; }
  .case figcaption { font-size: .76rem; line-height: 1.35; }
  .case-thumbs { gap: .3rem; flex-wrap: nowrap; }
  .case-thumbs button { width: 33px; border-radius: 6px; }
  .story img { max-width: 300px; }
  .case-wide { grid-template-columns: minmax(0, 1fr); }
  .case-wide .case-ref img { aspect-ratio: auto; }
  .case-wide .case-arrow { position: static; transform: rotate(90deg); margin: -.4rem auto; }
  .case-wide .case-result { width: min(100%, 280px); }
  .cases-title { font-size: 1.3rem; }

  /* Portada: figura principal un poco más chica */
  .hero-stage { max-width: 360px; }
  .hero-badges li { font-size: .82rem; }

  /* Dedos: botones más grandes */
  .filters button { padding: .55rem 1rem; }
  .qty button { width: 36px; height: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card { box-shadow: var(--shadow-sm); border-width: 2px; }
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .card-img { border-bottom-width: 2px; }
  .card-body { padding: .6rem .65rem .75rem; gap: .15rem; }
  .card-body h3 { font-size: .98rem; }
  .line { font-size: .66rem; letter-spacing: .03em; }
  .price { margin: .1rem 0 .5rem; gap: .3rem; }
  .price strong { font-size: 1.1rem; }
  .price s { font-size: .8rem; }
  .card-body .btn { padding: .72rem .5rem; font-size: .85rem; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
  .tag { font-size: .75rem; top: 8px; right: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: -1rem; padding: 0 1rem .3rem; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .ig-btn span { display: none; }
  .ig-btn { padding: .45rem; margin-left: auto; }
  .ig-btn + .cart-btn { margin-left: 0; }
  .fabs { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: .6rem; }
  .fab-wa { width: 58px; height: 58px; }
  .fab-ig { width: 48px; height: 48px; }
  .fab-label { display: none; }

  .card-actions { gap: .35rem; }
  .btn-sm { padding: .55rem .5rem; font-size: .82rem; }
  .media-badge { font-size: .64rem; left: 6px; bottom: 6px; }
  /* Videos en fila deslizable: no alarga la página */
  .vgrid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem;
    margin-inline: -1rem; padding: .2rem 1rem 1rem; scrollbar-width: none;
  }
  .vgrid::-webkit-scrollbar { display: none; }
  .vcard { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (max-width: 420px) {
  .logo img { height: 38px; }
  .banner picture img { box-shadow: 6px 6px 0 var(--ink); border-radius: var(--radius); }
  .banner-cta { font-size: .95rem; padding: .7rem 1.3rem; }
  .chip { font-size: .8rem; }
  .cart-label { display: none; }
  .sticker { width: 72px; height: 72px; font-size: 1.15rem; left: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mq-group[aria-hidden] { display: none; }
  .marquee { text-align: center; white-space: normal; }
  .marquee-track { width: auto; }
}
