/* ==========================================================
   Summit iStore — estilos
   Negro obsidiana, cromado del aro del logo, tipografía pesada
   y cursiva elegante para lo emocional. Primero celular.
   ========================================================== */

:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-2: #1C1C1F;
  --raise: #2A2B2F;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.28);
  --text: #F5F5F7;
  --text-2: #D4D5D9;
  --muted: #A1A1A6;
  --muted-2: #86868B;
  --ink: #0B0B0C;
  --chrome: linear-gradient(140deg, #F2F2F4 0%, #8E9096 28%, #E4E5E8 50%, #5E6066 74%, #C9CACE 100%);
  --f-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::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(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.icon { display: block; flex: 0 0 auto; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.hide-sm { display: none; }

/* ---------- Tipografía ---------- */
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.h-display { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
.h-serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.h2 { margin: 12px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 26px; border: 0;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn--light { background: var(--text); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-3); }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 22px; }
.btn--lg { height: 58px; font-size: 16px; border-radius: 29px; }
.btn--block { width: 100%; }
.btn.is-done { background: var(--raise); color: var(--text); border: 1px solid var(--line-2); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.iconbtn {
  width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center;
  position: relative; color: var(--text); text-decoration: none; background: transparent; border: 0;
}
.iconbtn--ring { border: 1px solid var(--line-2); }
.iconbtn--soft { background: rgba(255,255,255,.06); }
.badge {
  position: absolute; top: 7px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--text); color: var(--ink); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.pill--solid { background: var(--text); color: var(--ink); }
.pill--ghost { border: 1px solid rgba(245,245,247,.5); color: var(--text); }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.is-scrolled { background: rgba(11,11,12,.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.topbar__in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.brand__sub { font-weight: 300; font-size: 9px; letter-spacing: .42em; color: var(--muted); margin-top: 3px; }
.topnav { display: none; gap: 34px; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--text-2); padding: 10px 0; }
.topnav a:hover { color: #fff; }
.topbar__actions { display: flex; align-items: center; gap: 4px; }

/* ---------- Silueta de equipo ---------- */
.device {
  --c: #BDB5A6;
  position: relative; display: block; flex: 0 0 auto;
  width: var(--w, 168px); height: calc(var(--w, 168px) * 2.02);
  border-radius: calc(var(--w, 168px) * .226); padding: calc(var(--w, 168px) * .03);
  background: var(--c);
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--c) 72%, #fff) 0%,
    color-mix(in srgb, var(--c) 62%, #000) 40%,
    color-mix(in srgb, var(--c) 82%, #fff) 60%,
    color-mix(in srgb, var(--c) 48%, #000) 100%);
  box-shadow: 0 30px 50px rgba(0,0,0,.55);
}
.device__screen { position: relative; display: block; width: 100%; height: 100%; border-radius: calc(var(--w, 168px) * .196); overflow: hidden; background: linear-gradient(160deg, #26272B 0%, #0E0E10 55%, #1A1B1E 100%); }
.device__island { position: absolute; top: 4%; left: 50%; width: 33%; height: 4.6%; transform: translateX(-50%); border-radius: 99px; background: #050506; }
.device__shine { position: absolute; top: -12%; left: -40%; width: 75%; height: 130%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.09) 50%, rgba(255,255,255,0)); transform: rotate(22deg); }
.device--xs { --w: 30px; box-shadow: none; }
.device--sm { --w: 74px; box-shadow: 0 16px 26px rgba(0,0,0,.45); }
.device--md { --w: 168px; }
.device--lg { --w: 200px; }
.equipo-img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Animaciones al desplazar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 22px var(--gutter) 0; display: grid; gap: 0; }
.hero__copy { position: relative; z-index: 2; }
.hero__title { font-size: 58px; margin-top: 18px; }
.hero__serif { display: block; margin-top: 6px; font-size: 46px; line-height: 1; }
.hero__stage { position: relative; height: 390px; margin-top: 10px; display: flex; align-items: center; justify-content: center; }
.halo { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--chrome); opacity: .9; transform: rotate(var(--halo-rot, 0deg)); transition: transform .1s linear; }
.halo::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #1E1F22 0%, var(--bg) 70%); }
.hero__glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 70%); }
.hero__device { position: relative; transform: rotate(var(--tilt, -8deg)) translateY(var(--lift, 0px)); transition: transform .15s linear; }
.hero__device .device { --w: 168px; box-shadow: 0 40px 60px rgba(0,0,0,.6); }
.hero__lead { margin-top: 4px; max-width: 330px; }
.hero__ctas { display: flex; gap: 10px; margin-top: 22px; }
.hero__ctas .btn { flex: 1; }
.scrollcue { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 0 6px; }
.scrollcue span:first-child { font-size: 10px; letter-spacing: .4em; color: var(--muted-2); }
.scrollcue span:last-child { width: 1px; height: 44px; background: linear-gradient(180deg, var(--muted-2), rgba(134,134,139,0)); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Secciones ---------- */
.section { padding: 64px var(--gutter) 0; }
.section--tight { padding-top: 40px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section__link { font-size: 14px; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.section__link:hover { color: var(--text); }

.trust { margin: 24px var(--gutter) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { padding: 18px 6px; text-align: center; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 15px; }
.trust span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.35; }

.doors { display: grid; gap: 14px; margin-top: 24px; }
.door { display: block; text-decoration: none; border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line-2); transition: transform .4s var(--ease), border-color .3s; }
.door:hover { transform: translateY(-3px); border-color: var(--line-3); }
.door--a { background: linear-gradient(160deg, var(--surface-2), #121214); border-color: rgba(255,255,255,.10); }
.door__title { margin: 18px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.door__text { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.door__cta { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 500; }

.steps { margin-top: 20px; }
.step { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__n { font-family: var(--f-serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--muted-2); width: 44px; flex: 0 0 auto; }
.step h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.step p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Tarjetas de equipo ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 18px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 230px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.card { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; transition: border-color .3s, transform .5s var(--ease); }
.card:hover { border-color: var(--line-2); }
.card__link { text-decoration: none; display: block; flex: 1; }
.card__media { position: relative; aspect-ratio: 1 / 1.05; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #2A2B2F 0%, var(--surface) 78%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media .equipo-img { padding: 8px; }
.card__tag { position: absolute; left: 8px; bottom: 8px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(11,11,12,.72); padding: 3px 6px; border-radius: 6px; }
.card__meta { margin: 10px 0 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 4px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.15; }
.card__spec { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.card__price { margin: 10px 0; font-family: var(--f-display); font-weight: 600; font-size: 15px; }

.empty { margin-top: 24px; border-radius: 22px; border: 1px dashed rgba(255,255,255,.2); padding: 28px 20px; text-align: center; }
.empty p { margin: 0; }
.empty .h-serif { font-size: 24px; }
.empty .btn { margin-top: 16px; }

/* ---------- Bloque claro (Plan Canje) ---------- */
.promo { margin: 64px var(--gutter) 0; border-radius: 28px; padding: 28px 24px; background: var(--text); color: var(--ink); }
.promo .eyebrow { color: #55565B; }
.promo .h2 .h-serif { color: var(--ink); font-weight: 500; }
.promo p { margin: 12px 0 0; font-size: 14px; color: #3A3B40; }
.promo .btn { margin-top: 20px; }

/* ---------- Reseñas ---------- */
.reviews { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 18px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 86%; scroll-snap-align: start; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.review__stars { letter-spacing: .2em; color: var(--text-2); font-size: 13px; }
.review__text { margin: 12px 0 0; font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1.3; }
.review__by { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 18px var(--gutter) 2px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; height: 38px; padding: 0 14px; border-radius: 19px; font-size: 13px; color: var(--muted); border: 1px solid rgba(255,255,255,.12); text-decoration: none; display: inline-flex; align-items: center; }
.filter.is-on { background: var(--raise); color: var(--text); border-color: var(--line-3); }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); margin-top: 22px; }
.seg a, .seg button { height: 44px; border-radius: 22px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.seg .is-on { background: var(--text); color: var(--ink); }

.info { padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Pie ---------- */
.footer { padding: 64px var(--gutter) 120px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__logo { width: 88px; height: 88px; border-radius: 50%; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__note { margin: 24px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.footer__copy { margin: 10px 0 0; font-size: 11px; color: var(--muted-2); }

/* ---------- Barra flotante del pedido ---------- */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 45;
  border-radius: 22px; background: rgba(245,245,247,.96); color: var(--ink);
  padding: 10px 10px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5); animation: rise .5s var(--ease);
}
.cartbar__txt { font-size: 13px; line-height: 1.3; }
.cartbar__txt strong { font-family: var(--f-display); font-size: 15px; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast {
  position: fixed; left: 50%; top: 76px; transform: translate(-50%, -20px); z-index: 60; opacity: 0; pointer-events: none;
  background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 500;
  box-shadow: 0 16px 30px rgba(0,0,0,.4); transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #F6D5D3; }

/* ---------- Página de catálogo ---------- */
.page-head { padding: 18px var(--gutter) 0; }
.page-head .h-display { font-size: 44px; margin-top: 10px; }
.page-head .lead { margin-top: 8px; font-size: 13px; }
.catalog { padding: 0 var(--gutter); }

/* ---------- Detalle de equipo ---------- */
.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; height: 460px; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery__slide::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.09), rgba(255,255,255,0) 65%); }
.gallery__slide .equipo-img { position: relative; max-height: 420px; padding: 0 24px; }
.gallery__slide .device { --w: 196px; transform: rotate(-6deg); }
.gallery__tag { position: absolute; left: var(--gutter); bottom: 34px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(20,20,22,.8); padding: 5px 9px; border-radius: 8px; }
.dots { display: flex; justify-content: center; gap: 4px; padding-top: 4px; }
.dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.dots span { display: block; width: 6px; height: 4px; border-radius: 2px; background: #55565B; transition: width .3s, background .3s; }
.dots .is-on span { width: 20px; background: var(--text); }
.detail { padding: 22px var(--gutter) 0; }
.detail__title { font-size: 40px; margin-top: 14px; }
.detail__spec { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.detail__price { margin-top: 18px; font-family: var(--f-display); font-weight: 700; font-size: 32px; letter-spacing: -.02em; }
.specs { margin: 26px var(--gutter) 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.specs > div { padding: 18px; border-bottom: 1px solid var(--line); }
.specs > div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { margin: 0; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 6px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.meter { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--raise); }
.meter span { display: block; height: 4px; border-radius: 2px; background: var(--text); }
.desc { margin: 14px var(--gutter) 0; font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-line; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.swatch { width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.swatch span { width: 30px; height: 30px; border-radius: 15px; }
.swatch:hover { border-color: var(--text); }
.banner { margin: 34px var(--gutter) 0; border-radius: 22px; border: 1px solid var(--line-2); padding: 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.banner strong { display: block; font-family: var(--f-display); font-size: 15px; }
.banner span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.buybar { position: sticky; bottom: 0; z-index: 30; padding: 14px 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); margin-top: 40px; background: linear-gradient(180deg, rgba(11,11,12,0) 0%, var(--bg) 30%); display: flex; gap: 10px; }
.buybar .btn { flex: 1; height: 54px; border-radius: 27px; }
.buybar .iconbtn { width: 54px; height: 54px; border-radius: 27px; border: 1px solid var(--line-3); }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.field input, .field select, .field textarea {
  height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); padding: 0 16px; font-size: 16px; outline: none; transition: border-color .2s;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(245,245,247,.6); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field small { color: var(--muted-2); font-size: 12px; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span { height: 50px; border-radius: 14px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; border: 1px solid rgba(255,255,255,.12); }
.radio span::after { content: ''; width: 18px; height: 18px; border-radius: 9px; border: 1px solid #6E6F74; box-sizing: border-box; }
.radio input:checked + span { background: var(--surface-2); border-color: rgba(245,245,247,.6); }
.radio input:checked + span::after { border: 5px solid var(--text); }
.radio input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.pills-select { display: flex; flex-wrap: wrap; gap: 8px; }
.pills-select label { position: relative; }
.pills-select input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills-select span { height: 44px; padding: 0 14px; border-radius: 22px; font-size: 13px; display: flex; align-items: center; color: var(--text-2); border: 1px solid var(--line-2); }
.pills-select input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.pills-select input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.switch { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border: 0; padding: 0; text-align: left; }
.switch strong { display: block; font-family: var(--f-display); font-size: 16px; }
.switch small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.switch__ui { flex: 0 0 auto; width: 50px; height: 30px; border-radius: 15px; background: #3A3B40; position: relative; transition: background .2s; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: var(--text); transition: left .2s var(--ease), background .2s; }
.switch[aria-pressed="true"] .switch__ui { background: var(--text); }
.switch[aria-pressed="true"] .switch__ui::after { left: 23px; background: var(--ink); }
.box { margin: 28px var(--gutter) 0; border-radius: 22px; border: 1px solid var(--line-2); padding: 18px; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photos__item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.photos__item img { width: 100%; height: 100%; object-fit: cover; }
.photos__item button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(11,11,12,.8); color: var(--text); display: flex; align-items: center; justify-content: center; }
.photos__add { aspect-ratio: 1; border-radius: 12px; border: 1px dashed rgba(255,255,255,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--muted); cursor: pointer; position: relative; }
.photos__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.alert { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert--error { background: rgba(246,213,211,.12); border: 1px solid rgba(246,213,211,.35); color: #F6D5D3; }
.alert--ok { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }

/* ---------- Pedido ---------- */
.order-items { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.oitem { display: flex; gap: 14px; align-items: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 12px; }
.oitem__media { width: 64px; height: 84px; flex: 0 0 auto; border-radius: 14px; background: radial-gradient(circle, #2A2B2F, var(--surface)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.oitem__media img { width: 100%; height: 100%; object-fit: contain; }
.oitem__body { flex: 1; min-width: 0; }
.oitem__body strong { display: block; font-family: var(--f-display); font-size: 15px; }
.oitem__body span { display: block; font-size: 12px; color: var(--muted); }
.oitem__body em { display: block; margin-top: 6px; font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.oitem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.oitem__price { font-family: var(--f-display); font-weight: 600; font-size: 14px; white-space: nowrap; }
.oitem__rm { width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 4px 0; }
.total > span { white-space: nowrap; }
.total strong { font-family: var(--f-display); font-size: 22px; text-align: right; }
.total strong small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 400; color: var(--muted); }
.bubble-wrap { border-radius: 22px; background: #121A16; border: 1px solid rgba(255,255,255,.06); padding: 16px; }
.bubble { margin-left: 24px; border-radius: 16px 16px 4px 16px; background: #1F3A2E; padding: 14px 14px 10px; font-size: 13px; line-height: 1.55; color: #E8F0EC; white-space: pre-line; word-break: break-word; }

/* ---------- Ingreso / cuenta ---------- */
.page-auth main, .auth { max-width: 420px; margin: 0 auto; padding: 40px 24px 60px; }
.auth { display: flex; flex-direction: column; }
.auth__logo { width: 96px; height: 96px; border-radius: 50%; margin: 20px auto 0; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.auth__title { margin: 26px 0 0; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -.03em; }
.auth__sub { margin: 6px 0 24px; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--text-2); }
.auth__alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.auth__alt a { color: var(--text); }
.panel-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 20px; margin-top: 16px; }

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .hide-sm { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review { flex-basis: 420px; }
  .rail > .card { flex-basis: 260px; }
  .cartbar { left: auto; right: 24px; width: 380px; }
  .specs { max-width: 640px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 72px; }
  body { font-size: 16px; }
  .topnav { display: flex; }
  .brand img { width: 42px; height: 42px; }
  .brand__name { font-size: 18px; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; min-height: 680px; max-width: 1440px; margin: 0 auto; }
  .hero__title { font-size: 108px; line-height: .9; letter-spacing: -.045em; }
  .hero__serif { font-size: 76px; }
  .hero__lead { font-size: 17px; max-width: 480px; margin-top: 28px; }
  .hero__ctas { max-width: 460px; }
  .hero__ctas .btn { flex: 0 1 auto; height: 56px; padding: 0 30px; }
  .hero__stage { height: 600px; margin: 0; }
  .halo { width: 520px; height: 520px; }
  .halo::after { inset: 5px; }
  .hero__device .device { --w: 250px; }
  .scrollcue { display: none; }
  .section, .page-head, .catalog, .detail { max-width: 1440px; margin-left: auto; margin-right: auto; }
  .trust, .promo { max-width: calc(1440px - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
  .trust strong { font-size: 18px; }
  .h2 { font-size: 44px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .step { border-bottom: 0; border-top: 1px solid var(--line); }
  .promo { padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
  .promo .btn { justify-self: start; }
  .product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
  .product .gallery__slide { height: 620px; }
  .product .gallery__slide .device { --w: 250px; }
  .product .detail, .product .specs, .product .desc, .product .banner { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .product .banner { padding: 18px; }
  .product .buybar { position: static; padding: 0; margin-top: 26px; background: none; }
  .page-narrow { max-width: 640px; margin: 0 auto; }
}

/* ==========================================================
   Panel administrativo
   ========================================================== */
.admin { display: flex; flex-direction: column; min-height: 100vh; }
.admin__side { border-bottom: 1px solid var(--line); padding: 14px 16px; }
.admin__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin__brand img { width: 36px; height: 36px; border-radius: 50%; }
.admin__brand span { font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.admin__brand small { font-weight: 300; font-size: 10px; letter-spacing: .4em; color: var(--muted); margin-left: 4px; }
.admin__nav { display: flex; gap: 4px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; font-size: 14px; }
.admin__nav a { flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-2); }
.admin__nav a.is-on { background: var(--surface-2); color: var(--text); }
.admin__nav .count { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--text); color: var(--ink); font-weight: 600; }
.admin__user { display: none; }
.admin__main { flex: 1; min-width: 0; padding: 22px 16px 60px; }
.admin__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.admin__head h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.admin__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tablebox { margin-top: 20px; border-radius: 18px; border: 1px solid var(--line); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.table th { text-align: left; padding: 13px 16px; background: var(--surface); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table td { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table .thumb { width: 38px; height: 48px; border-radius: 8px; background: radial-gradient(circle, #2A2B2F, var(--surface)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.table .thumb img { width: 100%; height: 100%; object-fit: cover; }
.table .name { display: flex; gap: 12px; align-items: center; }
.table .name strong { display: block; font-weight: 600; }
.table .name small { display: block; color: var(--muted); font-size: 12px; }
.tag { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.tag--solid { background: var(--text); color: var(--ink); }
.tag--ghost { border: 1px solid rgba(245,245,247,.5); }
.tag--off { border: 1px dashed var(--line-3); color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.mini { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mini:hover { border-color: var(--line-3); color: var(--text); }
.mini--danger:hover { border-color: #F6D5D3; color: #F6D5D3; }
.admin-form { margin-top: 20px; display: grid; gap: 14px; max-width: 760px; }
.admin-form .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-form .field input, .admin-form .field select, .admin-form .field textarea { height: 46px; border-radius: 12px; font-size: 15px; background: var(--bg); }
.admin-form .field textarea { height: auto; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: #F5F5F7; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] { width: 46px; height: 46px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); flex: 0 0 auto; }
.color-row input[type="text"] { flex: 1; }
.photo-admin { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-admin figure { margin: 0; width: 110px; }
.photo-admin img { width: 110px; height: 130px; object-fit: cover; border-radius: 12px; background: var(--surface); }
.photo-admin figcaption { margin-top: 6px; }
.cards-admin { display: grid; gap: 12px; margin-top: 20px; }
.cards-admin .panel-card { margin: 0; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.model-card { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.model-card h3 { margin: 0; font-family: var(--f-display); font-size: 17px; }
.model-card .refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.model-card .refs figure { margin: 0; width: 70px; text-align: center; }
.model-card .refs img { width: 70px; height: 84px; object-fit: cover; border-radius: 10px; }
.model-card .refs figcaption { font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.2; }
.model-card form { margin-top: 12px; display: grid; gap: 8px; }
.model-card select, .model-card input[type="file"] { width: 100%; font-size: 13px; }
.model-card select { height: 40px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); padding: 0 10px; }

@media (min-width: 900px) {
  .admin { flex-direction: row; }
  .admin__side { width: 250px; flex: 0 0 250px; border-bottom: 0; border-right: 1px solid var(--line); padding: 26px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
  .admin__nav { flex-direction: column; overflow: visible; margin-top: 30px; }
  .admin__nav a { justify-content: space-between; height: 44px; }
  .admin__user { display: block; margin-top: auto; padding: 0 8px; font-size: 12px; color: var(--muted-2); }
  .admin__user a { color: var(--text-2); }
  .admin__main { padding: 30px 36px 60px; }
}

/* ==========================================================
   Panel: stock y contabilidad
   ========================================================== */
.admin__navlabel { display: none; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); padding: 16px 14px 4px; }
@media (min-width: 900px) { .admin__navlabel { display: block; } .admin__navlabel:first-child { padding-top: 0; } }

.mbadge { display: inline-flex; height: 22px; align-items: center; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mbadge--buena { background: #8FE0B4; color: #0B0B0C; }
.mbadge--ajustada { border: 1px solid #F2C46B; color: #F2C46B; }
.mbadge--baja { border: 1px dashed #F09A5B; color: #F09A5B; }
.mbadge--perdida { background: #E5484D; color: #FFFFFF; }
.mbadge--na { border: 1px dashed var(--line-3); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.pos { color: #8FE0B4; }
.neg { color: #F09A5B; }
.warn { color: #F2C46B; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.kpi { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 16px; min-width: 0; }
.kpi--light { background: var(--text); color: var(--ink); border-color: var(--text); }
.kpi__label { margin: 0; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kpi--light .kpi__label { color: #55565B; }
.kpi__value { margin: 8px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.kpi__sub { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.kpi--light .kpi__sub { color: #3A3B40; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } .kpi { padding: 18px; } .kpi__value { font-size: 27px; } }

.panes { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 1100px) { .panes { grid-template-columns: 1.5fr 1fr; } .panes--even { grid-template-columns: 1fr 1fr; } }
.pane { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 20px; min-width: 0; }
.pane h2 { margin: 0; font-family: var(--f-display); font-size: 17px; }
.pane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bars { height: 240px; margin-top: 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; border-bottom: 1px solid var(--line-2); }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; color: var(--muted); }
.bars i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: #3A3B40; min-height: 2px; }
.bars div.is-now i { background: var(--text); }
.bars div.is-now span { color: var(--text); font-weight: 600; }
.bars i.is-neg { background: #E5484D; }
.bars-x { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.mlist { display: flex; flex-direction: column; margin-top: 10px; }
.mlist > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.mlist > div:last-child { border-bottom: 0; }
.mlist small { display: block; color: var(--muted); font-size: 12px; }
.notice { margin-top: 14px; border-radius: 18px; border: 1px solid rgba(242,196,107,.45); padding: 14px 18px; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.notice::before { content: ''; width: 10px; height: 10px; border-radius: 5px; background: #F2C46B; flex: 0 0 auto; }
.seg-inline { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.result { border-radius: 22px; background: var(--text); color: var(--ink); padding: 18px; }
.result__label { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #55565B; }
.result__value { margin: 6px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.result__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; font-size: 12px; color: #3A3B40; }
.result__grid strong { display: block; font-size: 15px; color: var(--ink); }
.result .mbadge--ajustada { background: #B07A12; color: #fff; border: 0; }
.result .mbadge--baja { background: #B4501C; color: #fff; border: 0; }
.result .mbadge--buena { background: #1E6B45; color: #fff; }
.result .mbadge--na { border-color: #8E9096; color: #3A3B40; }
.box2 { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 18px; }
.box2--line { background: transparent; border-color: var(--line-2); }
.box2 h2, .box2 h3 { margin: 0; font-family: var(--f-display); font-size: 16px; }
.sublabel { margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.rowline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.rowline small { color: var(--muted-2); }
.rowline form { margin: 0; }
.stack { display: grid; gap: 14px; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-sm label { position: relative; }
.chips-sm input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips-sm span { height: 34px; padding: 0 12px; border-radius: 17px; font-size: 12px; display: flex; align-items: center; color: var(--text-2); border: 1px solid var(--line-2); }
.chips-sm input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.chips-sm input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.pago { border-radius: 14px; border: 1px solid rgba(255,255,255,.1); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.pago .field input, .pago .field select { height: 40px; font-size: 14px; }
.pay-state { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.pay-state--ok { background: #8FE0B4; color: #0B0B0C; }
.pay-state--pend { border: 1px solid #F2C46B; color: #F2C46B; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.split { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 1100px) { .split--3 { grid-template-columns: 1fr 1.15fr 1.1fr; align-items: start; } .split--2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.msg-bubble { border-radius: 16px; background: #121A16; border: 1px solid rgba(255,255,255,.06); padding: 14px; }
.msg-bubble pre { margin: 0; border-radius: 14px 14px 4px 14px; background: #1F3A2E; padding: 12px 14px; font: 13px/1.6 var(--f-body); color: #E8F0EC; white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tr.is-dim td { color: var(--muted-2); }
.table tr.is-total td { background: var(--text); color: var(--ink); font-weight: 700; }
.admin-form .cols > *, .pago > *, .field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.result__value.is-small { font-size: 22px; }
