/* Compra Divertida — Pop Ink design system
   Tokens + componentes extraídos del prototipo (Prototipo Compra Divertida.dc.html) */


:root {
  --ink: #171238;
  --ink-2: #2C2554;
  --magenta: #FF2E88;
  --yellow: #FFC93C;
  --bg: #F4F2F9;
  --card: #FFFFFF;
  --muted: #5E5878;
  --muted-2: #8F88B8;
  --line: #C9C4E3;
  --line-soft: #D6D2E4;
  --ph-a: #EDE9F7;
  --ph-b: #F7F5FC;
  --radius-card: 18px;
  --radius-pill: 999px;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; box-sizing: border-box; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.08;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-magenta { background: var(--magenta); color: #FFF; }
.btn-ink { background: var(--ink); color: #FFF; }
.btn-ink .dot, .btn-wa .dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; }
.btn-wa { background: var(--ink); color: #FFF; }
.btn-outline-ink { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-yellow { background: transparent; border-color: var(--yellow); color: var(--yellow); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- badges / kickers / chips ---------- */
.kicker {
  align-self: flex-start; display: inline-block; font-weight: 700; font-size: 13px;
  padding: 5px 14px; border-radius: var(--radius-pill);
}
.kicker-magenta { background: var(--magenta); color: #FFF; }
.kicker-yellow { background: var(--yellow); color: var(--ink); }
.kicker-ink { background: var(--ink); color: var(--yellow); }
.kicker-ink-dark { background: var(--ink-2); color: var(--yellow); }

.cat-chip {
  align-self: flex-start; background: var(--bg); color: var(--muted); font-weight: 600; font-size: 11px;
  padding: 3px 10px; border-radius: var(--radius-pill); display: inline-block;
}

/* ---------- placeholder de foto (mismo patrón para todo el sitio) ---------- */
.ph {
  background: repeating-linear-gradient(45deg, var(--ph-a) 0 12px, var(--ph-b) 12px 24px);
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
}
.ph span { font-family: monospace; font-size: 11px; color: var(--muted-2); text-align: center; padding: 0 8px; }

/* ---------- nav ---------- */
.cd-nav {
  background: #FFF; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px; border-bottom: 3px solid var(--ink); position: relative; z-index: 20;
}
@media (max-width: 720px) { .cd-nav { padding: 14px 20px; flex-wrap: wrap; gap: 12px; } }
.cd-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cd-brand-word { display: flex; flex-direction: column; line-height: .95; }
.cd-brand-word span { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 16px; }
.cd-brand-word .c1 { color: var(--ink); }
.cd-brand-word .c2 { color: var(--magenta); }
.cd-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.cd-nav-links a { font-weight: 600; font-size: 15px; color: var(--ink); }
.cd-nav-right { display: flex; align-items: center; gap: 16px; }
.cd-nav-canasta {
  display: flex; align-items: center; gap: 8px; background: #FFF; border: 2px solid var(--magenta);
  color: var(--magenta); font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: var(--radius-pill);
}
@media (max-width: 900px) { .cd-nav-links { display: none; } }

/* ---------- logo (caja sonriente) ---------- */
.cd-logo-icon {
  --cd-logo-size: 38px;
  width: var(--cd-logo-size); height: var(--cd-logo-size);
  background: var(--magenta); border-radius: 27%; position: relative; transform: rotate(-6deg); flex-shrink: 0;
}
.cd-logo-eye {
  position: absolute; top: 29%; width: 13%; height: 21%; background: var(--ink); border-radius: 40%;
}
.cd-logo-eye-l { left: 21%; }
.cd-logo-eye-r { right: 21%; }
.cd-logo-mouth {
  position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%);
  width: 45%; height: 24%; background: var(--ink); border-radius: 0 0 50% 50%;
}

/* ---------- hero ---------- */
.hero { background: var(--ink); position: relative; overflow: hidden; }
.hero-inner {
  padding: 72px 48px 80px; display: flex; align-items: center; gap: 56px; position: relative; z-index: 1;
}
@media (max-width: 900px) { .hero-inner { flex-direction: column; padding: 48px 20px 56px; text-align: center; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.hero-title { display: flex; flex-direction: column; line-height: 1.02; }
.hero-title span { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 56px; letter-spacing: -1px; }
@media (max-width: 720px) { .hero-title span { font-size: 34px; } }
.hero-title .l1 { color: #FFF; }
.hero-title .l2 { color: var(--magenta); }
.hero-title .l3 { color: var(--yellow); }
.hero-copy p { font-size: 19px; line-height: 1.55; color: #C9C4E3; max-width: 520px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-ctas { justify-content: center; } }
.hero-badges { display: flex; align-items: center; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-badges { justify-content: center; } }
.hero-badges span { font-size: 14px; color: var(--muted-2); font-weight: 500; }
.hero-mascot-wrap { flex-shrink: 0; width: 270px; height: 260px; display: flex; align-items: center; justify-content: center; }
.hero-amb-dot { position: absolute; border-radius: 50%; }
.hero-amb-dot-1 { top: 40px; right: 120px; width: 14px; height: 14px; background: var(--yellow); animation: cdFloat 4.5s ease-in-out infinite; }
.hero-amb-dot-2 { top: 110px; right: 60px; width: 10px; height: 10px; background: var(--magenta); animation: cdFloat2 5.5s ease-in-out infinite; }
@media (max-width: 900px) { .hero-amb-dot { display: none; } }

/* ---------- mascota (carita animada) ---------- */
@keyframes cdFloat { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
@keyframes cdFloat2 { 0% { transform: translateY(0) translateX(0); } 50% { transform: translateY(6px) translateX(3px); } 100% { transform: translateY(0) translateX(0); } }

.cd-carita {
  width: 230px; height: 230px; background: var(--magenta); border-radius: 54px; position: relative;
  transform: rotate(-14deg) scale(.4); opacity: 0;
  transition: transform .9s cubic-bezier(.34,1.8,.5,1), opacity .5s ease;
}
.cd-carita.in { transform: rotate(-6deg) scale(1); opacity: 1; }

.cd-eye {
  position: absolute; top: 68px; width: 25px; height: 40px; background: var(--ink); border-radius: 13px;
  transform-origin: center 70%; transition: transform .12s ease, height .25s ease, top .25s ease;
}
.cd-eye-l { left: 52px; }
.cd-eye-r { right: 52px; }

.cd-mouth { position: absolute; left: 50%; transform: translateX(-50%); background: var(--ink); }
.cd-mouth-smile { bottom: 44px; width: 100px; height: 50px; border-radius: 0 0 50px 50px; }
.cd-mouth-sorpresa { bottom: 40px; width: 52px; height: 56px; border-radius: 50%; }
.cd-mouth-risa { bottom: 34px; width: 130px; height: 66px; border-radius: 0 0 66px 66px; }
.cd-mouth-risa span {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 14px; background: #FFF; border-radius: 0 0 10px 10px;
}

.cd-dot {
  position: absolute; opacity: 0;
  transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
}
.cd-dot.in { opacity: 1; transform: translate(0,0) scale(1) !important; }
.cd-dot-core { display: block; width: 100%; height: 100%; border-radius: 50%; }
.cd-dot-1 { top: -20px; right: -16px; width: 38px; height: 38px; transform: translate(120px,-140px) scale(0); transition-delay: 0s; }
.cd-dot-1 .cd-dot-core { background: var(--yellow); }
.cd-dot-1.in .cd-dot-core { animation: cdFloat 3.8s ease-in-out infinite; }
.cd-dot-2 { bottom: -10px; left: -22px; width: 20px; height: 20px; transform: translate(-140px,100px) scale(0); transition-delay: .15s; }
.cd-dot-2 .cd-dot-core { background: var(--yellow); }
.cd-dot-2.in .cd-dot-core { animation: cdFloat2 4.6s ease-in-out infinite; }
.cd-dot-3 { top: 30px; left: -30px; width: 12px; height: 12px; transform: translate(-160px,-60px) scale(0); transition-delay: .3s; }
.cd-dot-3 .cd-dot-core { background: #FFF; }
.cd-dot-3.in .cd-dot-core { animation: cdFloat 5.2s ease-in-out infinite; }

/* ---------- secciones ---------- */
.sec { padding: 64px 48px; max-width: 1120px; margin: 0 auto; box-sizing: border-box; }
@media (max-width: 720px) { .sec { padding: 48px 20px; } }
.sec-band { padding: 64px 48px; }
@media (max-width: 720px) { .sec-band { padding: 48px 20px; } }
.sec-band .wrap { padding: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 20px; flex-wrap: wrap; }
.sec-head-copy { display: flex; flex-direction: column; gap: 10px; }
.sec-head h2 { font-size: 34px; margin: 0; }
.sec-more { font-weight: 700; font-size: 15px; border-bottom: 2px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.sec-more.on-magenta { color: var(--magenta); }
.sec-more.on-ink { color: var(--ink); }

.sec-cta { display: flex; justify-content: center; margin-top: 36px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- cards de producto ---------- */
.card {
  background: var(--card); border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(23,18,56,.16); }
.card-photo { height: 150px; position: relative; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-photo img { transform: scale(1.05); }
.card.is-sold:hover { transform: none; box-shadow: none; }
.card-tag {
  position: absolute; top: 10px; left: 10px; background: var(--magenta); color: #FFF; font-weight: 700;
  font-size: 12px; padding: 3px 10px; border-radius: var(--radius-pill);
}
.card-tag-ink { background: var(--ink); left: auto; right: 10px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.35; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-was { font-size: 12px; color: var(--muted-2); text-decoration: line-through; }
.price-now { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--ink); }
.price-unit { font-size: 12px; color: var(--muted); }
.sold-veil { position: absolute; inset: 0; background: rgba(23,18,56,.55); display: flex; align-items: center; justify-content: center; }
.sold-stamp { color: #FFF; font-weight: 700; font-size: 13px; letter-spacing: 1px; border: 2px solid #FFF; padding: 4px 12px; border-radius: 8px; }
.card.is-sold .card-photo { opacity: .85; }

/* ---------- oferta destacada ---------- */
.oferta-dest {
  display: grid; grid-template-columns: 1.1fr 1fr; background: #FFF; border: 2px solid var(--ink);
  border-radius: 24px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.oferta-dest:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(23,18,56,.2); }
@media (max-width: 720px) { .oferta-dest { grid-template-columns: 1fr; } }
.oferta-dest-photo { min-height: 300px; position: relative; overflow: hidden; }
.oferta-dest-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.oferta-dest-body { padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
@media (max-width: 720px) { .oferta-dest-body { padding: 28px 24px; } }
.oferta-date { font-family: monospace; font-size: 13px; color: var(--muted-2); }
.oferta-dest-body h3 { font-size: 26px; line-height: 1.15; }
.oferta-dest-ctas { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- teaser cómo comprar ---------- */
.teaser-como {
  background: var(--yellow); padding: 56px 48px;
}
.teaser-como .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
@media (max-width: 720px) { .teaser-como .wrap { flex-direction: column; text-align: center; } }
.teaser-como h2 { font-size: 30px; }
.teaser-como p { font-size: 16px; color: #4A4230; margin-top: 8px; }

/* ---------- catálogo: hero + búsqueda + chips ---------- */
.cat-hero { background: var(--ink); padding: 48px 48px 40px; }
@media (max-width: 720px) { .cat-hero { padding: 40px 20px 32px; } }
.cat-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.cat-hero h1 { color: #FFF; font-size: 42px; }
@media (max-width: 720px) { .cat-hero h1 { font-size: 30px; } }
.accent-yellow { color: var(--yellow); }
.cat-search { display: flex; gap: 12px; max-width: 640px; }
.cat-search input {
  flex: 1; background: #FFF; border: none; border-radius: var(--radius-pill); padding: 14px 24px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); outline: none; min-width: 0;
}
.cat-search input::placeholder { color: #9B95B8; }
.cat-search button {
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border: none; border-radius: var(--radius-pill); white-space: nowrap;
}
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-chip-nav {
  background: var(--ink-2); color: #C9C4E3; font-weight: 600; font-size: 13px;
  padding: 7px 16px; border-radius: var(--radius-pill); transition: background .15s ease, color .15s ease;
}
.cat-chip-nav:hover { background: #3a3268; color: #FFF; }
.cat-chip-nav.on { background: var(--magenta); color: #FFF; }

.cat-resultados { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.cat-resultados a { color: var(--magenta); font-weight: 600; }
.cat-noresults { font-size: 17px; color: var(--muted); text-align: center; padding: 48px 0; }

/* ---------- paginación ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager-link {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: #FFF; color: var(--ink); border: 1.5px solid var(--line-soft);
}
.pager-link:hover { border-color: var(--ink); }
.pager-link.on { background: var(--magenta); color: #FFF; border-color: var(--magenta); }

/* ---------- ficha de producto ---------- */
.ficha-wrap { padding: 32px 48px 64px; }
@media (max-width: 720px) { .ficha-wrap { padding: 24px 20px 48px; } }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line); }
.crumb-current { color: var(--ink); font-weight: 600; }

.ficha { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .ficha { grid-template-columns: 1fr; gap: 32px; } }
.ficha-gal { display: flex; flex-direction: column; gap: 14px; }
.gal-main {
  height: 420px; border-radius: 20px; border: 2px solid var(--ink); overflow: hidden; position: relative; background: var(--ph-b);
}
@media (max-width: 720px) { .gal-main { height: 300px; } }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gal-thumb { height: 80px; border-radius: 12px; border: 2px solid transparent; overflow: hidden; padding: 0; background: var(--ph-b); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.on { border-color: var(--magenta); }

.ficha-info { display: flex; flex-direction: column; gap: 18px; }
.ficha-info h1 { font-size: 32px; line-height: 1.1; }
@media (max-width: 720px) { .ficha-info h1 { font-size: 26px; } }
.cat-chip-outline { border: 1.5px solid var(--line); background: transparent; padding: 4px 14px; font-size: 12px; }
.ficha-lead { font-size: 15px; line-height: 1.6; color: var(--muted); }

.price-box { background: #FFF; border: 2px solid var(--ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pb-top { display: flex; align-items: center; gap: 12px; }
.price-was-lg { font-size: 16px; }
.disc-badge { background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 8px; }
.pb-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pb-now b { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 40px; color: var(--ink); }
.pb-now span { font-size: 15px; color: var(--muted); }
.pb-total { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 14px; padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
.pb-total > span { font-size: 14px; color: var(--muted); }
.pb-total-right { display: flex; align-items: center; gap: 16px; }
.pb-total-right b { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 22px; }
.pack-sel { display: flex; align-items: center; gap: 12px; background: #FFF; border-radius: var(--radius-pill); padding: 6px 14px; border: 1.5px solid var(--line); }
.pack-sel button { background: none; border: none; font-weight: 700; font-size: 16px; color: var(--magenta); line-height: 1; padding: 0 2px; }
.pack-sel [data-pack-n] { font-weight: 700; font-size: 15px; color: var(--ink); }
.pack-label { font-size: 14px; color: var(--muted); }

.ficha-ctas { display: flex; flex-direction: column; gap: 10px; }
.link-detalle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 800; color: var(--ink); text-decoration: none;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius-pill);
  padding: 9px 14px; margin-top: 8px; transition: background .15s ease, color .15s ease;
}
.link-detalle:hover { background: var(--magenta); color: #FFF; border-color: var(--magenta); }
.link-detalle svg { width: 14px; height: 14px; flex: none; }

.ficha-desc-sec { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 720px; }
.ficha-desc-sec h2 { font-size: 24px; margin-bottom: 14px; }
.ficha-desc-body { line-height: 1.7; color: var(--muted); font-size: 15px; }
.ficha-rel { margin-top: 56px; }
.ficha-rel h2 { font-size: 26px; margin-bottom: 24px; }

/* ---------- canasta ---------- */
.accent-magenta { color: var(--magenta); }
.cart-wrap { padding: 40px 48px 64px; }
@media (max-width: 720px) { .cart-wrap { padding: 28px 20px 48px; } }
.cart-head { margin-bottom: 32px; display: flex; flex-direction: column; gap: 8px; }
.cart-head h1 { font-size: 40px; }
@media (max-width: 720px) { .cart-head h1 { font-size: 28px; } }
.cart-head p { font-size: 16px; color: var(--muted); }

.cart-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  background: #FFF; border: 2px solid var(--ink); border-radius: 18px; padding: 16px 20px;
  display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 18px; align-items: center;
}
@media (max-width: 620px) { .cart-row { grid-template-columns: 64px 1fr; row-gap: 12px; } }
.cart-thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--ph-b); }
@media (max-width: 620px) { .cart-thumb { width: 64px; height: 64px; } }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-name { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.3; }
.cart-cat { align-self: flex-start; background: var(--bg); color: var(--muted); font-weight: 600; font-size: 11px; padding: 3px 10px; border-radius: var(--radius-pill); }
.cart-unit { font-size: 13px; color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--radius-pill); padding: 8px 16px; border: 1.5px solid var(--line); }
.cart-qty button { background: none; border: none; font-weight: 700; font-size: 18px; color: var(--magenta); line-height: 1; }
.cart-qty button:disabled { opacity: .35; cursor: not-allowed; }
.cart-qty span { font-weight: 700; font-size: 14px; color: var(--ink); min-width: 56px; text-align: center; }
.cart-sub { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 20px; color: var(--ink); text-align: right; min-width: 90px; }
.cart-remove { background: none; border: 1.5px solid var(--magenta); color: var(--magenta); font-weight: 600; font-size: 12px; padding: 6px 14px; border-radius: var(--radius-pill); }
@media (max-width: 620px) { .cart-sub, .cart-remove { grid-column: 2; justify-self: start; text-align: left; } }
.cart-seguir { align-self: flex-start; margin-top: 6px; }

.cart-summary { background: var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.cart-summary h2 { color: #FFF; font-size: 22px; }
.cs-line { display: flex; justify-content: space-between; font-size: 14px; color: #C9C4E3; }
.cs-line b { color: #FFF; }
.cs-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink-2); padding-top: 14px; }
.cs-total span { font-size: 15px; color: #C9C4E3; }
.cs-total b { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 30px; color: var(--yellow); }
.cs-note { font-size: 13px; line-height: 1.55; color: var(--muted-2); text-align: center; }
.cart-empty { background: #FFF; border: 2px dashed var(--line); border-radius: 18px; padding: 48px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cart-empty h3 { font-size: 24px; }
.cart-empty p { font-size: 15px; color: var(--muted); }

/* ---------- toast ---------- */
.cd-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #FFF; padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; z-index: 60;
  opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  box-shadow: 0 8px 26px rgba(23,18,56,.35);
}
.cd-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cd-toast a { color: var(--yellow); }
.cd-toast-sep { color: var(--muted-2); }
.btn.added { background: var(--ink); color: #FFF; }

/* ---------- extras remates / ofertas ---------- */
.cat-hero-sub { color: #C9C4E3; font-size: 16px; max-width: 620px; }
.oferta-date { font-family: monospace; font-size: 12px; color: var(--muted-2); }
.oferta-excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.ml-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--magenta); margin-top: 2px; }
.oferta-card .card-photo { height: 160px; }
.remate-urgencia { align-self: flex-start; background: #FFF6D9; color: #8A6D00; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: var(--radius-pill); }
.remate-urgencia.agotado { background: var(--bg); color: var(--muted); }
.price-box .pb-now span { font-size: 14px; }

/* ---------- artículo de oferta / blog ---------- */
.blog-wrap { padding: 32px 48px 64px; max-width: 760px; }
@media (max-width: 720px) { .blog-wrap { padding: 24px 20px 48px; } }
.blog-header { text-align: center; margin: 8px 0 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.blog-header h1 { font-size: clamp(26px, 4vw, 36px); }
.blog-date { font-family: monospace; font-size: 13px; color: var(--muted-2); }
.blog-hero { width: 100%; max-width: 460px; margin: 0 auto 24px; background: #FFF; border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; }
.blog-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-hero .ph { width: 100%; height: 100%; }
.blog-price { display: flex; gap: 10px; align-items: baseline; justify-content: center; background: var(--bg); padding: 16px 20px; border-radius: 14px; margin-bottom: 24px; }
.blog-body { line-height: 1.8; color: var(--muted); font-size: 15.5px; }
.blog-body p { margin-bottom: 16px; }
.blog-body h2, .blog-body h3 { color: var(--ink); margin: 22px 0 10px; }
.blog-body ul, .blog-body ol { margin: 0 0 16px 22px; }
.blog-body li { margin-bottom: 6px; }
.blog-cta-row { text-align: center; margin: 24px 0; }
.mayor-box { background: #FFF; border: 2px solid var(--ink); border-left: 6px solid var(--magenta); border-radius: 16px; padding: 24px; margin: 28px 0; }
.mayor-box h3 { font-size: 20px; margin-bottom: 8px; }
.mayor-box p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

/* ---------- búsquedas populares (footer) ---------- */
.foot-busquedas { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 4px; }
.foot-busquedas h4 { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 14px; color: var(--yellow); margin-bottom: 10px; }
.foot-busquedas-list { font-size: 13px; line-height: 2; color: #C9C4E3; }
.foot-busquedas-list a { color: #C9C4E3; }
.foot-busquedas-list a:hover { color: #FFF; }

/* ---------- cómo comprar ---------- */
.pasos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .pasos-grid { grid-template-columns: 1fr; } }
.paso { background: #FFF; border: 2px solid var(--ink); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.paso-n { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1; }
.paso-n-magenta { color: var(--magenta); }
.paso-n-yellow { color: var(--yellow); }
.paso h3 { font-size: 22px; }
.paso p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.como-banner { margin-top: 56px; background: var(--yellow); border-radius: 24px; padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.como-banner h2 { font-size: 30px; }
.como-banner p { font-size: 16px; color: #4A4230; margin-top: 8px; }
.faq-wrap { margin-top: 56px; max-width: 760px; }
.faq-wrap h2 { font-size: 26px; margin-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #FFF; border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.faq-q { font-weight: 700; font-size: 16px; color: var(--ink); }
.faq-a { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- footer ---------- */
footer.cd-footer { background: var(--ink); color: #FBF3E2; padding: 56px 48px 0; }
.foot-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; text-align: center; } }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand-row { display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) { .foot-brand-row { justify-content: center; } }
.foot-brand p { font-size: 14px; line-height: 1.6; color: #C9C4E3; max-width: 320px; }
.cd-footer h4 { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 15px; color: var(--yellow); margin-bottom: 14px; }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-list a { font-size: 14px; color: #C9C4E3; }
.foot-list a:hover { color: #FFF; }
.socials { display: flex; gap: 10px; }
@media (max-width: 720px) { .socials { justify-content: center; } }
.social {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #FFF;
}
.foot-hours { margin-top: 14px; font-size: 13.5px; color: rgba(251,243,226,.7); font-weight: 500; }
.foot-base {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(251,243,226,.6); flex-wrap: wrap; gap: 8px;
}
@media (max-width: 720px) { .foot-base { justify-content: center; text-align: center; } }

.fab-wa {
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--magenta); color: #FFF; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(255,46,136,.4); z-index: 40;
}

.link-detalle-block { width: 100%; font-size: 15px; padding: 12px 16px; margin-top: 2px; }
.link-detalle-block svg { width: 16px; height: 16px; }
