/* ============================================================
   SandoTech — Componentes
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav--solid {
  background: oklch(0.975 0.008 75 / 0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 13px; padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 3px;
  background: var(--red);
  display: grid; place-items: center;
  color: oklch(0.98 0.01 75);
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  line-height: 1; flex: none;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12);
}
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 23px;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
.nav--over .brand__name, .nav--over .nav__link, .nav--over .nav__menu-btn span { color: oklch(0.97 0.01 75); }
.nav--over .brand__name { text-shadow: 0 1px 14px oklch(0 0 0 / 0.35); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 16px; font-weight: 500; color: var(--ink-2);
  transition: color .2s var(--ease); position: relative; white-space: nowrap;
}
.nav__link:hover { color: var(--red-strong); }
.nav--over .nav__link { color: oklch(0.92 0.01 75 / 0.92); text-shadow: 0 1px 10px oklch(0 0 0 / 0.4); }
.nav--over .nav__link:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav--over .btn--ghost { color: #fff; border-color: oklch(1 0 0 / 0.55); }
.nav--over .btn--ghost:hover { background: #fff; color: var(--ink); }

.nav__menu-btn {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
}
.nav__menu-btn span { width: 24px; height: 2px; background: var(--ink); transition: all .3s var(--ease); display: block; }
.nav__menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__menu-btn.open span:nth-child(2) { opacity: 0; }
.nav__menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: oklch(0.975 0.008 75 / 0.98); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--gut);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 34px; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- HERO ---------- */
.hero { position: relative; }

/* A — Editorial full-bleed */
.hero-a { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
.hero-a__media { position: absolute; inset: 0; overflow: hidden; }
.hero-a__media img, .hero-a__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-a__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, oklch(0.18 0.02 38 / 0.92) 0%, oklch(0.2 0.02 38 / 0.5) 32%, oklch(0.2 0.02 38 / 0.12) 58%, oklch(0.2 0.02 38 / 0.35) 100%);
}
.hero-a__inner { position: relative; width: 100%; padding-bottom: clamp(56px, 9vh, 104px); padding-top: 140px; }
.hero-a .hero__eyebrow { color: oklch(0.93 0.04 40); }
.hero-a .hero__eyebrow::before { background: var(--red); }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.02; letter-spacing: -0.022em;
  color: oklch(0.98 0.012 80); margin-top: 24px;
  max-width: 17ch; text-shadow: 0 2px 30px oklch(0 0 0 / 0.35);
}
.hero__title .accent { color: oklch(0.86 0.11 42); font-style: italic; }
.hero-a__sub {
  margin-top: 26px; font-size: clamp(18px, 2.2vw, 22px);
  color: oklch(0.92 0.012 75); max-width: 46ch; line-height: 1.5;
  text-shadow: 0 1px 16px oklch(0 0 0 / 0.4);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.typecursor { display: inline-block; width: 3px; height: 0.92em; background: oklch(0.86 0.11 42); margin-left: 4px; transform: translateY(0.08em); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* B — Split */
.hero-b { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100svh; }
.hero-b__text { background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 150px var(--gut) 80px; }
.hero-b__text .hero__title { color: var(--ink); text-shadow: none; max-width: 14ch; }
.hero-b__text .hero__title .accent { color: var(--red); }
.hero-b__sub { margin-top: 26px; font-size: clamp(18px,1.5vw,21px); color: var(--ink-2); max-width: 44ch; }
.hero-b__media { position: relative; overflow: hidden; background: var(--paper-2); }
.hero-b__media img, .hero-b__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-b__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, oklch(0.2 0.02 38 / 0.18), transparent 30%); }

/* C — Centrado typewriter */
.hero-c { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-c__media { position: absolute; inset: 0; overflow: hidden; }
.hero-c__media img, .hero-c__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-c__scrim { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 60%, oklch(0.16 0.02 38 / 0.55), oklch(0.16 0.02 38 / 0.82)); }
.hero-c__inner { position: relative; padding: 150px var(--gut) 90px; max-width: 1000px; }
.hero-c .hero__title { color: oklch(0.98 0.012 80); margin-left: auto; margin-right: auto; max-width: 20ch; min-height: 2.1em; }
.hero-c .hero__cta { justify-content: center; }
.hero-c__sub { margin: 26px auto 0; max-width: 50ch; color: oklch(0.92 0.012 75); font-size: clamp(18px,2vw,21px); }
.hero-c__trust { margin-top: 34px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.86 0.02 70); }
.hero-c__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.7 0.16 145); box-shadow: 0 0 0 3px oklch(0.7 0.16 145 / 0.25); }

/* ---------- PROBLEMAS ---------- */
.problemas { background: var(--paper); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 62px; border-top: 1px solid var(--line); }
.pain {
  padding: 36px 34px 40px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  position: relative; background: var(--paper);
  transition: background .3s var(--ease);
}
.pain:nth-child(3n) { border-right: 0; }
.pain:hover { background: var(--paper-2); }
.pain__n { font-family: var(--mono); font-size: 13px; color: var(--red-strong); letter-spacing: 0.1em; }
.pain__t { font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.18; margin-top: 18px; color: var(--ink); font-weight: 500; }
.pain__d { margin-top: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.pain::after { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px; background: var(--red); transition: width .4s var(--ease); }
.pain:hover::after { width: 46px; }

/* ---------- SOLUCIÓN ---------- */
.solucion { background: var(--night); color: oklch(0.93 0.012 75); position: relative; overflow: hidden; }
.solucion h2 { color: oklch(0.97 0.012 80); }
.solucion .eyebrow { color: oklch(0.84 0.09 42); }
.solucion .eyebrow::before { background: oklch(0.7 0.15 40); }
.solucion .lede { color: oklch(0.82 0.012 75); }
.sol-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); margin-top: 64px; align-items: start; }
.sol-list { display: flex; flex-direction: column; }
.sol-item { padding: 30px 0; border-top: 1px solid oklch(1 0 0 / 0.12); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.sol-item:last-child { border-bottom: 1px solid oklch(1 0 0 / 0.12); }
.sol-item__icon { width: 44px; height: 44px; border-radius: 3px; background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.14); display: grid; place-items: center; color: oklch(0.85 0.1 42); flex: none; }
.sol-item__icon svg { width: 22px; height: 22px; }
.sol-item__t { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 27px); color: oklch(0.97 0.012 80); font-weight: 500; }
.sol-item__d { margin-top: 9px; font-size: 16.5px; color: oklch(0.8 0.012 75); line-height: 1.55; }
.sol-media { position: sticky; top: 100px; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 70px oklch(0 0 0 / 0.4); }
.sol-media img, .sol-media image-slot { width: 100%; height: 100%; object-fit: cover; }
.sol-media__cap { position: absolute; left: 18px; bottom: 16px; right: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: oklch(0.95 0.01 75); text-shadow: 0 1px 8px oklch(0 0 0 / 0.6); }

/* ---------- PROCESO ---------- */
.proceso { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; }
.step { padding: 0 28px 0 0; position: relative; }
.step:not(:last-child) { border-right: 1px solid var(--line); }
.step { padding-left: 28px; }
.step:first-child { padding-left: 0; }
.step__n {
  font-family: var(--serif); font-size: clamp(44px, 6vw, 68px); font-weight: 500;
  color: var(--red); line-height: 1; letter-spacing: -0.03em;
  -webkit-text-stroke: 0; position: relative; display: inline-block;
}
.step__bar { height: 3px; width: 38px; background: var(--ink); margin: 22px 0 24px; }
.step__t { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); color: var(--ink); font-weight: 500; }
.step__d { margin-top: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.proceso__band { margin-top: 78px; position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 21 / 8; }
.proceso__band img, .proceso__band image-slot { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.proceso__band-quote {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(to right, oklch(0.18 0.02 38 / 0.85), oklch(0.18 0.02 38 / 0.2) 70%);
  padding: 0 clamp(28px, 6vw, 80px);
}
.proceso__band-quote p { font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); color: oklch(0.98 0.012 80); max-width: 18ch; line-height: 1.12; font-weight: 500; }
.proceso__band-quote .accent { color: oklch(0.86 0.11 42); font-style: italic; }

/* ---------- PLANES ---------- */
.planes { background: var(--paper); }
.plan-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.plan-note { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--ink-3); text-transform: uppercase; max-width: 30ch; text-align: right; line-height: 1.7; }

/* A — Cards */
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 58px; }
.plan {
  border: 1px solid var(--line); border-radius: 4px; padding: 34px 30px 30px;
  background: var(--paper); display: flex; flex-direction: column; cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  position: relative;
}
.plan:hover { border-color: var(--ink-3); box-shadow: 0 18px 50px oklch(0 0 0 / 0.07); transform: translateY(-3px); }
.plan--rec { border-color: var(--red); box-shadow: 0 18px 50px oklch(0.5 0.18 30 / 0.1); }
.plan.is-selected { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 18px 50px oklch(0.5 0.18 30 / 0.12); }
.plan__ribbon { position: absolute; top: 0; right: 24px; transform: translateY(-50%); background: var(--red); color: oklch(0.98 0.01 75); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 2px; }
.plan__tier { display: flex; align-items: center; gap: 11px; }
.plan__chip { width: 13px; height: 13px; border-radius: 50%; }
.plan__name { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--ink); }
.plan__promise { margin-top: 14px; font-size: 17px; color: var(--ink-2); line-height: 1.45; min-height: 2.9em; }
.plan__rule { height: 1px; background: var(--line); margin: 26px 0 22px; }
.plan__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.plan__feats li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 15.5px; color: var(--ink); line-height: 1.4; align-items: start; }
.plan__feats .tick { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 1px; }
.plan__feats .muted { color: var(--ink-3); }
.plan__incl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.plan__select { margin-top: 26px; font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--red-strong); display: inline-flex; align-items: center; gap: 8px; }
.plan.is-selected .plan__select { color: var(--red); }
.plan__select .box { width: 18px; height: 18px; border: 1.5px solid var(--line-ink); border-radius: 3px; display: grid; place-items: center; transition: all .2s var(--ease); }
.plan.is-selected .plan__select .box { background: var(--red); border-color: var(--red); color: #fff; }
.plan.is-selected .plan__select .box svg { width: 12px; height: 12px; }

/* B — Tabla comparativa */
.plan-table { margin-top: 58px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.ptab-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.ptab-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.ptab-head { background: var(--paper-2); }
.ptab-cell { padding: 18px 22px; display: flex; align-items: center; gap: 10px; }
.ptab-cell:not(:first-child) { justify-content: center; border-left: 1px solid var(--line); text-align: center; }
.ptab-head .ptab-cell { font-family: var(--serif); font-size: 22px; font-weight: 600; flex-direction: column; gap: 6px; padding-top: 24px; padding-bottom: 22px; }
.ptab-head .ptab-promise { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.ptab-head .ptab-col--rec { background: var(--red-soft); position: relative; }
.ptab-feat { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.ptab-cell .tick { width: 19px; height: 19px; color: var(--red); }
.ptab-cell .dash { color: var(--line-ink); }
.ptab-cell .qty { font-size: 14px; color: var(--ink-2); font-family: var(--mono); }
.ptab-col--rec { background: oklch(0.96 0.02 38 / 0.5); }

/* C — Escalera */
.plan-stairs { margin-top: 58px; display: flex; flex-direction: column; gap: 16px; }
.stair { border: 1px solid var(--line); border-radius: 4px; padding: 30px clamp(26px, 4vw, 44px); background: var(--paper); display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; position: relative; transition: all .3s var(--ease); }
.stair:nth-child(2) { margin-left: clamp(0px, 4vw, 60px); }
.stair:nth-child(3) { margin-left: clamp(0px, 8vw, 120px); }
.stair--gold { background: var(--night); border-color: var(--night); color: oklch(0.93 0.01 75); }
.stair--gold .stair__name, .stair--gold .stair__promise { color: oklch(0.97 0.01 80); }
.stair--gold .stair__feat { color: oklch(0.85 0.01 75); }
.stair--gold .stair__feat .tick { color: oklch(0.85 0.1 42); }
.stair__name { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; display: flex; align-items: center; gap: 12px; }
.stair__chip { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.stair__promise { font-size: 15.5px; color: var(--ink-2); margin-top: 10px; }
.stair__feats { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.stair__feat { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; color: var(--ink); }
.stair__feat .tick { width: 17px; height: 17px; color: var(--red); flex: none; }
.stair__plus { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-strong); margin-bottom: 4px; flex-basis: 100%; }
.stair--gold .stair__plus { color: oklch(0.82 0.1 42); }

.plan-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 44px; }
.plan-cta__note { font-size: 15.5px; color: var(--ink-2); }
.plan-cta__note b { color: var(--red-strong); font-weight: 600; }

/* ---------- CIERRE ---------- */
.cierre { background: var(--night); color: oklch(0.95 0.012 75); position: relative; overflow: hidden; }
.cierre::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 80% 0%, oklch(0.45 0.16 32 / 0.5), transparent 60%); pointer-events: none; }
.cierre__inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.cierre h2 { color: oklch(0.98 0.012 80); font-size: clamp(36px, 5.5vw, 68px); }
.cierre__sub { margin: 24px auto 0; max-width: 48ch; color: oklch(0.84 0.012 75); font-size: clamp(18px, 2vw, 21px); }
.cierre__cta { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 42px; }
.cierre__plan-note { margin-top: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.78 0.09 45); }

/* ---------- FOOTER ---------- */
.foot { background: var(--night-2); color: oklch(0.78 0.012 75); padding: 56px var(--gut) 40px; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; }
.foot__brand { display: flex; align-items: center; gap: 11px; }
.foot__brand .brand__name { color: oklch(0.96 0.01 80); }
.foot__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.62 0.012 70); margin-top: 14px; }
.foot__links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot__links a { font-size: 15px; color: oklch(0.8 0.012 75); transition: color .2s; }
.foot__links a:hover { color: oklch(0.9 0.08 42); }
.foot__copy { font-size: 13px; color: oklch(0.55 0.012 70); margin-top: 34px; max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__right .btn { display: none; }
  .nav__menu-btn { display: flex; }
  .hero-b { grid-template-columns: 1fr; }
  .hero-b__media { min-height: 46svh; order: -1; }
  .sol-layout { grid-template-columns: 1fr; }
  .sol-media { position: relative; top: 0; aspect-ratio: 16/10; margin-bottom: 12px; order: -1; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step { border-right: 0 !important; }
  .step:nth-child(odd) { padding-left: 0; }
  .step:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain:nth-child(3n) { border-right: 1px solid var(--line); }
  .pain:nth-child(2n) { border-right: 0; }
  .plan-cards { grid-template-columns: 1fr; }
  .stair { grid-template-columns: 1fr; gap: 18px; margin-left: 0 !important; }
  .ptab-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .ptab-cell { padding: 14px 10px; }
  .ptab-head .ptab-cell { font-size: 17px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain { border-right: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 0 !important; border-left: 0 !important; }
  .plan-note { text-align: left; }
  .ptab-row { grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; font-size: 13px; }
  .ptab-feat { font-size: 13.5px; }
  .ptab-head .ptab-promise { display: none; }
}
