/* KeBuy · estilos propios de la página. El sistema base está en /assets/css/site.css */
:root {
  --accent: #2e8b3e;
  --accent-soft: #e3f2e5;
  --accent-ink: #1f6b2c;
  --kb-mint: #d9f3e0;
  --kb-cream: #fff6df;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #4cc764; --accent-soft: #17301d; --accent-ink: #7fe093; --kb-mint: #14261a; --kb-cream: #2a2416; }
}
:root[data-theme="dark"] { --accent: #4cc764; --accent-soft: #17301d; --accent-ink: #7fe093; --kb-mint: #14261a; --kb-cream: #2a2416; }

.muted { color: var(--ink-3); }

/* ---------- Hero ---------- */
.kb-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.kb-hero .wrap { position: relative; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 980px) { .kb-hero .wrap { grid-template-columns: 1fr 1fr; } }
.kb-hero h1 { font-size: clamp(56px, 8.6vw, 112px); margin: 22px 0 22px; }
.kb-hero .hl { color: var(--accent); position: relative; white-space: nowrap; }
.kb-hero .hl::after {
  content: ""; position: absolute; left: 2%; right: 4%; bottom: .06em; height: .16em; z-index: -1;
  background: var(--sun); border-radius: 999px; transform: rotate(-1.5deg); opacity: .85;
}
.kb-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.app-id { display: inline-flex; align-items: center; gap: 14px; }
.app-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.app-id strong { display: block; font: 800 24px/1 var(--font-display); }
.app-id span { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.mini-proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-2); font-size: 15px; }
.mini-proof b { font: 800 26px var(--font-display); color: var(--ink); margin-right: 6px; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 520px; height: 520px; right: -120px; top: -80px; background: var(--kb-mint); }
.blob.b2 { width: 380px; height: 380px; left: -140px; bottom: -120px; background: var(--kb-cream); }

.kb-hero-art { position: relative; height: clamp(520px, 60vw, 660px); max-width: 600px; width: 100%; margin: 0 auto; }
.kb-hero-art .phone { position: absolute; }
.kb-hero-art .p-back { left: 52%; top: 2%; transform: rotate(7deg); }
.kb-hero-art .p-front { left: 12%; top: 8%; transform: rotate(-4deg); }
.kb-hero-art .p-back.in { transform: rotate(7deg); }
.kb-hero-art .p-front.in { transform: rotate(-4deg); }
@media (max-width: 560px) {
  .kb-hero-art { height: 520px; }
  .kb-hero-art .p-front { left: 4%; }
  .kb-hero-art .p-back { left: 40%; }
}
.flt { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); z-index: 3;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); animation: float 6.5s ease-in-out infinite; transform: rotate(var(--r)); }
.toast {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px;
  font-size: 14px; box-shadow: var(--shadow-lg); max-width: 270px; line-height: 1.3;
  animation: float 8s ease-in-out infinite;
}
.toast .av { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.toast .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.toast.t1 { left: -2%; top: 40%; }
.toast.t2 { right: -2%; top: 74%; animation-delay: -3s; }
@media (max-width: 560px) { .toast.t1 { left: 0; top: 46%; } .toast.t2 { right: 0; } }

/* ---------- Cinta de ilustraciones ---------- */
.ribbon { padding: 18px 0; background: var(--accent); overflow: hidden; display: grid; gap: 10px; transform: rotate(-1.5deg); margin: 0 -20px; box-shadow: var(--shadow); }
.ribbon .track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.ribbon .track.rev { animation-direction: reverse; animation-duration: 70s; }
.ribbon .chip-ill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.95); color: #18201a; font-weight: 700; font-size: 15px; white-space: nowrap; }
.ribbon .chip-ill img { width: 34px; height: 34px; }

/* ---------- Bento de funciones ---------- */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); padding: clamp(24px, 3vw, 34px); display: grid; gap: 22px; align-content: start;
}
.tile h3 { font-size: clamp(24px, 2.4vw, 32px); }
.tile p { color: var(--ink-2); margin-top: 10px; }
.tile .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.tile .shot { display: flex; justify-content: center; }
.tile .shot.crop { margin: 0 calc(-1 * clamp(24px, 3vw, 34px)) calc(-1 * clamp(24px, 3vw, 34px)); height: 300px; overflow: hidden; align-items: flex-start; }
.tile .shot.crop img { width: min(320px, 82%); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); border: 6px solid #111; border-bottom: 0; }

@media (min-width: 760px) {
  .t-share { grid-column: span 4; grid-template-columns: 1fr auto; align-items: center; background: linear-gradient(135deg, var(--kb-mint), var(--surface) 70%); }
  .t-share .shot { margin-bottom: -120px; }
  .t-ill { grid-column: span 2; }
  .t-search, .t-mine, .t-usual { grid-column: span 2; }
  .t-scan, .t-private { grid-column: span 3; }
  .t-theme { grid-column: span 4; grid-template-columns: 1fr auto; align-items: center; }
  .t-offline { grid-column: span 2; }
  .t-stats { grid-column: span 6; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; }
  .t-stats .shot.crop { margin-left: 0; width: 340px; }
  .t-stats .copy { align-self: center; max-width: 520px; }
}
.t-share .shot .phone { transform: rotate(4deg); }

.ill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ill-grid span { aspect-ratio: 1; border-radius: 16px; background: var(--bg-2); display: grid; place-items: center; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ill-grid span:hover { transform: scale(1.12) rotate(-6deg); }
.ill-grid img { width: 70%; }

.t-scan { background: linear-gradient(160deg, var(--kb-cream), var(--surface) 70%); }
.scanner { position: relative; height: 200px; display: grid; place-items: center; }
.scanner .pack { width: 170px; background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; justify-items: center; transform: rotate(-4deg); }
.scanner .pack img { width: 72px; }
.scanner .barcode { width: 100%; height: 44px; background: repeating-linear-gradient(90deg, #18201a 0 2px, transparent 2px 4px, #18201a 4px 7px, transparent 7px 9px, #18201a 9px 10px, transparent 10px 13px); border-radius: 4px; }
.scanner .laser { position: absolute; left: 50%; width: 230px; height: 3px; margin-left: -115px; background: #ff3b30; border-radius: 3px; box-shadow: 0 0 16px 4px rgba(255,59,48,.55); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 22%; } 50% { top: 78%; } }

.t-private { background: linear-gradient(160deg, #eef0ff, var(--surface) 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-private { background: linear-gradient(160deg, #1d2036, var(--surface) 70%); } }
.lockrow { display: grid; gap: 10px; }
.lockrow .item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; }
.lockrow .item img { width: 38px; }
.lockrow .item i { margin-left: auto; font-style: normal; }
.lockrow .item.ghosted { opacity: .55; filter: blur(.4px); transform: scale(.97); }

.swatches { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), var(--shadow); }
.duo { display: flex; gap: 14px; justify-content: center; }
.duo .phone:first-child { transform: rotate(-4deg) translateY(10px); }
.duo .phone:last-child { transform: rotate(4deg); }
@media (max-width: 520px) { .duo .phone { --w: 150px !important; } }

.t-offline { background: linear-gradient(160deg, #e4eeff, var(--surface) 70%); }
.t-stats { background: linear-gradient(135deg, var(--kb-mint), var(--surface) 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-offline { background: linear-gradient(160deg, #172234, var(--surface) 70%); } }
.signal { display: flex; align-items: flex-end; gap: 8px; height: 90px; justify-content: center; position: relative; }
.signal i { width: 18px; border-radius: 6px; background: var(--line); }
.signal i:nth-child(1) { height: 25%; background: var(--sky); } .signal i:nth-child(2) { height: 50%; } .signal i:nth-child(3) { height: 75%; } .signal i:nth-child(4) { height: 100%; }
.signal b { position: absolute; right: calc(50% - 74px); top: -6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--shadow); }

/* ---------- Idiomas ---------- */
.langs { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.langs-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .langs-grid { grid-template-columns: 1.1fr .9fr; } }
.langs h2 { font-size: clamp(36px, 5vw, 62px); margin: 18px 0 20px; }
.swap { color: var(--accent); display: inline-block; min-width: 4ch; transition: opacity .35s, transform .35s; }
.swap.out { opacity: 0; transform: translateY(-.3em); }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { font: 700 15px var(--font-body); padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, color .2s; }
.chip.on { background: var(--accent); color: #fff; box-shadow: none; }
.lang-phone { position: relative; display: flex; justify-content: center; }
.lang-phone img { transition: opacity .35s; }
.lang-phone img.fade { opacity: 0; }
.lang-phone .bubble { position: absolute; left: 50%; top: 40%; transform: translateX(-112%); background: var(--surface); padding: 12px 18px; border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow-lg); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .lang-phone .bubble { transform: translateX(-50%); top: auto; bottom: -18px; } }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: s; }
.steps li { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 10px; justify-items: start; }
.steps img { width: 72px; height: 72px; margin-bottom: 6px; }
.steps h3 { font-size: 26px; }
.steps p { color: var(--ink-2); }
.steps .n { position: absolute; top: 22px; right: 26px; font: 800 64px/1 var(--font-display); color: var(--accent-soft); }

/* ---------- Privacidad ---------- */
.priv { background: #10241a; color: #eef6ef; border-radius: clamp(28px, 4vw, 48px); padding: clamp(32px, 6vw, 80px); display: grid; gap: 40px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .priv { grid-template-columns: 1fr 1fr; align-items: center; } }
.priv::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -160px; top: -200px; background: radial-gradient(circle, rgba(76,199,100,.35), transparent 65%); }
.priv h2 { font-size: clamp(36px, 5vw, 60px); margin: 18px 0; }
.priv p { color: #b8cdbd; font-size: 19px; margin-bottom: 28px; max-width: 30em; }
.priv .btn { background: #4cc764; color: #0b1a10; }
.eyebrow.on-dark { background: rgba(76,199,100,.16); color: #7fe093; }
.priv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.priv-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; }
.priv-list b { font-size: 17px; }
.priv-list span { color: #b8cdbd; font-size: 15px; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 20px 24px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 24px/1 var(--font-display); color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 10px; }

/* ---------- Llamada final ---------- */
.cta { position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 16px;
  background: radial-gradient(120% 140% at 50% 0%, #4cc764, #2e8b3e 55%, #1f6b2c); color: #fff;
  border-radius: clamp(28px, 4vw, 48px); padding: clamp(48px, 8vw, 100px) var(--gutter); }
.cta h2 { font-size: clamp(36px, 5.4vw, 66px); max-width: 12em; }
.cta p { font-size: 19px; opacity: .9; margin-bottom: 10px; }
.cta-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.5); animation: float 6s ease-in-out infinite; }
.store-badge.light { background: #fff; color: #000; }
.cta-flt { position: absolute; width: 90px; opacity: .95; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 12px 16px rgba(0,0,0,.25)); }
.cta-flt.f1 { left: 6%; top: 14%; --r: -14deg; }
.cta-flt.f2 { right: 7%; top: 18%; --r: 10deg; animation-delay: -2s; }
.cta-flt.f3 { left: 11%; bottom: 10%; --r: 6deg; animation-delay: -4s; }
.cta-flt.f4 { right: 12%; bottom: 12%; --r: -8deg; animation-delay: -1s; }
@media (max-width: 640px) { .cta-flt { width: 54px; } .cta-flt.f1, .cta-flt.f3 { left: 2%; } .cta-flt.f2, .cta-flt.f4 { right: 2%; } }
