/* =====================================================
   CONFIRMACIÓN — AGRO INTEL
   Mismo ADN que Agro Intel (blanco · negro · amarillo #ffc20e · DM Sans)
   Dirección: minimalista, futurista, líneas finas, cero glow.
===================================================== */

:root {
  --c-bg:       #ffffff;
  --c-bg2:      #f6f6f2;
  --c-bg3:      #efefea;
  --c-surface:  #ffffff;
  --c-surface2: #f6f6f2;
  --c-ink:      #111111;
  --c-ink2:     #1a1a1a;

  --c-text:     #111111;
  --c-text2:    #33332f;
  --c-text3:    #5c5c56;
  --c-border:   #e5e5e0;
  --c-border2:  #cfcfc8;

  --c-gold:     #ffc20e;
  --c-gold2:    #e6ac00;
  --c-gold-dim: rgba(255,194,14,.14);

  --c-green:    #138a43;
  --c-green-dim:rgba(19,138,67,.08);
  --c-red:      #d1342b;
  --c-red-dim:  rgba(209,52,43,.07);

  --ff-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r:    10px;
  --r-lg: 14px;

  --gutter: clamp(16px, 3vw, 48px);
  --header-h: 64px;

  --ease:  cubic-bezier(.2,.9,.2,1);
  --ease2: cubic-bezier(.16,1,.3,1);
}

/* =====================================================
   RESET
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  font-weight: 500;
  background: var(--c-bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
.hidden { display: none !important; }
::selection { background: var(--c-gold); color: var(--c-ink); }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 9999;
  padding: 8px 14px; border-radius: var(--r);
  background: var(--c-ink); color: #fff; font-weight: 600; font-size: 13px;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; outline: 2px solid var(--c-gold); }

/* =====================================================
   KEYFRAMES
===================================================== */
@keyframes rise     { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes lineUp   { from { transform: translateY(105%); } to { transform: none; } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes pop      { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes scan     { 0% { transform: translateY(-10%); opacity: 0; } 10%,90% { opacity: 1; } 100% { transform: translateY(110vh); opacity: 0; } }
@keyframes drift    { from { background-position: 0 0; } to { background-position: 28px 28px; } }
@keyframes floatA   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink    { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes draw     { to { stroke-dashoffset: 0; } }
@keyframes shake    { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes sheetUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* barra de scroll */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* =====================================================
   HEADER
===================================================== */
.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--c-border); }
.top__inner {
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.top__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark {
  position: relative; width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
}
.mark img { width: 100%; height: 100%; object-fit: contain; }
.mark__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--c-ink); color: var(--c-gold);
  border-radius: 8px; font-weight: 700; font-size: 13px; opacity: 0;
  transition: opacity .2s;
}
.top__text { min-width: 0; line-height: 1.15; }
.top__title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.top__sub {
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-text2); margin-top: 2px; white-space: nowrap;
}
.top__pills { display: flex; gap: 8px; margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border: 1px solid var(--c-border); border-radius: 999px;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-text2);
  transition: border-color .25s, color .25s;
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-gold); }
.pill:hover { border-color: var(--c-ink); color: var(--c-ink); }
.top__admin {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; color: var(--c-text2); opacity: .35;
  transition: opacity .2s, color .2s, background .2s;
}
.top__admin:hover, .top__admin:focus-visible { opacity: 1; color: var(--c-ink); background: rgba(0,0,0,.05); }
.top__line { display: none; }

/* =====================================================
   PAGE
===================================================== */
.page { width: 100%; padding: 0 var(--gutter) 56px; }

/* =====================================================
   BOTONES
===================================================== */
.btn-main, .btn-outline, .btn-ghost {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r); font-weight: 600; font-size: 14.5px; letter-spacing: -.005em;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .2s var(--ease), opacity .2s;
}
.btn-main { background: var(--c-ink); color: #fff; border: 1px solid var(--c-ink); }
.btn-main::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease2);
}
.btn-main:hover:not(:disabled) { color: var(--c-ink); }
.btn-main:hover:not(:disabled)::before { transform: scaleX(1); }
.btn-main svg { transition: transform .3s var(--ease); }
.btn-main:hover:not(:disabled) svg { transform: translateX(4px); }
.btn-main:active:not(:disabled), .btn-outline:active:not(:disabled) { transform: scale(.98); }

.btn-outline { background: transparent; border: 1px solid var(--c-border2); color: var(--c-text); }
.btn-outline:hover:not(:disabled) { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.btn-outline.sm, .btn-main.sm { min-height: 38px; padding: 0 14px; font-size: 13px; }

.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--c-text); padding: 0 6px; }
.btn-ghost::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 11px; height: 1px;
  background: currentColor; transform: scaleX(.25); transform-origin: left;
  transition: transform .4s var(--ease2);
}
.btn-ghost:hover::after { transform: scaleX(1); }

.btn-main:disabled, .btn-outline:disabled { opacity: .35; cursor: not-allowed; }
.btn-main.loading { pointer-events: none; }
.btn-main.loading span { opacity: .5; }
.btn-main.loading::after {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(24px, 5vw, 96px); align-items: center;
  padding: clamp(24px, 5vh, 64px) 0;
}
.hero__bg { position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: 0; overflow: hidden; pointer-events: none; }
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--c-border2) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(115deg, transparent 5%, #000 55%, transparent 100%);
          mask-image: linear-gradient(115deg, transparent 5%, #000 55%, transparent 100%);
  animation: drift 14s linear infinite;
}
.hero__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--c-gold); animation: scan 7s linear infinite;
}
.hero__content, .hero__card-stack { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text2); margin-bottom: 26px;
  animation: fade .8s var(--ease) both;
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--c-gold); border-radius: 50%; animation: blink 1.8s ease-in-out infinite; }

.hero__h1 {
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 1; letter-spacing: -.045em; font-weight: 700;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero__h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__h1 .ln > span { display: block; animation: lineUp 1s var(--ease2) both; }
.hero__h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero__h1 em { font-style: normal; color: var(--c-text3); }

.hero__lead {
  max-width: 560px; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--c-text2);
  line-height: 1.6; margin-bottom: 22px;
  animation: rise .9s var(--ease2) .3s both;
}
.hero__lead strong { color: var(--c-text); font-weight: 600; }

.hero__tip {
  display: block; max-width: 560px; line-height: 1.55;
  padding: 12px 14px; border: 1px solid var(--c-border); border-left: 2px solid var(--c-gold);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 13.5px; color: var(--c-text2);
  animation: rise .9s var(--ease2) .4s both;
}
.hero__tip svg { display: inline-block; vertical-align: -3px; margin-right: 8px; color: var(--c-ink); }
.hero__tip strong { color: var(--c-text); }

.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 38px; animation: rise .9s var(--ease2) .5s both; }
.hero__actions .btn-main { min-height: 54px; padding: 0 28px; font-size: 15.5px; }

.hero__steps {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  animation: rise .9s var(--ease2) .6s both;
}
.step-pill { display: flex; align-items: baseline; gap: 9px; }
.step-num { font-family: var(--ff-mono); font-size: 11px; color: var(--c-text3); letter-spacing: .06em; }
.step-txt { font-size: 13.5px; font-weight: 500; }
.step-arrow { width: 28px; height: 1px; background: var(--c-border2); }

/* panel de especificaciones */
.hero__card-stack { display: grid; gap: 0; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: rgba(255,255,255,.85); overflow: hidden; animation: pop .9s var(--ease2) .35s both; }
.hero__card-stack::before {
  content: "SE ENVÍA"; display: block; padding: 11px 18px;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--c-text2);
  border-bottom: 1px solid var(--c-border); background: var(--c-bg2);
}
.hcard {
  display: flex; align-items: center; gap: 16px; padding: 20px 18px;
  border-bottom: 1px solid var(--c-border);
  transition: background .3s var(--ease), padding-left .35s var(--ease2);
  animation: slideIn .7s var(--ease2) both;
}
.hcard:last-child { border-bottom: 0; }
.hc1 { animation-delay: .55s; } .hc2 { animation-delay: .65s; } .hc3 { animation-delay: .75s; } .hc4 { animation-delay: .85s; }
.hcard:hover { background: var(--c-bg2); padding-left: 26px; }
.hc-icon { font-family: var(--ff-mono); font-size: 12px; color: var(--c-ink); background: var(--c-gold); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; font-weight: 600; }
.hc-text { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }

/* =====================================================
   WIZARD — layout a pantalla completa
===================================================== */
.wizard {
  display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px); align-items: start;
  padding-top: clamp(12px, 2vw, 28px);
}
.wiz-side {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--c-ink); color: #fff;
  border-radius: var(--r-lg); padding: 22px;
  display: grid; gap: 26px;
  animation: slideIn .7s var(--ease2) both;
}
.wiz-main { min-width: 0; display: grid; gap: 14px; }

/* status */
.wiz-step-label { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.wiz-step-hint { margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.62); }
.wiz-status { display: grid; gap: 18px; }
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.schip {
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.6);
  transition: color .3s, border-color .3s, background .3s;
}
.schip.ok { color: var(--c-ink); background: var(--c-gold); border-color: var(--c-gold); }

/* progreso */
.wiz-progress { display: grid; gap: 14px; }
.prog-track { height: 2px; background: rgba(255,255,255,.16); position: relative; overflow: hidden; border-radius: 2px; }
.prog-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--c-gold); transition: width .7s var(--ease2); }
.prog-steps { display: flex; flex-direction: column; align-items: stretch; }
.pstep {
  display: flex; align-items: center; gap: 14px; padding: 6px 0; text-align: left;
  color: rgba(255,255,255,.45); transition: color .3s;
}
.pstep-num {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22);
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease);
}
.pstep-lbl { font-size: 14px; font-weight: 500; }
.pstep:hover { color: #fff; }
.pstep.active { color: #fff; }
.pstep.active .pstep-num { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); transform: scale(1.06); }
.pstep.done { color: rgba(255,255,255,.8); }
.pstep.done .pstep-num { background: #fff; border-color: #fff; color: var(--c-ink); }
.pstep-line { width: 1px; height: 14px; background: rgba(255,255,255,.18); margin-left: 15px; }
.prog-meta {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* superficie */
.wiz-surface { min-width: 0; }
.wstep:not(.hidden) { animation: fade .4s var(--ease) both; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 4px 0 18px; margin-bottom: 16px; border-bottom: 1px solid var(--c-border);
  animation: rise .6s var(--ease2) both;
}
.section-header h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }

.tag {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--c-border2); background: transparent;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-text2); white-space: nowrap;
}
.tag-accent { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.tag-sm { padding: 4px 9px; font-size: 10px; }

/* nav inferior */
.wiz-nav {
  position: sticky; bottom: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px; background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--c-border2); border-radius: var(--r-lg);
}
.wiz-nav__right { display: flex; gap: 8px; }

/* =====================================================
   CARDS
===================================================== */
.card {
  position: relative; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: clamp(16px, 2.2vw, 28px);
  animation: rise .7s var(--ease2) both; animation-delay: var(--card-delay, 0ms);
  transition: border-color .3s var(--ease);
}
.card:hover { border-color: var(--c-border2); }
.card::before, .card::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border: 2px solid var(--c-gold); transition: width .4s var(--ease2), height .4s var(--ease2);
}
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-lg); }
.card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-lg); }
.card:hover::before, .card:hover::after { width: 22px; height: 22px; }

.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.card-head h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.025em; }
.section-lead { color: var(--c-text2); font-size: 14px; max-width: 70ch; margin-bottom: 18px; }

/* =====================================================
   FORM
===================================================== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 16px; }
.card > .field { margin-bottom: 16px; }
.card > .field:last-child, .form-grid:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label {
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-ink); font-weight: 700; line-height: 1.4;
}
.req { color: var(--c-ink); background: var(--c-gold); border-radius: 3px; padding: 0 4px; font-weight: 600; }
.field input, .field select, .field textarea, .prod-extra input, .cam-alias input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--c-border2); border-radius: var(--r);
  background: var(--c-surface); color: var(--c-ink); font-size: 15px; font-weight: 600;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder, .prod-extra input::placeholder, .cam-alias input::placeholder { color: var(--c-text3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-text3); }
.field input:focus, .field select:focus, .field textarea:focus, .prod-extra input:focus, .cam-alias input:focus {
  outline: none; border-color: var(--c-ink); box-shadow: 0 1px 0 0 var(--c-ink);
}
.field-hint { font-size: 12px; color: var(--c-text2); font-weight: 500; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--c-red); background: var(--c-red-dim); }
.field.error { animation: shake .35s var(--ease); }

/* =====================================================
   PRODUCTOS
===================================================== */
.buckets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.bucket { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg); }
.bucket-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--c-bg2); border-bottom: 1px solid var(--c-border);
}
.bucket-title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.bucket-sub { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text2); margin-top: 2px; }
.bucket-badge {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px;
  display: grid; place-items: center; background: var(--c-ink); color: #fff;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
  transition: background .3s, color .3s;
}
.bucket-badge.has, .bucket-badge.ok { background: var(--c-gold); color: var(--c-ink); }
.prod-list { display: grid; }
.prod-item {
  display: grid; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  animation: rise .5s var(--ease2) both;
  transition: background .25s;
}
.prod-item:last-child { border-bottom: 0; }
.prod-item:hover { background: var(--c-bg2); }
.prod-item:nth-child(2) { animation-delay: 40ms; } .prod-item:nth-child(3) { animation-delay: 80ms; }
.prod-item:nth-child(4) { animation-delay: 120ms; } .prod-item:nth-child(5) { animation-delay: 160ms; }
.prod-check { display: flex; align-items: flex-start; gap: 12px; }
.prod-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.prod-desc { font-size: 12.5px; color: var(--c-text2); margin-top: 3px; }
.prod-extra { animation: rise .35s var(--ease2) both; }
.prod-extra input { min-height: 42px; font-size: 14px; }

.chk {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--c-border2); border-radius: 6px;
  background: var(--c-surface); cursor: pointer; position: relative;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.chk:hover { border-color: var(--c-ink); }
.chk:checked { background: var(--c-ink); border-color: var(--c-ink); }
.chk:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid var(--c-gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
  animation: pop .25s var(--ease) both;
}
.chk:active { transform: scale(.9); }

.stepper {
  display: inline-flex; align-items: center; justify-self: start;
  border: 1px solid var(--c-border2); border-radius: var(--r); overflow: hidden;
}
.stepper button {
  width: 42px; height: 40px; font-size: 18px; line-height: 1;
  transition: background .2s, color .2s;
}
.stepper button:hover:not(:disabled) { background: var(--c-ink); color: #fff; }
.stepper button:active:not(:disabled) { background: var(--c-gold); color: var(--c-ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper .val { min-width: 44px; text-align: center; font-family: var(--ff-mono); font-weight: 600; font-size: 14px; border-inline: 1px solid var(--c-border); line-height: 40px; }

/* =====================================================
   PLAN CONECTIVIDAD
===================================================== */
.auto-banner, .must-hint {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px dashed var(--c-border2); border-radius: var(--r);
  font-size: 13.5px; color: var(--c-text2); margin-bottom: 14px;
}
.auto-banner strong, .must-hint strong { color: var(--c-text); }
.auto-banner__dot, .must-hint__dot { width: 8px; height: 8px; flex: none; background: var(--c-gold); border-radius: 50%; animation: blink 1.8s ease-in-out infinite; }
.must-hint.ok { border-color: var(--c-green); background: var(--c-green-dim); }
.must-hint.ok .must-hint__dot { background: var(--c-green); animation: none; }

.plan-card { background: var(--c-ink); color: #fff; border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); animation: pop .5s var(--ease2) both; }
.plan-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.plan-kicker { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); }
.plan-name { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; }
.plan-sub { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 6px; }
.plan-price { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.pchip { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); animation: pop .4s var(--ease2) both; }
.plan-reason { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.7); }
.plan-reason strong { color: #fff; display: block; margin-bottom: 4px; }

.info-box {
  border: 1px solid var(--c-border); border-left: 2px solid var(--c-ink);
  border-radius: 0 var(--r) var(--r) 0; padding: 14px 16px; font-size: 13.5px; color: var(--c-text2); background: var(--c-bg);
}
.info-box > strong { display: block; color: var(--c-text); margin-bottom: 6px; font-size: 14px; }
.info-box p { margin-bottom: 6px; }
.info-box ul, .info-mini ul { display: grid; gap: 6px; }
.info-box li, .info-mini li { position: relative; padding-left: 16px; }
.info-box li::before, .info-mini li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--c-text2); }
.two-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.info-mini { border: 1px solid var(--c-border); border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; color: var(--c-text2); }
.info-mini__title { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--c-text); }
.info-mini__title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-gold); }
.info-mini.green { background: var(--c-green-dim); border-color: rgba(19,138,67,.25); }
.info-mini.green .info-mini__title::before { background: var(--c-green); }
.info-mini.red { background: var(--c-red-dim); border-color: rgba(209,52,43,.22); }
.info-mini.red .info-mini__title::before { background: var(--c-red); }

/* =====================================================
   MANTENIMIENTO
===================================================== */
.mnt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.mnt-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px;
  border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg);
  cursor: pointer; overflow: hidden;
  animation: rise .6s var(--ease2) both;
  transition: border-color .3s var(--ease), transform .35s var(--ease2), background .3s;
}
.mnt-card:nth-child(2) { animation-delay: 60ms; } .mnt-card:nth-child(3) { animation-delay: 120ms; }
.mnt-card:nth-child(4) { animation-delay: 180ms; } .mnt-card:nth-child(5) { animation-delay: 240ms; }
.mnt-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--c-border2); transform-origin: left; transition: background .3s; }
.mnt-card.tier-gold::before     { background: var(--c-gold); }
.mnt-card.tier-platinum::before { background: var(--c-ink); }
.mnt-card.tier-silver::before   { background: var(--c-text3); }
.mnt-card:hover { border-color: var(--c-ink); transform: translateY(-3px); }
.mnt-card.selected { border-color: var(--c-ink); background: var(--c-bg2); outline: 1px solid var(--c-ink); }
.mnt-chip { align-self: flex-start; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text2); border: 1px solid var(--c-border2); border-radius: 999px; padding: 3px 9px; }
.mnt-price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mnt-title { font-weight: 600; font-size: 15px; }
.mnt-sub { font-size: 13px; color: var(--c-text2); }
.mnt-preview { display: flex; flex-wrap: wrap; gap: 5px; }
.mnt-mini { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: var(--c-bg3); color: var(--c-text2); }
.mnt-details { display: none; padding-top: 12px; border-top: 1px solid var(--c-border); }
.mnt-card.selected .mnt-details { display: block; animation: rise .4s var(--ease2) both; }
.mnt-details-title { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text2); margin-bottom: 8px; }
.mnt-benefits { display: grid; gap: 8px; }
.benefit { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.benefit i { width: 20px; height: 20px; border-radius: 6px; background: var(--c-gold); color: var(--c-ink); display: grid; place-items: center; font-style: normal; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 600; }
.benefit span { font-size: 13px; color: var(--c-text2); line-height: 1.45; }
.mnt-btn {
  margin-top: auto; min-height: 42px; border: 1px solid var(--c-border2); border-radius: var(--r);
  font-weight: 600; font-size: 13.5px; transition: background .25s, color .25s, border-color .25s;
}
.mnt-card:hover .mnt-btn { border-color: var(--c-ink); }
.mnt-card.selected .mnt-btn { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-gold); }
.mini-faq { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.faq-q { font-weight: 600; }
.faq-a { color: var(--c-text2); }

/* =====================================================
   ENVÍO / RETIRO
===================================================== */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ship-tile {
  position: relative; display: flex; gap: 16px; align-items: flex-start; text-align: left;
  padding: 20px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg);
  transition: border-color .3s var(--ease), transform .35s var(--ease2), background .3s;
}
.ship-tile:hover { border-color: var(--c-ink); transform: translateY(-3px); }
.ship-tile.selected { border-color: var(--c-ink); background: var(--c-bg2); outline: 1px solid var(--c-ink); }
.ship-tile__icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--c-border2); color: var(--c-ink);
  transition: background .3s, border-color .3s;
}
.ship-tile.selected .ship-tile__icon { background: var(--c-gold); border-color: var(--c-gold); }
.ship-tile__body { min-width: 0; padding-right: 4px; }
.ship-tile__title { font-weight: 700; font-size: 16px; letter-spacing: -.015em; }
.ship-tile__sub { font-size: 13px; color: var(--c-text2); margin-top: 2px; }
.ship-tile__list { display: grid; gap: 4px; margin: 12px 0; font-size: 12.5px; color: var(--c-text2); }
.ship-tile__list strong { color: var(--c-text); font-weight: 600; }
.ship-tile__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ship-tile__chips span { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .03em; padding: 4px 8px; border-radius: 6px; background: var(--c-bg3); color: var(--c-text2); }
.ship-tile__badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--c-border2); color: var(--c-text2);
  transition: background .3s, color .3s, border-color .3s;
}
.ship-tile.selected .ship-tile__badge { background: var(--c-ink); color: var(--c-gold); border-color: var(--c-ink); }
.ship-panel { margin-top: 16px; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg2); animation: rise .5s var(--ease2) both; }
.ship-panel:not(.hidden) .field { animation: rise .5s var(--ease2) both; }
.ship-panel h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.ship-panel > p { font-size: 13.5px; color: var(--c-text2); margin-top: 4px; }
.ship-panel .field input { background: #fff; }

/* =====================================================
   MAPA
===================================================== */
.map-guide { padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--c-border); border-left: 2px solid var(--c-gold); border-radius: 0 var(--r) var(--r) 0; font-size: 13.5px; color: var(--c-text2); }
.map-guide ol { display: grid; gap: 4px; margin-top: 8px; counter-reset: m; }
.map-guide li { counter-increment: m; padding-left: 28px; position: relative; }
.map-guide li::before { content: "0" counter(m); position: absolute; left: 0; font-family: var(--ff-mono); font-size: 11px; color: var(--c-text3); top: 1px; }
.map-guide strong { color: var(--c-text); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 14px; }
.map-shell, .cam-list-shell { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg); }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--c-border); background: var(--c-bg2); }
.map-title, .cam-list-title { font-weight: 700; font-size: 14px; }
.map-sub, .cam-list-sub { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text2); margin-top: 2px; }
.map-btns { display: flex; gap: 6px; }
.map-el { height: clamp(320px, 52vh, 620px); width: 100%; }
.cam-list-shell { display: flex; flex-direction: column; }
.cam-list-head { padding: 12px 14px; border-bottom: 1px solid var(--c-border); background: var(--c-bg2); }
.cam-list { flex: 1; display: grid; align-content: start; max-height: clamp(240px, 42vh, 520px); overflow: auto; }
.cam-list-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--c-text3); }
.cam-row { padding: 12px 14px; border-bottom: 1px solid var(--c-border); display: grid; gap: 8px; animation: slideIn .4s var(--ease2) both; }
.cam-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cam-name { font-weight: 600; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.cam-actions { display: flex; gap: 5px; flex: none; }
.cam-btn { padding: 5px 10px; font-size: 12px; font-weight: 600; border: 1px solid var(--c-border2); border-radius: 8px; transition: background .2s, color .2s, border-color .2s; }
.cam-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.cam-btn[data-del]:hover { background: var(--c-red); border-color: var(--c-red); }
.cam-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--c-text3); }
.cam-alias input { min-height: 38px; font-size: 13.5px; }
.map-tip { padding: 12px 14px; font-size: 12.5px; color: var(--c-text2); border-top: 1px solid var(--c-border); background: var(--c-bg2); }
.map-tip strong { color: var(--c-text); }

/* leaflet */
.leaflet-container { font: inherit !important; background: var(--c-bg3) !important; }
.leaflet-control-zoom { border: 0 !important; display: grid; gap: 4px; }
.leaflet-control-zoom a { border: 1px solid var(--c-border2) !important; border-radius: 8px !important; background: #fff !important; color: var(--c-ink) !important; }
.leaflet-control-zoom a:hover { background: var(--c-ink) !important; color: #fff !important; }
.leaflet-popup-content-wrapper { border-radius: var(--r) !important; box-shadow: none !important; border: 1px solid var(--c-border2) !important; }
.ai-marker { position: relative; width: 34px; height: 34px; pointer-events: auto; }
.ai-marker .pin {
  position: absolute; left: 50%; top: 2px; width: 24px; height: 24px; margin-left: -12px;
  background: var(--c-ink); border: 2px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); transition: transform .3s var(--ease);
}
.ai-marker .pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--c-gold); }
.ai-marker .tip { display: none; }
.ai-marker:hover .pin { transform: rotate(-45deg) scale(1.15); }
.ai-marker .label {
  position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%);
  padding: 3px 8px; border-radius: 6px; background: var(--c-ink); color: #fff;
  font-family: var(--ff-mono); font-size: 10.5px; white-space: nowrap; display: none;
}
.ai-marker:hover .label { display: block; }

/* =====================================================
   RESUMEN / CHECKS
===================================================== */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-bottom: 20px; }
.sum-card { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; animation: rise .5s var(--ease2) both; }
.sum-card:nth-child(2) { animation-delay: 50ms; } .sum-card:nth-child(3) { animation-delay: 100ms; }
.sum-card:nth-child(4) { animation-delay: 150ms; } .sum-card:nth-child(5) { animation-delay: 200ms; } .sum-card:nth-child(6) { animation-delay: 250ms; }
.sum-title { padding: 10px 16px; background: var(--c-bg2); border-bottom: 1px solid var(--c-border); font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text2); }
.sum-body { padding: 8px 16px 14px; font-size: 13.5px; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--c-border); }
.sum-line:last-child { border-bottom: 0; }
.sum-key { color: var(--c-text2); font-size: 12.5px; flex: none; }
.sum-val { text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.sum-list { display: grid; gap: 6px; padding-top: 6px; }
.sum-list li { position: relative; padding-left: 14px; }
.sum-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 1px; background: var(--c-ink); }

.confirm-checks { padding: 18px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg2); display: grid; gap: 14px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check-label { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; font-size: 14px; }
.check-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  width: 22px; height: 22px; flex: none; border: 1.5px solid var(--c-border2); border-radius: 6px; background: #fff;
  position: relative; transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.check-label:hover .check-box { border-color: var(--c-ink); }
.check-label input:focus-visible + .check-box { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.check-label input:checked + .check-box { background: var(--c-ink); border-color: var(--c-ink); }
.check-label input:checked + .check-box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid var(--c-gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
  animation: pop .25s var(--ease) both;
}
.check-label:active .check-box { transform: scale(.9); }

/* =====================================================
   DONE
===================================================== */
section.done { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; padding: 32px 0; }
.done-inner { width: min(100%, 880px); text-align: center; }
section.done:not(.hidden) .done-inner > * { animation: rise .7s var(--ease2) both; }
section.done:not(.hidden) .done-inner > :nth-child(2) { animation-delay: .1s; }
section.done:not(.hidden) .done-inner > :nth-child(3) { animation-delay: .18s; }
section.done:not(.hidden) .done-inner > :nth-child(4) { animation-delay: .26s; }
section.done:not(.hidden) .done-inner > :nth-child(5) { animation-delay: .34s; }
.done-badge { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 20px; background: var(--c-ink); display: grid; place-items: center; }
.done-badge path { stroke: var(--c-gold); stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease2) .35s forwards; }
.done h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.done-lead { margin: 14px auto 30px; max-width: 520px; color: var(--c-text2); font-size: 1.05rem; }
.done-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; text-align: left; margin-bottom: 30px; }
.done-card { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 18px; }
.done-card-title { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text2); margin-bottom: 12px; }
.done-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--c-border); font-size: 13.5px; }
.done-row:last-child { border-bottom: 0; }
.done-row span { color: var(--c-text2); }
.done-row b { text-align: right; overflow-wrap: anywhere; }
.done-steps { display: grid; gap: 10px; font-size: 13.5px; color: var(--c-text2); counter-reset: d; }
.done-steps li { counter-increment: d; position: relative; padding-left: 30px; }
.done-steps li::before { content: "0" counter(d); position: absolute; left: 0; top: 1px; font-family: var(--ff-mono); font-size: 11px; color: var(--c-ink); background: var(--c-gold); border-radius: 4px; padding: 0 4px; }
.done-steps strong { color: var(--c-text); }
.done-raw { text-align: left; padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r); font-family: var(--ff-mono); font-size: 12px; overflow: auto; margin-bottom: 20px; }
.done-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* =====================================================
   MODAL / TOAST
===================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(17,17,17,.55); animation: fade .25s var(--ease) both; }
.modal-card { width: min(100%, 560px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; animation: pop .35s var(--ease2) both; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--c-border); }
.modal-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.modal-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--c-border2); border-radius: 9px; transition: background .2s, color .2s; }
.modal-close:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.modal-body { padding: 18px; overflow: auto; color: var(--c-text2); font-size: 14px; line-height: 1.6; }
.modal-info-card h4 { color: var(--c-text); margin-bottom: 6px; }
.modal-ok-row { display: flex; justify-content: flex-end; margin-top: 16px; }
.modal-terms-list { display: grid; gap: 14px; }
.modal-terms-item { border-left: 2px solid var(--c-gold); padding-left: 12px; }
.modal-terms-item strong { display: block; color: var(--c-text); margin-bottom: 2px; }

.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 400; display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); }
.toast { padding: 12px 14px; background: var(--c-ink); color: #fff; border-radius: var(--r); animation: sheetUp .35s var(--ease2) both; transition: opacity .2s, transform .2s; }
.toast-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.toast-msg { font-weight: 600; font-size: 13.5px; }
.toast-meta { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.toast-x { color: rgba(255,255,255,.6); font-size: 12px; }
.toast-x:hover { color: #fff; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; align-content: start; }
  .hero__card-stack { grid-template-columns: repeat(2, 1fr); }
  .hero__card-stack::before { grid-column: 1 / -1; }
  .hcard { border-right: 1px solid var(--c-border); }
  .hcard:nth-child(odd) { border-right: 1px solid var(--c-border); }
  .hcard:nth-child(even) { border-right: 0; }
  .hcard:nth-last-child(-n+2) { border-bottom: 0; }
  .hcard:hover { padding-left: 18px; }

  .wizard { grid-template-columns: 1fr; gap: 14px; }
  .wiz-side { position: static; padding: 16px; gap: 16px; }
  .wiz-step-label { font-size: 19px; }
  .status-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px; scrollbar-width: none; }
  .status-chips::-webkit-scrollbar { display: none; }
  .schip { white-space: nowrap; flex: none; }
  .prog-steps { flex-direction: row; align-items: center; }
  .pstep { flex-direction: row; padding: 0; gap: 8px; }
  .pstep-lbl { font-size: 13px; }
  .pstep-line { flex: 1; width: auto; height: 1px; margin: 0 10px; }
  .map-layout { grid-template-columns: 1fr; }
  .cam-list { max-height: 320px; }
}

@media (max-width: 720px) {
  :root { --header-h: 56px; --gutter: 16px; }
  .top__pills { display: none; }
  .mark { width: 32px; height: 32px; }
  .top__title { font-size: 14px; }

  .hero { padding-top: 24px; gap: 28px; }
  .hero__eyebrow { margin-bottom: 18px; font-size: 10.5px; }
  .hero__h1 { font-size: clamp(2.3rem, 11.5vw, 3.4rem); }
  .hero__actions { margin: 24px 0 28px; }
  .hero__actions .btn-main { flex: 1 1 100%; }
  .hero__actions .btn-ghost { flex: 1 1 100%; }
  .hero__actions .btn-ghost { border-color: var(--c-border2); }
  .hero__actions .btn-ghost::after { display: none; }
  .step-arrow { display: none; }
  .hero__steps { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .step-pill { padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }
  .hero__card-stack { grid-template-columns: 1fr; }
  .hcard, .hcard:nth-child(odd), .hcard:nth-child(even) { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .hcard:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-border); }
  .hcard:last-child { border-bottom: 0; }

  /* wizard — barra de navegación fija abajo, estilo app */
  .page { padding-bottom: 96px; }
  .wiz-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    border: 0; border-top: 1px solid var(--c-border2); border-radius: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
  }
  .wiz-nav .btn-outline, .wiz-nav .btn-main { min-height: 50px; }
  .wiz-nav__right { flex: 1; }
  .wiz-nav__right .btn-main { flex: 1; }
  #btnReset { display: none; }
  #btnBack { padding: 0 16px; }
  #btnBack:not(:disabled) { min-width: 50px; }

  .section-header h2 { font-size: 1.7rem; }
  .card { padding: 16px; }
  .card-head { margin-bottom: 14px; }
  .form-grid { gap: 14px; margin-bottom: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* evita zoom iOS */
  .ship-tile { flex-direction: column; padding: 18px; }
  .ship-tile__badge { top: 14px; right: 14px; }
  .sum-line { flex-direction: column; gap: 2px; }
  .sum-val { text-align: left; }
  .done-btns .btn-main, .done-btns .btn-outline { flex: 1 1 100%; }
  .map-el { height: 300px; }
  .modal { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: 88dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; animation: sheetUp .4s var(--ease2) both; }
  .toast-stack { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__scan { display: none; }
}

/* Letra más firme */
.field input::placeholder, .field textarea::placeholder, .prod-extra input::placeholder, .cam-alias input::placeholder { color: var(--c-text3); font-weight: 500; opacity: 1; }
