/* =====================================================================
   DuckStore Web · estilos
   ===================================================================== */
:root {
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --link: #0066cc;
  --dark: #000000;
  --dark-2: #161617;
  --dark-3: #1d1d1f;
  --dark-text: #f5f5f7;
  --dark-muted: #a1a1a6;
  --duck: #EF9C00;
  --ok: #1d9e4a;
  --warn: #c77700;
  --err: #d70015;
  --radius: 28px;
  --radius-s: 18px;
  --nav-h: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-h: 0 18px 50px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: min(1080px, 100% - 44px); margin-inline: auto; }
.wrap-wide { width: min(1320px, 100% - 44px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Demo bar ---------- */
.demo-bar {
  background: var(--bg-2); color: var(--muted); font-size: 12px; text-align: center;
  padding: 9px 16px; letter-spacing: -0.01em;
}
.demo-bar b { color: var(--text); font-weight: 600; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251,251,253,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: rgba(0,0,0,.08); }
.nav.on-dark { background: rgba(22,22,23,.72); color: var(--dark-text); }
.nav.on-dark .nav-links a { color: rgba(245,245,247,.8); }
.nav.on-dark .brand-name { color: var(--dark-text); }
.nav-in { height: 100%; width: min(1080px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--text); transition: transform .5s var(--ease-spring); }
.nav.on-dark .brand-mark { color: var(--dark-text); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: rgba(29,29,31,.8); font-size: 13px; letter-spacing: -0.01em; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav.on-dark .nav-links a:hover, .nav.on-dark .nav-links a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 18px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, transform .2s; position: relative; }
.icon-btn:hover { background: rgba(0,0,0,.05); }
.nav.on-dark .icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.bag-count {
  position: absolute; right: 2px; bottom: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--text); color: #fff; font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center; letter-spacing: 0; border: 2px solid var(--bg);
}
.nav.on-dark .bag-count { background: #fff; color: #000; border-color: var(--dark-2); }
.bag-btn.bump { animation: bump .6s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
.menu-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: rgba(251,251,253,.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 28px 30px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a {
  color: var(--text); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; padding: 6px 0;
  opacity: 0; transform: translateY(-10px); animation: mmIn .5s var(--ease) forwards;
}
.mobile-menu a:nth-child(2) { animation-delay: .04s; } .mobile-menu a:nth-child(3) { animation-delay: .08s; } .mobile-menu a:nth-child(4) { animation-delay: .12s; }
@keyframes mmIn { to { opacity: 1; transform: none; } }

/* ---------- Page transitions ---------- */
#view { outline: none; min-height: 70vh; }
#view.leave { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
#view.enter { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="fade"] { transform: none; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Type ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--warn); letter-spacing: -0.01em; margin: 0 0 8px; }
.eyebrow.blue { color: var(--blue); }
.h-hero { font-size: clamp(44px, 8vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; margin: 0; }
.h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; margin: 0; }
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -0.028em; margin: 0; }
.h2 .soft, .h1 .soft { color: var(--muted-2); }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--muted); letter-spacing: -0.02em; margin: 16px 0 0; font-weight: 500; }
.dark .lead { color: var(--dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px; font-size: 17px; font-weight: 500;
  letter-spacing: -0.02em; transition: background .25s, transform .2s var(--ease), box-shadow .25s, color .25s;
  white-space: nowrap; text-decoration: none !important;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-h); box-shadow: 0 8px 22px rgba(0,113,227,.28); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { color: var(--blue); border: 1px solid var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #f0f0f2; }
.btn-wa { background: #1faa53; color: #fff; }
.btn-wa:hover { background: #1b9a4b; box-shadow: 0 8px 22px rgba(31,170,83,.28); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 2px; font-size: 19px; color: var(--link); letter-spacing: -0.02em; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }
.dark .link-arrow { color: #2997ff; }
.ctas { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 72px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 35% at 30% 30%, rgba(239,156,0,.22), transparent 70%),
    radial-gradient(35% 30% at 72% 35%, rgba(0,113,227,.16), transparent 70%),
    radial-gradient(30% 30% at 50% 70%, rgba(175,82,222,.12), transparent 70%);
  filter: blur(10px); animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-3%,2%,0) scale(1.05); } 100% { transform: translate3d(3%,-2%,0) scale(1); } }
.hero > :not(.hero-glow) { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--muted); font-weight: 600; }
.hero-title { white-space: pre-line; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px); animation: wordIn 1s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.grad-text {
  background: linear-gradient(92deg, #1d1d1f 10%, #4a4a52 40%, #1d1d1f 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { opacity: 0; animation: fadeUp 1s .55s var(--ease) forwards; max-width: 640px; margin-inline: auto; }
.hero .ctas { opacity: 0; animation: fadeUp 1s .75s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-stage { position: relative; height: clamp(420px, 60vw, 640px); margin-top: 48px; perspective: 1400px; }
.hero-phones { position: absolute; left: 50%; top: 0; width: 0; height: 100%; will-change: transform; }
.hero-phone {
  position: absolute; top: 20px; width: clamp(190px, 24vw, 280px); aspect-ratio: 9 / 19.2;
  opacity: 0; animation: phoneIn 1.4s var(--ease) forwards;
}
.hero-phone .float { width: 100%; height: 100%; animation: float 7s ease-in-out infinite; }
.hero-phone.p-center { left: 0; transform: translateX(-50%); animation-delay: .9s; z-index: 3; }
.hero-phone.p-left  { left: 0; transform: translateX(-128%) translateY(60px) rotate(-8deg); animation-delay: 1.05s; z-index: 2; }
.hero-phone.p-right { left: 0; transform: translateX(28%) translateY(60px) rotate(8deg); animation-delay: 1.15s; z-index: 2; }
.hero-phone.p-left .float { animation-delay: -2s; } .hero-phone.p-right .float { animation-delay: -4s; }
@keyframes phoneIn { from { opacity: 0; margin-top: 120px; } to { opacity: 1; margin-top: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone {
  width: 100%; height: 100%; border-radius: 17% / 8%; padding: 4.2%;
  background: linear-gradient(145deg, #3a3a3f, #0e0e10 55%, #2a2a2e);
  box-shadow: 0 40px 80px rgba(0,0,0,.28), 0 10px 20px rgba(0,0,0,.14), inset 0 0 0 1.5px rgba(255,255,255,.12);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 14% / 6.8%; overflow: hidden; position: relative;
  background: #0b0b0c; color: #fff; display: flex; flex-direction: column;
}
.phone-screen::before {
  content: ""; position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 3.6%; background: #000; border-radius: 20px; z-index: 3;
}
.scr-wall { position: absolute; inset: 0; background: conic-gradient(from 210deg at 50% 60%, #ffb800, #ff5f6d, #7b5cff, #00a3ff, #ffb800); filter: saturate(1.1); animation: wall 16s linear infinite; opacity: .95; }
@keyframes wall { to { filter: hue-rotate(360deg) saturate(1.1); } }
.scr-wall.b { background: radial-gradient(120% 80% at 20% 10%, #2f80ff, transparent 60%), radial-gradient(120% 80% at 90% 90%, #b44bff, transparent 60%), #0b0b18; animation: none; }
.scr-wall.c { background: radial-gradient(120% 80% at 80% 10%, #ffc93c, transparent 60%), radial-gradient(120% 90% at 10% 100%, #ff6b3d, transparent 60%), #1a0e05; animation: none; }
.scr-ui { position: relative; z-index: 2; margin-top: auto; padding: 12% 8% 10%; }
.scr-card {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 16px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 10px 12px; font-size: 10px; line-height: 1.3; letter-spacing: 0;
}
.scr-card b { display: block; font-size: 12.5px; margin: 2px 0 7px; letter-spacing: -0.01em; }
.scr-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); overflow: hidden; }
.scr-bar i { display: block; height: 100%; width: 72%; border-radius: 5px; background: #fff; animation: bar 3.4s var(--ease) infinite; }
@keyframes bar { 0% { width: 20%; } 60%, 100% { width: 78%; } }
.scr-time { position: absolute; top: 13%; left: 0; right: 0; text-align: center; z-index: 2; font-weight: 600; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.04em; }
.scr-date { position: absolute; top: 9.5%; left: 0; right: 0; text-align: center; z-index: 2; font-size: 11px; font-weight: 500; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.bg-2 { background: var(--bg-2); }
.dark { background: var(--dark); color: var(--dark-text); }
.dark-2 { background: var(--dark-2); color: var(--dark-text); }
.center { text-align: center; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px max(22px, calc((100vw - 1080px) / 2)) 40px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: 0 0 auto; }
.rail-ctrl { display: flex; gap: 14px; justify-content: flex-end; width: min(1080px, 100% - 44px); margin: 0 auto; }
.rail-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(210,210,215,.64); display: grid; place-items: center;
  transition: background .2s, opacity .2s, transform .2s;
}
.rail-btn:hover { background: rgba(210,210,215,.9); }
.rail-btn:active { transform: scale(.92); }
.rail-btn[disabled] { opacity: .35; pointer-events: none; }
.rail-btn svg { width: 18px; height: 18px; }

/* ---------- Product cards ---------- */
.pcard {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; color: var(--text); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pcard:hover { text-decoration: none; transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-h); }
.rail .pcard { width: clamp(270px, 28vw, 340px); }
.pcard-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard-link:focus-visible { outline-offset: -3px; }
.pcard-top { padding: 26px 26px 0; }
.pcard-kicker { font-size: 12px; font-weight: 600; color: var(--warn); letter-spacing: -0.005em; min-height: 16px; }
.pcard-name { font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: -0.025em; margin: 6px 0 0; }
.pcard-specs { font-size: 14px; color: var(--muted); margin-top: 6px; min-height: 20px; }
.pcard-visual { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 22px; }
.pcard-visual > * { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.pcard:hover .pcard-visual > * { transform: scale(1.06); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px 22px 26px; margin-top: auto; }
.price { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.pcard-foot .btn { position: relative; z-index: 2; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.grid .pcard-visual { aspect-ratio: 5 / 4; }

.chip-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0; background: var(--bg-2); color: var(--muted); }
.chip-pill.new { background: #e9f7ee; color: var(--ok); }
.chip-pill.used { background: #fff4e0; color: var(--warn); }
.chip-pill.last { background: #fde8ea; color: var(--err); }

/* Skeleton */
.sk { background: linear-gradient(90deg, #ececef 0%, #f6f6f8 40%, #ececef 80%); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.pcard.skel .pcard-visual { background: none; }

/* ---------- Service (dark) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.svc-card {
  position: relative; background: var(--dark-3); border-radius: var(--radius-s); padding: 28px 24px 30px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(239,156,0,.16), transparent 60%);
}
.svc-card:hover::before { opacity: 1; }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(239,156,0,.14); color: var(--duck); margin-bottom: 18px; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.02em; }
.svc-card p { margin: 0; color: var(--dark-muted); font-size: 15px; line-height: 1.45; }

/* Steps visual */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 64px; }
.steps::before, .steps .steps-fill {
  content: ""; position: absolute; top: 21px; left: 10%; right: 10%; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14);
}
.steps .steps-fill { right: auto; width: 0; background: linear-gradient(90deg, var(--duck), #ff8a3d); transition: width 2.2s var(--ease) .3s; }
.steps.in .steps-fill { width: var(--fill, 60%); }
.step { position: relative; text-align: center; z-index: 1; }
.step-dot {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dark-3); border: 2px solid rgba(255,255,255,.18); color: var(--dark-muted);
  transition: background .5s, border-color .5s, color .5s, transform .6s var(--ease-spring); transition-delay: var(--sd, 0s);
}
.step-dot svg { width: 20px; height: 20px; }
.steps.in .step.done .step-dot { background: var(--duck); border-color: var(--duck); color: #1d1d1f; transform: scale(1.06); }
.steps.in .step.current .step-dot { background: #fff; border-color: #fff; color: #1d1d1f; box-shadow: 0 0 0 8px rgba(255,255,255,.08); animation: pulse 2s 2.5s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,156,0,.45); } 50% { box-shadow: 0 0 0 12px rgba(239,156,0,0); } }
.step-label { font-size: 13px; color: var(--dark-muted); font-weight: 500; letter-spacing: -0.01em; }
.steps.in .step.done .step-label, .steps.in .step.current .step-label { color: #fff; }

.track-inline { display: flex; gap: 10px; max-width: 560px; margin: 36px auto 0; flex-wrap: wrap; justify-content: center; }
.field-dark {
  flex: 1 1 160px; min-height: 50px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; padding: 0 16px; font-size: 17px; transition: border-color .2s, background .2s;
}
.field-dark::placeholder { color: rgba(245,245,247,.45); }
.field-dark:focus { outline: none; border-color: #2997ff; background: rgba(255,255,255,.09); }

/* ---------- Bento (accesorios) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento .pcard:first-child { grid-column: span 2; grid-row: span 2; }
.bento .pcard:first-child .pcard-visual { aspect-ratio: auto; flex: 1; min-height: 320px; }
.bento .pcard:first-child .pcard-name { font-size: 32px; }
.bento .pcard .pcard-visual { aspect-ratio: 4 / 3; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.visit-card { background: var(--card); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.visit-card.accent { background: linear-gradient(150deg, #fff7df, #ffe7b0); }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; }
.info-row svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--muted); margin-top: 2px; }
.info-row b { display: block; font-weight: 600; }
.info-row span { color: var(--muted); }

/* ---------- Shop page ---------- */
.page-head { padding: 64px 0 26px; }
.shop-bar {
  position: sticky; top: var(--nav-h); z-index: 20; background: rgba(251,251,253,.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft); padding: 12px 0;
}
.shop-bar-in { display: flex; gap: 12px; align-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 980px; font-size: 14px; background: var(--card);
  border: 1px solid var(--line-soft); color: var(--text); transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--line); }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.search {
  position: relative; flex: 0 1 260px;
}
.search input {
  width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--card);
  padding: 0 14px 0 38px; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.14); }
.search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.sort { height: 40px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--card); padding: 0 12px; font-size: 14px; }
.shop-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; margin: 26px 0 18px; }
.empty { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--line); }
.empty h3 { color: var(--text); font-size: 24px; margin: 0 0 6px; letter-spacing: -0.02em; }

/* ---------- Product page ---------- */
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 40px 0 90px; align-items: start; }
.pd-visual {
  position: sticky; top: calc(var(--nav-h) + 24px); background: var(--bg-2); border-radius: var(--radius);
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 48px; overflow: hidden;
}
.pd-visual > * { width: 100%; height: 100%; object-fit: contain; animation: pdIn 1s var(--ease) both; }
@keyframes pdIn { from { opacity: 0; transform: scale(.9) translateY(20px); } to { opacity: 1; transform: none; } }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.pd-price { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin: 18px 0 4px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pd-specs { margin: 30px 0; border-top: 1px solid var(--line-soft); }
.pd-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { margin: 0; font-weight: 500; text-align: right; }
.pd-actions { display: grid; gap: 12px; margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 980px; height: 44px; }
.qty button { width: 42px; height: 100%; font-size: 20px; color: var(--text); border-radius: 980px; }
.qty button:hover { background: var(--bg-2); }
.qty button[disabled] { opacity: .3; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-note { display: flex; gap: 12px; padding: 18px; border-radius: var(--radius-s); background: var(--bg-2); margin-top: 22px; font-size: 14px; color: var(--muted); }
.pd-note svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--text); }

/* ---------- Repair page ---------- */
.repair-hero { position: relative; text-align: center; padding: 88px 0 60px; overflow: hidden; }
.repair-hero .hero-glow { opacity: .55; }
.track-card {
  position: relative; z-index: 1; max-width: 560px; margin: 44px auto 0; background: var(--card); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); text-align: left;
}
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: -0.01em; }
.field input, .field textarea {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  padding: 12px 16px; font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.14); }
.field.err input { border-color: var(--err); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-err { color: var(--err); font-size: 14px; margin: 0 0 14px; }

.result { scroll-margin-top: calc(var(--nav-h) + 20px); max-width: 860px; margin: 0 auto; padding-bottom: 100px; }
.result-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.result-head { padding: 34px 36px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.result-head .h3 { margin-top: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 980px; font-size: 15px; font-weight: 600; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.st-0, .st-1, .st-2 { background: #eaf3ff; color: var(--blue); }
.st-3 { background: #e9f7ee; color: var(--ok); }
.st-4 { background: var(--bg-2); color: var(--muted); }
.st-4 i { animation: none; }
.st-x { background: #fde8ea; color: var(--err); }
.result .steps { margin: 0; padding: 30px 36px 34px; background: var(--dark-2); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.result-grid > div { padding: 22px 36px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.result-grid > div:nth-child(3n) { border-right: 0; }
.result-grid dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.result-grid dd { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.timeline { padding: 28px 36px 8px; }
.timeline h4 { margin: 0 0 14px; font-size: 15px; color: var(--muted); font-weight: 500; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 20px 26px; }
.tl li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tl li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line-soft); }
.tl li:last-child::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.tl li:last-child::after { display: none; }
.tl b { font-weight: 600; display: block; }
.tl span { font-size: 14px; color: var(--muted); }
.result-actions { display: flex; gap: 12px; padding: 24px 36px 34px; flex-wrap: wrap; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.32); opacity: 0; transition: opacity .35s; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(440px, 100%); background: var(--bg);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.14);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px 28px; }
.drawer-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 28px 28px; display: flex; flex-direction: column; }
.bag-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); animation: fadeUp .45s var(--ease) both; }
.bag-thumb { width: 76px; height: 76px; border-radius: 16px; background: var(--bg-2); display: grid; place-items: center; padding: 8px; }
.bag-thumb > * { width: 100%; height: 100%; object-fit: contain; }
.bag-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.bag-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.bag-row .qty { height: 34px; }
.bag-row .qty button { width: 32px; font-size: 17px; }
.bag-remove { font-size: 13px; color: var(--link); margin-top: 6px; }
.bag-total { margin-top: auto; padding-top: 22px; }
.bag-total-row { display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.bag-total p { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.success { text-align: center; padding: 30px 0; }
.success-ico { width: 84px; height: 84px; margin: 10px auto 22px; border-radius: 50%; background: #e9f7ee; color: var(--ok); display: grid; place-items: center; animation: pop .7s var(--ease-spring) both; }
.success-ico svg { width: 42px; height: 42px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .35s ease forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.code-box { display: inline-block; margin: 16px 0 22px; padding: 12px 22px; border-radius: 14px; background: var(--bg-2); font-size: 26px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* Fly-to-bag */
.fly { position: fixed; z-index: 200; pointer-events: none; border-radius: 16px; background: #fff; box-shadow: var(--shadow-h); display: grid; place-items: center; padding: 8px; }
.fly > * { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--nav-h) + 14px); z-index: 300; transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  background: rgba(29,29,31,.92); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 15px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .35s var(--ease), transform .45s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); color: var(--muted); font-size: 12px; line-height: 1.5; padding: 36px 0 28px; letter-spacing: -0.01em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer h4 { color: var(--text); font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.footer a { color: var(--muted); display: block; margin-bottom: 7px; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .pcard:first-child { grid-column: span 2; grid-row: auto; }
  .bento .pcard:first-child .pcard-visual { min-height: 260px; aspect-ratio: 16 / 10; }
  .visit { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .pd-visual { position: relative; top: 0; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-grid > div:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .result-grid > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: flex; }
  .shop-bar-in { flex-wrap: wrap; }
  .search { flex: 1 1 100%; order: -1; }
  .chips { flex: 1 1 100%; }
  .sort { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .pcard:first-child { grid-column: auto; }
  .bento .pcard:first-child .pcard-name { font-size: 24px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid .pcard-top { padding: 16px 16px 0; }
  .grid .pcard-name { font-size: 16px; }
  .grid .pcard-specs { font-size: 12px; }
  .grid .pcard-visual { padding: 12px; }
  .grid .pcard-foot { padding: 0 12px 14px 16px; flex-direction: column; align-items: stretch; }
  .grid .pcard-foot .btn { width: 100%; }
  .grid .pcard { border-radius: 20px; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .step-dot { width: 34px; height: 34px; }
  .step-dot svg { width: 16px; height: 16px; }
  .steps::before, .steps .steps-fill { top: 16px; }
  .step-label { font-size: 10.5px; }
  .visit-card { padding: 30px 24px; }
  .result-head, .timeline, .result-actions { padding-left: 22px; padding-right: 22px; }
  .result .steps { padding: 24px 10px 26px; }
  .result-grid > div { padding: 16px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .track-card { padding: 22px; }
  .hero-phone.p-left { transform: translateX(-112%) translateY(70px) rotate(-8deg); }
  .hero-phone.p-right { transform: translateX(12%) translateY(70px) rotate(8deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .ctas { gap: 16px; }
}


/* =====================================================================
   1.1 · canje, formas de pago, fotos, precios de reparación
   ===================================================================== */
.muted { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.mobile-menu a:nth-child(5) { animation-delay: .16s; } .mobile-menu a:nth-child(6) { animation-delay: .2s; }
.field select {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  padding: 0 14px; font-size: 17px; appearance: auto;
}
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.14); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--card); cursor: pointer; font-size: 15px; line-height: 1.35; transition: border-color .2s, background .2s; margin-bottom: 16px; }
.check:hover { border-color: var(--line); }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: 0 0 auto; margin: 0; }
.check:has(input:checked) { border-color: var(--blue); background: #f2f8ff; }

/* Resumen de totales */
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.sum-row.pos span:last-child { color: var(--ok); font-weight: 600; }
.sum-card { text-align: left; background: var(--bg-2); border-radius: 16px; padding: 16px 18px 10px; margin: 0 0 22px; }
.sum-card .bag-total-row { font-size: 18px; }

/* Precio con canje en tarjetas */
.price small.trade-line { color: var(--ok); font-weight: 600; font-size: 12.5px; margin-top: 2px; }

/* Ficha: galería */
.pd-media { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; }
.pd-media .pd-visual { position: relative; top: 0; }
.pd-visual img.photo { object-fit: contain; border-radius: 18px; }
.pcard-visual img.photo { object-fit: contain; border-radius: 14px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-thumb { aspect-ratio: 1; border-radius: 14px; background: var(--bg-2); padding: 6px; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.on { border-color: var(--blue); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

/* Ficha: canje y formas de pago */
.pd-trade { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: #e9f7ee; color: #115c2c; font-size: 15px; }
.pd-trade small { color: #3d7a52; }
.pd-trade b { font-size: 19px; letter-spacing: -0.02em; }
.pd-trade-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 15px; }
.pd-trade-cta svg { width: 14px; height: 14px; }
.pay-box { margin-top: 28px; }
.pay-box h3 { font-size: 17px; margin: 0 0 10px; letter-spacing: -0.02em; }
.pay-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.pay-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.pay-list li small { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.pay-list li small.pos { color: var(--ok); }
.pay-list b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-list b small { display: block; margin: 0; font-weight: 400; }

/* Banda de canje activo */
.quote-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0 0; padding: 16px 20px; border-radius: 18px; background: linear-gradient(120deg, #e9f7ee, #eef6ff); }
.quote-banner b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.quote-banner small { color: var(--muted); font-size: 13px; }
.qb-kicker { font-size: 12px; font-weight: 600; color: var(--ok); }

/* Promo de canje en el inicio */
.trade-promo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, #dcebff 0%, transparent 60%), radial-gradient(80% 100% at 0% 100%, #fff1cc 0%, transparent 60%), var(--card);
  box-shadow: var(--shadow); padding: clamp(32px, 5vw, 64px); }
.tp-text .lead { font-size: 19px; }
.tp-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.tp-phone { width: min(300px, 80%); animation: float 7s ease-in-out infinite; }
.tp-chip { position: absolute; top: 8%; left: 6%; z-index: 2; background: #fff; border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); }
.tp-value { position: absolute; top: calc(8% + 36px); left: 6%; z-index: 2; background: #fff; border-radius: 16px; padding: 10px 16px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; box-shadow: var(--shadow-h); color: var(--ok); }

/* Página de canje */
.trade-hero { padding-bottom: 20px; }
.trade { padding-bottom: 110px; }
.trade-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; margin-top: 28px; }
.trade-steps { display: grid; gap: 14px; }
.tstep { display: grid; grid-template-columns: 36px 1fr; gap: 16px; background: var(--card); border-radius: var(--radius-s); padding: 24px 24px 26px; box-shadow: var(--shadow); transition: opacity .4s var(--ease), filter .4s; }
.tstep.off { opacity: .45; pointer-events: none; filter: saturate(.3); }
.tstep-n { width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.tstep h3 { margin: 4px 0 14px; font-size: 20px; letter-spacing: -0.025em; }
.tstep .check { margin-bottom: 8px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opt { min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-size: 15px; font-weight: 500; text-align: center; transition: border-color .2s, background .2s, transform .2s var(--ease-spring), box-shadow .2s; }
.opt:hover { border-color: var(--muted-2); }
.opt:active { transform: scale(.97); }
.opt.on { border-color: var(--blue); background: #f2f8ff; box-shadow: 0 0 0 3px rgba(0,113,227,.12); color: var(--blue); }
.cond-grid { display: grid; gap: 10px; }
.cond { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); transition: border-color .2s, background .2s; }
.cond b { font-size: 16px; } .cond span { font-size: 14px; color: var(--muted); }
.cond.on { border-color: var(--blue); background: #f2f8ff; }
.bat { display: flex; align-items: center; gap: 16px; }
.bat input { flex: 1; accent-color: var(--blue); height: 28px; }
.bat output { min-width: 64px; text-align: right; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.trade-sum { position: sticky; top: calc(var(--nav-h) + 24px); }
.tsum-card { background: var(--dark-2); color: var(--dark-text); border-radius: var(--radius); padding: 30px; }
.tsum-k { margin: 0; color: var(--dark-muted); font-size: 15px; }
.tsum-v { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.tsum-d { margin: 0; color: var(--dark-muted); font-size: 15px; }
.tsum-note { font-size: 13px; color: var(--dark-muted); border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; margin: 18px 0 18px; }
.tsum-card .field span { color: var(--dark-muted); }
.tsum-card .field input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.tsum-card .field input:focus { border-color: #2997ff; }
.tsum-card .muted { color: var(--dark-muted); font-size: 13px; }
.tsum-card .form-err { color: #ff6961; }
.tsum-card .code-box { background: rgba(255,255,255,.1); color: #fff; }
.tsum-card .btn-ghost { color: #2997ff; border-color: #2997ff; }
.saved { text-align: center; animation: fadeUp .5s var(--ease) both; }

/* Tabs de servicio técnico */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 26px; border-radius: 980px; background: rgba(0,0,0,.06); }
.seg a { padding: 9px 18px; border-radius: 980px; font-size: 15px; color: var(--text); transition: background .25s, box-shadow .25s; }
.seg a:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.seg a.on { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); font-weight: 500; }
.budget-hero { padding-bottom: 30px; }

/* Precios de reparación */
.budget { padding-bottom: 110px; }
.budget-pick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; }
.budget-pick .chips { flex: 1 1 100%; order: 2; }
.budget-pick .search { flex: 0 1 280px; }
.opt-grid.models { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 26px; }
.price-card { scroll-margin-top: calc(var(--nav-h) + 16px); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px 26px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.price-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.price-list li b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.price-list li span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.price-list li span svg { width: 14px; height: 14px; }
.bp { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.bp small { font-size: 12px; color: var(--muted); font-weight: 500; }
.bp-ask { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .trade-grid { grid-template-columns: 1fr; }
  .trade-sum { position: relative; top: 0; }
  .trade-promo { grid-template-columns: 1fr; }
  .tp-visual { min-height: 260px; }
  .pd-media { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .tstep { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .price-card { padding: 22px 18px 18px; }
  .price-list li { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .price-list li .btn { grid-column: 1 / -1; justify-self: start; }
  .seg { display: flex; width: 100%; }
  .seg a { flex: 1; text-align: center; padding: 9px 8px; font-size: 14px; }
  .tsum-card { padding: 24px; }
}


/* =====================================================================
   Logo DuckStore (vector oficial)
   ===================================================================== */
.bmark, .bword, .btag { display: block; height: auto; overflow: visible; }
.lockup { display: inline-flex; align-items: center; gap: 9px; color: inherit; }
.lockup .bmark { width: 28px; flex: 0 0 auto; }
.lockup .bword { width: 96px; }
.brand { color: var(--text); }
.nav.on-dark .brand { color: var(--dark-text); }
.brand:hover .bmark { transform: rotate(-8deg); }
.bmark { transition: transform .5s var(--ease-spring); }
.bmark .eye { animation: blink 6.5s infinite; }
.bmark .beak { transform-box: fill-box; transform-origin: 50% 40%; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto 26px; }
.hero-mark { width: clamp(78px, 9vw, 104px); color: var(--text); opacity: 0; animation: markIn 1.1s var(--ease-spring) .05s forwards; cursor: pointer; }
.hero-mark .eye { animation-delay: 1.8s; }
.hero-mark:hover .beak { animation: quack .55s var(--ease-spring); }
.hero-tag { width: min(300px, 72vw); color: var(--muted); opacity: 0; animation: fadeUp .9s .25s var(--ease) forwards; }
@keyframes markIn { from { opacity: 0; transform: translateY(18px) scale(.7) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes quack { 0%, 100% { transform: none; } 30% { transform: scale(1.12, .9) translateY(2px); } 60% { transform: scale(.96, 1.06); } }
.visit-logo .lockup .bmark { width: 40px; }
.visit-logo .lockup .bword { width: 150px; }
.visit-logo { margin-bottom: 4px; }
.foot-logo { display: inline-block; color: var(--text); margin-bottom: 10px; }
.foot-logo:hover { text-decoration: none; }
.foot-logo .lockup .bmark { width: 26px; }
.foot-logo .lockup .bword { width: 88px; }
.foot-tag { width: 190px; color: var(--muted); }
@media (max-width: 560px) {
  .lockup .bmark { width: 26px; }
  .lockup .bword { width: 84px; }
}


/* =====================================================================
   Servicio técnico: precios bien visibles
   ===================================================================== */
.svc-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin: 30px auto 0; }
.svc-switch a {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 20px;
  background: rgba(255,255,255,.7); border: 1.5px solid var(--line-soft); color: var(--text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background .25s;
}
.svc-switch a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-switch a.on { border-color: var(--text); background: #fff; box-shadow: var(--shadow); }
.svc-switch .ss-ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); transition: background .25s, color .25s; }
.svc-switch a.on .ss-ico { background: var(--duck); color: #1d1d1f; }
.svc-switch .ss-ico svg { width: 22px; height: 22px; }
.svc-switch b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.svc-switch small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }

.svc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 54px; text-align: left; }
.duo-card { position: relative; background: var(--dark-3); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 32px 30px 30px; display: flex; flex-direction: column; overflow: hidden; }
.duo-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(239,156,0,.16), transparent); pointer-events: none; }
.duo-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(239,156,0,.15); color: var(--duck); margin-bottom: 18px; }
.duo-ico svg { width: 25px; height: 25px; }
.duo-card h3 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.028em; line-height: 1.15; }
.duo-card > p { margin: 0 0 22px; color: var(--dark-muted); font-size: 16px; }
.duo-form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.duo-form .field-dark { flex: 1 1 150px; min-width: 0; }
.duo-form .btn { flex: 0 0 auto; }
.quick-models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; min-height: 36px; }
.qm { padding: 8px 14px; border-radius: 980px; font-size: 14px; color: var(--dark-text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: background .2s, border-color .2s, transform .2s; }
.qm:hover { text-decoration: none; background: rgba(255,255,255,.16); transform: translateY(-1px); }
.qm.more { display: inline-flex; align-items: center; gap: 2px; color: #2997ff; background: none; border-color: transparent; }
.qm.more svg { width: 13px; height: 13px; }
.steps.steps-mini { margin-top: 26px; gap: 2px; }
.steps.steps-mini .step-dot { width: 32px; height: 32px; margin-bottom: 8px; }
.steps.steps-mini .step-dot svg { width: 15px; height: 15px; }
.steps.steps-mini::before, .steps.steps-mini .steps-fill { top: 15px; }
.steps.steps-mini .step-label { font-size: 11px; }
@media (max-width: 900px) {
  .svc-duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-switch { grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc-switch a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .svc-switch b { font-size: 15px; }
  .duo-card { padding: 26px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .w, .hero-sub, .hero .ctas, .hero-phone, .hero-mark, .hero-tag { opacity: 1; filter: none; }
}

/* ---- Orden con varios equipos (gremio) ---- */
.dev-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 36px 26px; }
.dev-chips .status-pill { font-size: 14px; padding: 6px 14px; }
.dev-list { margin-top: -1px; }
.dev-row { border-bottom: 1px solid var(--line-soft); }
.dev-row summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 36px; cursor: pointer; transition: background .2s; }
.dev-row summary::-webkit-details-marker { display: none; }
.dev-row summary:hover { background: var(--bg-2); }
.dev-num { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 14px; font-weight: 600; }
.dev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dev-main b { font-size: 17px; letter-spacing: -0.02em; }
.dev-main small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-row .status-pill { font-size: 13px; padding: 6px 12px; white-space: nowrap; }
.dev-chev { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); transition: transform .25s; }
.dev-row[open] .dev-chev { transform: rotate(90deg); }
.dev-body { padding: 0 36px 22px; }
.result .dev-body .steps { margin-top: 4px; padding: 24px 18px 26px; border-radius: var(--radius-s); }
.dev-body .result-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.dev-body .result-grid > div { border-right: 0; border-bottom: 0; }
.dev-body .result-grid { margin-top: 18px; border: 1px solid var(--line-soft); border-radius: var(--radius-s); overflow: hidden; }
.dev-body .result-grid > div { padding: 14px 18px; }
.dev-body .pd-note { margin-top: 14px; }
.dev-body .muted { color: var(--muted); margin: 0; }
@media (max-width: 640px) {
  .dev-chips { padding: 0 22px 20px; }
  .dev-row summary { display: grid; grid-template-columns: 30px 1fr 18px; grid-template-areas: "num main chev" ". pill pill"; gap: 8px 12px; padding: 16px 22px; }
  .dev-num { grid-area: num; } .dev-main { grid-area: main; } .dev-chev { grid-area: chev; }
  .dev-row summary .status-pill { grid-area: pill; justify-self: start; }
  .dev-body { padding: 0 22px 18px; }
  .result .dev-body .steps { padding: 20px 6px 22px; }
}

/* ---- Fotos reales: siempre completas dentro del recuadro (sin recortes) ---- */
.pd-visual, .pcard-visual { position: relative; }
.pd-visual > img.photo, .pcard-visual > img.photo {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
  object-fit: contain; object-position: center; border-radius: 0; background: transparent;
}
.pd-visual > img.photo { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); border-radius: 14px; cursor: zoom-in; }
.pcard-visual > img.photo { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); border-radius: 10px; }
.pd-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.12); color: var(--text); }
.pd-zoom svg { width: 18px; height: 18px; }
/* Visor de fotos a pantalla completa */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; flex-direction: column; animation: lbIn .25s ease both; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 16px 12px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); color: #fff; font-size: 14px; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn[disabled] { opacity: .3; }
.lb-close { position: absolute; top: 12px; right: 12px; }

/* ---- Cuotas bajo el precio ---- */
.pd-installments { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 6px; font-size: 15px; color: var(--muted); }
.pd-installments b { color: var(--text); font-weight: 600; }
.pd-installments svg { width: 13px; height: 13px; color: var(--link); }
.pd-installments:hover { text-decoration: none; color: var(--text); }

/* ---- Simulador de pago ---- */
.sim { margin-top: 30px; padding: 24px; border-radius: var(--radius-s); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line-soft); scroll-margin-top: calc(var(--nav-h) + 16px); }
.sim-head h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.02em; }
.sim-head p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.sim-lines { display: grid; gap: 12px; }
.sim-line { border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; background: var(--bg); animation: simIn .35s var(--ease) both; }
@keyframes simIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sim-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sim-sel select, .sim-amt { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 15px; color: var(--text); }
.sim-sel select { padding: 0 34px 0 12px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; }
.sim-amt { display: flex; align-items: center; gap: 4px; padding: 0 12px; }
.sim-amt span { color: var(--muted); }
.sim-amt input { border: 0; outline: 0; background: none; font: inherit; font-size: 17px; font-weight: 600; width: 100%; min-width: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.sim-amt:focus-within, .sim-sel select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.15); outline: 0; }
.sim-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sim-x:hover { background: var(--bg-2); color: var(--text); }
.sim-x svg { width: 16px; height: 16px; }
.sim-plans { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sim-plan { padding: 8px 13px; border-radius: 980px; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.sim-plan:hover { border-color: var(--text); }
.sim-plan.on { background: var(--text); border-color: var(--text); color: #fff; }
.sim-res { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.sim-res b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim-res small, .sim-res .muted { font-size: 13px; color: var(--muted); }
.sim-add { margin-top: 12px; width: 100%; padding: 13px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--link); font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s; }
.sim-add:hover { border-color: var(--link); background: rgba(0,113,227,.04); }
.sim-bal { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.sim-bal.ok { background: #e9f7ee; color: var(--ok); justify-content: flex-start; font-weight: 600; }
.sim-bal.ok svg { width: 18px; height: 18px; }
.sim-bal.warn { background: #fff4e5; color: #8a5300; }
.sim-total { margin: 14px 0 16px; border-top: 1px solid var(--line-soft); }
.sim-total > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.sim-total dt { color: var(--muted); }
.sim-total dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-total .big dt { color: var(--text); font-weight: 600; }
.sim-total .big dd { font-size: 22px; letter-spacing: -0.02em; }
.sim-legal { margin: 14px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.45; }
@media (max-width: 560px) {
  .sim { padding: 18px 14px; margin-left: -4px; margin-right: -4px; }
  .sim-top { grid-template-columns: 1fr auto; }
  .sim-sel { grid-column: 1 / -1; }
  .sim-line:only-child .sim-top { grid-template-columns: 1fr; }
}
