/* ───────────────────────────────────────────────────────────
   Aprende Ingeniería · estilos
   Blanco técnico: fondo claro, un acento azul, líneas de plano.
   ─────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-sunk: #eef1f5;
  --ink: #0d1b2a;
  --ink-2: #2c3a4b;
  --muted: #5d6979;
  --faint: #8792a0;
  --line: #e4e8ee;
  --line-2: #d2d9e2;
  --accent: #1f4fd1;
  --accent-hover: #1942b4;
  --accent-soft: #edf2fe;
  --accent-line: #cbd8fb;
  --ok: #0b7a51;
  --ok-soft: #e2f4eb;
  --warn: #9a5a08;
  --warn-soft: #fff6e5;
  --warn-line: #efd29b;
  --danger: #c2410c;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(13 27 42 / 0.06);
  --shadow: 0 1px 2px rgb(13 27 42 / 0.04), 0 10px 28px -14px rgb(13 27 42 / 0.2);
  --shadow-lg: 0 2px 4px rgb(13 27 42 / 0.04), 0 28px 56px -28px rgb(13 27 42 / 0.32);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ── Base ─────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
sub { font-size: 0.72em; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.pending {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--warn-line);
  border-radius: 6px;
  background: var(--warn-soft);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.82em;
  line-height: 1.6;
}

/* ── Type helpers ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 2px;
  background: var(--accent);
}
.eyebrow-light { color: #9fb3d1; }
.eyebrow-light::before { background: #7ea2ff; }

.kicker {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.lead {
  margin: 14px 0 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 1.075rem;
}

.price {
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price small {
  margin-right: 2px;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0;
}
.price-lg { font-size: 2.1rem; letter-spacing: -0.035em; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-md { height: 44px; padding: 0 18px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 1px 2px rgb(13 27 42 / 0.12), 0 6px 16px -8px rgb(31 79 209 / 0.6);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9eef8; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.84);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; }
.brand-name {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand-name span { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav a:not(.btn) .icon { width: 15px; height: 15px; color: var(--faint); }
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--accent); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle-close { display: grid; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 112px);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 78% 35%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 70% at 78% 35%, #000 20%, transparent 72%);
  opacity: 0.75;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-sub h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); letter-spacing: -0.04em; }
.accent { color: var(--accent); }
.hero-lead {
  margin: 22px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px dashed var(--line-2);
  list-style: none;
  color: var(--ink-2);
  font-size: 14.5px;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--accent); }

/* Schematic card */
.schematic-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.schematic-top,
.schematic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.schematic-top {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  text-transform: uppercase;
}
.schematic-foot { border-top: 1px dashed var(--line-2); font-size: 12px; letter-spacing: 0; }
.ok-text { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.ok-text .icon { width: 16px; height: 16px; }

.schematic { width: 100%; height: auto; padding: 20px 18px 10px; --d: 0.05s; }
.schematic .wire {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.7s cubic-bezier(0.6, 0, 0.2, 1) var(--d) forwards;
}
.schematic .bus { --d: 0.3s; stroke-width: 2.2; }
.schematic .blade { stroke: var(--accent); }
.schematic .node {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.6;
  opacity: 0;
  animation: fade 0.3s ease var(--d) forwards;
}
.schematic text { opacity: 0; animation: fade 0.5s ease calc(var(--d) + 0.25s) forwards; }
.sch-id { fill: var(--accent); font: 600 13px var(--mono); }
.sch-name { fill: var(--ink); font: 500 14px var(--font); }
.sch-spec { fill: var(--muted); font: 400 11.5px var(--mono); }
.schematic .ok {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) calc(var(--d) + 0.55s) forwards;
}
.schematic .ok rect { fill: var(--ok-soft); }
.schematic .ok text { fill: var(--ok); font: 600 11.5px var(--mono); letter-spacing: 0.05em; opacity: 1; animation: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Questions card (advisory hero) */
.questions {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.questions-title {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.questions ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.questions li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
  animation: rise 0.5s ease calc(var(--i) * 90ms + 0.2s) both;
}
.questions li .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.questions-foot { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 116px); }
.hero + .section,
.product-hero + .section,
.section:not(.section-soft) + .section:not(.section-soft) { padding-top: 0; }
.section-tight { padding-block: 0 clamp(64px, 9vw, 112px); }
.section-soft {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2,
.narrow-head h2 {
  margin-top: 14px;
  max-width: 20em;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  letter-spacing: -0.035em;
}
.narrow-head { max-width: 800px; margin-bottom: clamp(32px, 4vw, 48px); }

/* ── Cards / catalogue ────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }

.card-media {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunk);
}
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media > img { transform: scale(1.03); }

.media-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 10px;
  padding: 22px 26px 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #22385a 0%, transparent 70%),
    var(--ink);
}
.media-reels img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 24px -10px rgb(0 0 0 / 0.5);
  transition: transform 0.45s ease;
}
.media-reels img:nth-child(2) { transform: translateY(-14px); }
.card:hover .media-reels img:nth-child(1) { transform: translateY(-6px); }
.card:hover .media-reels img:nth-child(2) { transform: translateY(-20px); }
.card:hover .media-reels img:nth-child(3) { transform: translateY(-6px); }

.media-service {
  background-color: var(--accent-soft);
  background-image:
    linear-gradient(var(--accent-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.service-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 22px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.service-icon .icon { width: 24px; height: 24px; }
.service-visual ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service-visual li {
  padding: 5px 11px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
}

.card-body { flex: 1; padding: 22px 22px 0; }
.card-body h3 { margin: 12px 0 8px; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
.card-text { margin: 0; color: var(--muted); font-size: 15px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 22px 22px;
  border-top: 1px dashed var(--line);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 500;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.card:hover .link-arrow .icon { transform: translateX(3px); }

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.step-num {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}
.step-icon,
.service-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.step-icon .icon,
.service-ic .icon { width: 22px; height: 22px; }
.step h3,
.service h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.015em; }
.step p,
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: end;
  gap: 32px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
}
.cta-band-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 90% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 90% 50%, #000 10%, transparent 75%);
  pointer-events: none;
}
.cta-band-copy,
.cta-band-actions { position: relative; }
.cta-band h2 {
  margin: 14px 0 14px;
  max-width: 18em;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}
.cta-band-copy > h2:first-child { margin-top: 0; }
.cta-band p { margin: 0; max-width: 40em; color: #b9c6d8; }
.cta-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9fb3d1;
  font-family: var(--mono);
  font-size: 12.5px;
}
.cta-note .icon { width: 15px; height: 15px; }

/* ── Instagram ────────────────────────────────────────────── */
.insta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
.insta-profile { display: flex; align-items: center; gap: 16px; }
.insta-profile img { width: 72px; height: 72px; border-radius: 50%; }
.insta-handle {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.insta-handle:hover { color: var(--accent); }
.insta-quote {
  margin: 30px 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.insta-copy > .muted { margin: 0; max-width: 32em; }
.stats {
  display: flex;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat { flex: 1; padding: 16px 18px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat span { color: var(--muted); font-size: 13.5px; }
.instagram .btn .icon { width: 18px; height: 18px; }
.instagram .btn:hover .icon { transform: none; }

.insta-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-block: 28px;
}
.reel {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.reel:nth-child(2) { transform: translateY(28px); }
.reel:nth-child(1),
.reel:nth-child(3) { transform: translateY(-12px); }

/* ── Product page ─────────────────────────────────────────── */
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--warn-line);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14px;
  text-align: center;
}
.draft-banner .icon { width: 16px; height: 16px; }

.product-hero { padding-block: 28px clamp(56px, 8vw, 96px); }
.breadcrumb { margin-bottom: 22px; }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .icon { width: 16px; height: 16px; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.video > img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: auto;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 0 0 10px rgb(255 255 255 / 0.18), 0 12px 32px rgb(0 0 0 / 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-play:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgb(255 255 255 / 0.22), 0 12px 32px rgb(0 0 0 / 0.35); }
.video-play .icon { width: 32px; height: 32px; transform: translateX(2px); }
.video-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgb(13 27 42 / 0.72);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-playing > img,
.video.is-playing .video-play,
.video.is-playing .video-label { display: none; }
.video-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 18px;
  color: var(--faint);
  font-size: 13px;
}
.video-note .icon { width: 15px; height: 15px; }

.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thumb,
.reel-thumb {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.thumb { aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.thumb:hover,
.reel-thumb:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow); }

.reel-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reel-thumb { aspect-ratio: 9 / 16; border-radius: 16px; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }

.buy-box {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.buy-box h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.buy-sub { margin: 0 0 22px; color: var(--muted); }
.buy-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-2);
}
.buy-price .muted { font-size: 14px; }
.buy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.buy-note .icon { width: 15px; height: 15px; }
.specs {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.specs div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink-2); font-weight: 500; text-align: right; }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.calc {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s;
}
.calc:hover { border-color: var(--line-2); }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
}
.calc h3 { margin: 18px 0 6px; font-size: 1.1rem; letter-spacing: -0.015em; }
.calc p { margin: 0; color: var(--muted); font-size: 15px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px);
}
.two-col h2 { margin: 14px 0 24px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }

.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-2);
}
.feature-list .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }

.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--ok); stroke-width: 2; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
}
.sw { width: 16px; height: 16px; border: 1px solid rgb(13 27 42 / 0.12); border-radius: 4px; }
.sw-fill { background: #fff0c2; }
.sw-select { background: #d6eee8; }
.sw-calc { background: #fff; }

.notice {
  display: flex;
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid var(--warn-line);
  border-radius: 16px;
  background: #fffaf0;
}
.notice-icon { color: var(--warn); }
.notice-icon .icon { width: 24px; height: 24px; }
.notice h2 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -0.01em; }
.notice p { margin: 0; color: var(--ink-2); }

.buy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.buy-strip-title { margin: 10px 0 0; max-width: 34em; font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.buy-strip-actions { display: flex; align-items: center; gap: 20px; }

.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.buy-bar.is-visible { transform: none; }
.buy-bar-title { display: block; color: var(--muted); font-size: 13px; }

.lightbox {
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(13 27 42 / 0.84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: 92vh; margin: auto; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.lightbox-close .icon { width: 20px; height: 20px; }

/* ── Advisory ─────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.rates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.rates {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  list-style: none;
}
.rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}
.rate + .rate { border-top: 1px solid var(--line); }
.rate h3 { margin: 0 0 4px; font-size: 1.05rem; letter-spacing: -0.01em; }
.rate p { margin: 0; color: var(--muted); font-size: 14.5px; }
.rate-price { font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.rate-quote {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
}
.included {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.included .check-list { margin: 20px 0 26px; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.form-intro h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; }
.contact-points { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.contact-points .icon { width: 20px; height: 20px; color: var(--accent); }
.contact-points a { color: var(--accent); }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.field em { color: var(--faint); font-style: normal; font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6979' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b8c1cd; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(31 79 209 / 0.14);
}
.field .is-invalid,
.field .is-invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(194 65 12 / 0.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check input.is-invalid { outline: 2px solid var(--danger); outline-offset: 2px; }
.check a { color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; color: var(--muted); font-size: 14.5px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }

.form-booking { gap: 20px; }
.booking-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line-2);
}
.booking-head .service-ic { margin: 0; }
.booking-title { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.booking-sub { margin: 0; color: var(--muted); font-size: 14px; }
.form-booking .field input { padding-block: 14px; font-size: 17px; }
.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.form-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); }
.form-done strong { color: var(--ink); overflow-wrap: anywhere; }
.form-done p + p { margin-top: 10px; font-size: 14px; }
.form-done { padding: 24px 8px; text-align: center; }
.form-done h3 { margin: 18px 0 8px; font-size: 1.4rem; }
.form-done p { margin: 0 auto; max-width: 28em; color: var(--muted); }

.simple-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}
.simple-icon .icon { width: 30px; height: 30px; stroke-width: 2; }

/* ── Legal ────────────────────────────────────────────────── */
.legal { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: 28px 64px;
}
.legal-head { grid-column: 2; }
.legal-head h1 { margin: 16px 0 8px; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.04em; }
.legal-head .muted { margin: 0; font-size: 14.5px; }
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  font-size: 14px;
}
.legal-toc p {
  margin: 0 0 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}
.legal-toc a:hover { background: var(--bg-soft); color: var(--ink); }
.prose { grid-column: 2; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.prose section + section { margin-top: 36px; }
.prose h2 { margin: 0 0 10px; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.015em; }
.prose h2 span { margin-right: 4px; color: var(--accent); font-family: var(--mono); font-weight: 500; }
.prose p { margin: 0 0 12px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.legal-data {
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-data div { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.legal-data div + div { border-top: 1px solid var(--line); }
.legal-data dt { padding: 12px 16px; background: var(--bg-soft); color: var(--muted); font-size: 14.5px; }
.legal-data dd { margin: 0; padding: 12px 16px; color: var(--ink); }

/* ── Simple pages (404, gracias) ──────────────────────────── */
.simple { padding-block: clamp(88px, 14vw, 168px); text-align: center; }
.simple-inner { max-width: 680px; }
.simple h1 { margin: 22px 0 10px; font-size: clamp(2.2rem, 4.5vw, 3.25rem); letter-spacing: -0.04em; }
.simple .lead { margin-inline: auto; }
.simple .hero-actions { justify-content: center; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding-block: 56px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { margin: 14px 0 0; max-width: 22em; color: var(--muted); font-size: 15px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h2 {
  margin: 0 0 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.page-product .toast { bottom: 96px; }

/* ── Reveal on scroll (solo con JS) ───────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reel.reveal.is-in:nth-child(2) { transform: translateY(28px); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .buy-box { position: static; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rates-layout { grid-template-columns: minmax(0, 1fr); }
  .included { position: static; }
  .buy-bar { display: flex; }
  .page-product .site-footer { padding-bottom: 104px; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px -24px rgb(13 27 42 / 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 10px; font-size: 17px; }
  .nav-cta { margin: 10px 0 0; height: 48px; }
  .site-header { background: rgb(255 255 255 / 0.94); }
  .nav-open .site-header { border-bottom-color: var(--line); }

  .hero-inner,
  .insta-inner,
  .two-col,
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-grid-bg {
    -webkit-mask-image: radial-gradient(ellipse 90% 50% at 70% 70%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse 90% 50% at 70% 70%, #000 20%, transparent 72%);
  }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none; }
  .legal-head,
  .prose { grid-column: 1; }
  .buy-strip { flex-direction: column; align-items: flex-start; }
  .insta-reels { max-width: 520px; }
}

@media (max-width: 600px) {
  .service-grid,
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .schematic .sch-spec { display: none; }
  .schematic .sch-name { font-size: 17px; }
  .schematic .sch-id { font-size: 15px; }
  .schematic .sch-row text { transform: translateY(6px); }
  .schematic-foot > span:first-child { display: none; }
  .schematic-top { font-size: 10.5px; letter-spacing: 0.02em; padding-inline: 14px; }
  .schematic-top span { white-space: nowrap; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { flex-direction: column; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { display: flex; align-items: baseline; justify-content: space-between; }
  .rate { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal-data div { grid-template-columns: minmax(0, 1fr); }
  .legal-data dt { padding-bottom: 4px; }
  .legal-data dd { padding-top: 4px; }
  .buy-strip-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .buy-strip-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .thumbs { gap: 8px; }
  .notice { flex-direction: column; gap: 10px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
