/* ==========================================================================
   Nimbus Walls — site.css
   Tokens heredados de la app (nimbus_final / NimbusComp, handoff "paleta azul")
   ========================================================================== */

@font-face { font-family: "Clash"; src: url("../fonts/ClashDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;

  /* Brand */
  --nimbus: #2F00E9;
  --nimbus-bright: #4A22FF;
  --nimbus-soft: #CFC7FF;
  --flash: #A78BFA;
  --lime: #D5FC20;

  /* Surfaces (azules teñidos) */
  --bg: #070518;
  --bg-2: #0A0720;
  --surface: #0F0C26;
  --elevated: #191340;
  --rim: #241C52;
  --rim-strong: #2F2385;

  /* Text */
  --text: #F4F4F5;
  --muted: #A8A2C8;
  --subtle: #8A8A92;

  /* LED semantics (demo) */
  --led-start: #22C55E;
  --led-hand: #38BDF8;
  --led-foot: #FACC15;
  --led-top: #F43F5E;
  --live: #EF4444;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Clash", "Jakarta", system-ui, sans-serif;
  --font-body: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1; margin: 0; letter-spacing: -0.01em; word-spacing: .08em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--nimbus-bright); color: #fff; }
:focus-visible { outline: 2px solid var(--nimbus-bright); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--nimbus-bright); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

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

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--nimbus-soft);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--nimbus-bright);
  box-shadow: 0 0 0 3px rgba(74, 34, 255, .25), 0 0 14px 2px rgba(74, 34, 255, .9);
}
.eyebrow.lime::before { background: var(--lime); box-shadow: 0 0 0 3px rgba(213, 252, 32, .2), 0 0 14px 2px rgba(213, 252, 32, .7); }

.h-xl { font-size: clamp(42px, 6.6vw, 88px); line-height: .92; letter-spacing: -0.02em; word-spacing: .12em; }
.h-lg { font-size: clamp(36px, 5.2vw, 68px); line-height: .95; letter-spacing: -0.015em; word-spacing: .1em; }
.h-md { font-size: clamp(26px, 3vw, 38px); line-height: 1.02; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.6; }
/* Mismo brillo animado que el titular de NimbusComp (.nimbus-gradient-text) */
.glow-text {
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(110deg, #fff 0%, #c9bdff 30%, #5348FF 55%, #A78BFA 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(74, 34, 255, .55));
  animation: nimbus-shimmer 6s linear infinite alternate;
}
@keyframes nimbus-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.only-sm { display: none; }
/* Móvil: una sola «o» encendida, como una presa con su LED */
.led-o { color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 0 8px var(--led-o-glow1), 0 0 20px var(--led-o-glow2), 0 0 42px var(--led-o-glow3); }
/* Halo en el mismo azul que el botón «Pide presupuesto» (--nimbus-bright) */
:root { --led-o-glow1: rgba(74, 34, 255, 1); --led-o-glow2: rgba(74, 34, 255, .95); --led-o-glow3: rgba(74, 34, 255, .7); }
.lime-text { color: var(--lime); }

.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .lead { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
/* Los iconos traen aire transparente en su caja: se compensa para que el conjunto se vea centrado */
.btn > svg:first-child { margin-left: -5px; }
.btn > svg:last-child { margin-right: -4px; }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--nimbus-bright); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(74, 34, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { background: #5B37FF; transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(74, 34, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-lime { background: var(--lime); color: #0B0820; box-shadow: 0 10px 30px -10px rgba(213, 252, 32, .6); }
.btn-lime:hover { transform: translateY(-2px); background: #E2FF4F; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .18); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--nimbus-soft); transition: gap .25s var(--ease), color .2s; }
.link-arrow:hover { gap: 12px; color: #fff; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav-open .nav { background: rgba(7, 5, 24, .97); }
.nav.scrolled { background: rgba(7, 5, 24, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: rgba(255, 255, 255, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; color: rgba(244, 244, 245, .78); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; border-radius: 50%; background: var(--nimbus-bright); box-shadow: 0 0 10px var(--nimbus-bright); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease); }
.nav-links a:hover::after { transform: translateX(-50%) scale(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: rgba(7, 5, 24, .97); backdrop-filter: blur(20px);
  padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 34px; padding: 10px 0; border-bottom: 1px solid var(--rim); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(47, 0, 233, .38), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(167, 139, 250, .14), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin: 0 0 28px; font-size: inherit; line-height: inherit; letter-spacing: normal; word-spacing: normal; }
.hero h1 .eyebrow { display: flex; width: fit-content; margin-bottom: 26px; font-family: var(--font-body); }
.hero h1 .hero-title { display: block; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 42px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-proof li { display: inline-flex; align-items: center; gap: 9px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--led-start); box-shadow: 0 0 10px var(--led-start); }

.hero-media { position: relative; justify-self: center; width: 100%; max-width: 410px; }
.hero-frame {
  position: relative; aspect-ratio: 9 / 16; max-height: 76vh; margin-inline: auto;
  border-radius: 34px; overflow: hidden; background: var(--elevated);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px -20px rgba(47, 0, 233, .75), 0 0 80px -10px rgba(74, 34, 255, .5);
  transform: rotate(2deg);
}
.hero-frame video, .hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7, 5, 24, .55)); pointer-events: none; }
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; font-size: 13px; font-weight: 600; line-height: 1.25;
  background: rgba(15, 12, 38, .82); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip-a { left: -64px; top: 18%; }
.chip-b { right: -40px; bottom: 16%; animation-delay: -3s; }
.dot-green { background: var(--led-start); box-shadow: 0 0 12px var(--led-start); }
.dot-blue { background: var(--nimbus-bright); box-shadow: 0 0 12px var(--nimbus-bright); }
.dot-live { background: var(--live); box-shadow: 0 0 12px var(--live); animation: pulse 1.6s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--subtle); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.scroll-cue i { width: 2px; height: 34px; background: linear-gradient(var(--nimbus-bright), transparent); border-radius: 2px; animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--rim); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee-item { word-spacing: .1em; display: inline-flex; align-items: center; gap: 56px; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); white-space: nowrap; color: rgba(244, 244, 245, .9); }
.marquee-item .sep { width: 10px; height: 10px; border-radius: 50%; background: var(--nimbus-bright); box-shadow: 0 0 16px 2px var(--nimbus-bright); }
.marquee-item .sep.l { background: var(--lime); box-shadow: 0 0 16px 2px rgba(213, 252, 32, .8); }
.marquee-item em { font-style: normal; color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: .6em; letter-spacing: .08em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.old-way {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rim);
  overflow: hidden;
}
.old-way .ico { font-size: 30px; line-height: 1; margin-bottom: 18px; filter: grayscale(.4); }
.old-way h3 { font-size: 26px; margin-bottom: 10px; position: relative; display: inline-block; }
.old-way h3::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; background: var(--led-top); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .3s; box-shadow: 0 0 12px rgba(244, 63, 94, .7); }
.old-way.in h3::after { transform: scaleX(1); }
.old-way p { color: var(--muted); font-size: 15px; }
.problem-punch { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--nimbus) 0%, #1A0890 60%, #120860 100%); position: relative; overflow: hidden; }
.problem-punch::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.4px, transparent 1.6px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); opacity: .55; }
.problem-punch p { position: relative; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.02; max-width: 760px; }
.problem-punch .btn { position: relative; }

/* ---------- Interactive wall demo ---------- */
.demo { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.demo-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.wall-card {
  position: relative; border-radius: var(--radius-lg); padding: clamp(14px, 2vw, 22px);
  background: linear-gradient(160deg, #1B1640, #0D0A24);
  border: 1px solid var(--rim);
  box-shadow: 0 40px 100px -40px rgba(47, 0, 233, .6);
}
.wall-svg { width: 100%; height: auto; border-radius: 16px; background: #CFCBC4; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.wall-svg .wall-dim { transition: opacity .45s; }
.wall-svg .hit { fill: transparent; stroke: transparent; stroke-width: 10; }
.create-mode .wall-svg .hit { cursor: pointer; }
.create-mode .wall-svg .hit:hover { stroke: rgba(255, 255, 255, .85); }
.wall-svg .lit { animation: litIn .35s var(--ease) both; transform-box: fill-box; transform-origin: center; }
.wall-svg .ring { animation: halo 2.2s ease-in-out infinite; }
@keyframes litIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes halo { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .55; } }

.app-panel {
  display: flex; flex-direction: column; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--rim); overflow: hidden;
}
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--rim); background: rgba(47, 0, 233, .12); }
.app-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.app-top .brand img { width: 26px; height: 26px; border-radius: 8px; }
.ble { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ble i { width: 8px; height: 8px; border-radius: 50%; background: var(--led-start); box-shadow: 0 0 8px var(--led-start); }
.ble.sending i { background: var(--led-foot); box-shadow: 0 0 8px var(--led-foot); animation: pulse .5s infinite; }
.route-list { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.route-btn {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
  padding: 12px; border-radius: 14px; text-align: left; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.route-btn:hover { background: rgba(255, 255, 255, .04); }
.route-btn[aria-pressed="true"] { background: var(--elevated); border-color: var(--rim-strong); }
.route-btn .grade { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--nimbus-soft); text-align: center; }
.route-btn .name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.route-btn .meta { display: block; font-size: 12px; color: var(--subtle); font-weight: 500; margin-top: 2px; }
.route-btn .go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: background-color .2s; }
.route-btn .go svg { width: 14px; height: 14px; }
.route-btn[aria-pressed="true"] .go { background: var(--nimbus-bright); box-shadow: 0 0 16px rgba(74, 34, 255, .8); }
.app-status { padding: 16px 20px 20px; border-top: 1px solid var(--rim); }
.app-real { margin: auto 10px 12px; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: var(--elevated); border: 1px solid var(--rim-strong); text-align: left; transition: border-color .2s, transform .25s var(--ease); }
.app-real:hover { border-color: var(--nimbus-bright); transform: translateY(-2px); }
.app-real img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.app-real strong { display: block; font-size: 14px; line-height: 1.3; }
.app-real small { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--nimbus-soft); font-weight: 600; }
.app-real small svg { width: 12px; height: 12px; }
.app-status .status-text { font-size: 14px; color: var(--muted); min-height: 44px; }
.app-status .status-text strong { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.create-tools { display: none; gap: 8px; margin-top: 14px; }
.create-mode .create-tools { display: flex; }
.demo-note { margin-top: 18px; font-size: 13px; color: var(--subtle); text-align: center; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--rim);
  display: flex; flex-direction: column;
}
.step-img { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.step:hover .step-img img { transform: scale(1.05); }
.step-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface) 100%); }
.step-num { position: absolute; z-index: 1; top: 18px; left: 18px; font-family: var(--font-display); font-size: 15px; padding: 7px 12px; border-radius: 999px; background: rgba(7, 5, 24, .7); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
.step-body { padding: 4px 26px 28px; margin-top: -30px; position: relative; z-index: 1; }
.step h3 { font-size: 30px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Reels ---------- */
.reels-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.reels-head .section-head { margin-bottom: 0; }
.carousel-ctrl { display: flex; gap: 10px; }
.carousel-ctrl button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--rim-strong); display: grid; place-items: center; transition: background-color .2s, border-color .2s, opacity .2s; }
.carousel-ctrl button:hover { background: var(--elevated); border-color: var(--nimbus-bright); }
.carousel-ctrl button:disabled { opacity: .35; cursor: default; }
.carousel-ctrl svg { width: 20px; height: 20px; }
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 290px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-bottom: 8px; scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel {
  position: relative; scroll-snap-align: start; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: var(--elevated); text-align: left; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.reel:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(74, 34, 255, .7), 0 30px 60px -20px rgba(47, 0, 233, .7); }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 5, 24, .1) 0%, transparent 35%, rgba(7, 5, 24, .92) 100%); }
.reel-play { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s, transform .3s var(--ease); }
.reel-play svg { width: 16px; height: 16px; margin-left: 2px; }
.reel:hover .reel-play { background: var(--nimbus-bright); transform: scale(1.08); }
.reel-txt { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.reel-txt strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.05; margin-bottom: 6px; }
.reel-txt span { font-size: 13px; color: rgba(244, 244, 245, .78); line-height: 1.4; display: block; }
.reels-foot { margin-top: 30px; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(4, 3, 14, .9); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; }
.lb-inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 340px); gap: 28px; align-items: center; padding: 20px; max-height: 100%; }
.lb-video { height: min(86vh, 860px); aspect-ratio: 9 / 16; border-radius: 22px; background: #000; overflow: hidden; }
.lb-video video { width: 100%; height: 100%; object-fit: contain; }
.lb-info h3 { font-size: 32px; margin-bottom: 14px; }
.lb-info p { color: var(--muted); font-size: 15px; margin-bottom: 22px; white-space: pre-line; }
.lb-close { position: fixed; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); z-index: 2; }
.lb-close:hover { background: rgba(255, 255, 255, .2); }
.lb-close svg { width: 20px; height: 20px; }

/* ---------- Case: Torresamper ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.case-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.case-collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--elevated); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.case-collage img { width: 100%; height: 100%; object-fit: cover; }
.case-collage .c1 { grid-row: span 2; }
.case-collage .c2, .case-collage .c3 { aspect-ratio: 1 / 1.08; }
.case-badge { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap; }
.case blockquote { margin: 30px 0 0; padding: 0 0 0 24px; border-left: 3px solid var(--nimbus-bright); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: rgba(244, 244, 245, .9); }
.case blockquote footer { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0; }
.case-stats div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rim); }
.case-stats strong { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1; margin-bottom: 6px; color: #fff; }
.case-stats span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }

/* ---------- Options (dos caminos) ---------- */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.option {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  border: 1px solid var(--rim);
}
.option > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.option:hover > img { transform: scale(1.04); }
.option::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 5, 24, .15) 0%, rgba(7, 5, 24, .55) 40%, rgba(7, 5, 24, .96) 100%); }
.option .tag { align-self: flex-start; margin-bottom: auto; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(7, 5, 24, .6); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
.option h3 { font-size: clamp(30px, 3.2vw, 44px); margin: 26px 0 14px; }
.option p { color: rgba(244, 244, 245, .82); max-width: 460px; }
.option ul { margin-top: 20px; display: grid; gap: 9px; }
.option li, .check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.option li::before, .check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: rgba(34, 197, 94, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2322C55E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center/16px no-repeat;
}

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.perk { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rim); transition: border-color .3s, transform .3s var(--ease); }
.perk:hover { border-color: var(--rim-strong); transform: translateY(-3px); }
.perk .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--elevated); border: 1px solid var(--rim-strong); }
.perk .ico svg { width: 22px; height: 22px; color: var(--nimbus-soft); }
.perk h4 { font-size: 21px; margin-bottom: 8px; line-height: 1.1; }
.perk p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- NimbusComp ---------- */
.comp { position: relative; overflow: hidden; }
.comp::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: 40px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 0, 233, .35), transparent 65%); pointer-events: none; }
.comp h2 { font-size: clamp(34px, 4.4vw, 58px); }
.comp-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.comp-copy .check-list { display: grid; gap: 12px; margin: 30px 0 36px; }
.comp-copy .check-list li { font-size: 16px; }
.comp-copy .check-list b { color: #fff; }
.comp-copy .check-list span { color: var(--muted); }
.comp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.comp-price { font-size: 14px; color: var(--muted); }
.comp-price strong { font-family: var(--font-display); font-size: 22px; color: #fff; }

.tv {
  position: relative; border-radius: 22px; padding: 14px; background: #0B0920;
  border: 1px solid var(--rim-strong);
  box-shadow: 0 50px 120px -40px rgba(47, 0, 233, .8), inset 0 0 0 6px #050413;
}
.tv-screen { border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #120E33, #0A0720); padding: clamp(16px, 2.4vw, 26px); }
.tv-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tv-bar .live { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.tv-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.tv-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; }
.tv-row + .tv-row { margin-top: 4px; }
.tv-row:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.tv-row .pos { font-family: var(--font-display); font-size: 20px; color: var(--muted); text-align: center; }
.tv-row.p1 .pos { color: var(--lime); }
.tv-row .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.tv-row .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.tv-row .pts { font-family: var(--font-display); font-size: 20px; }
.tv-row .pts small { font-family: var(--font-body); font-size: 11px; color: var(--subtle); font-weight: 600; margin-left: 3px; }
.tv-feed { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--rim-strong); display: flex; align-items: center; gap: 12px; }
.tv-feed .grade { font-family: var(--font-display); font-size: 30px; line-height: 1; margin-left: auto; }
.tv-feed .flash { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--flash); display: block; text-align: right; }
.tv-feed .txt { font-size: 14px; line-height: 1.35; }
.tv-feed .txt span { color: var(--muted); display: block; font-size: 12.5px; }
.tv .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tv-caption { margin-top: 12px; text-align: center; font-size: 12px; color: var(--subtle); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--rim); transition: border-color .3s, background-color .3s; }
.faq-item[open] { border-color: var(--rim-strong); background: #120E2E; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--elevated); transition: background-color .3s, transform .35s var(--ease); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq-item[open] summary i { background: var(--nimbus-bright); transform: rotate(180deg); }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item .ans { padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 70px);
  padding: clamp(28px, 5vw, 64px); border-radius: 36px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #2F00E9 0%, #1D06A8 45%, #0F0866 100%);
  box-shadow: 0 60px 140px -50px rgba(47, 0, 233, .9);
}
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .2) 1.4px, transparent 1.7px); background-size: 28px 28px; mask-image: radial-gradient(70% 90% at 0% 100%, #000, transparent); -webkit-mask-image: radial-gradient(70% 90% at 0% 100%, #000, transparent); }
.contact-copy .eyebrow { color: #fff; }
.contact-copy .lead { color: rgba(255, 255, 255, .82); margin-top: 22px; }
.contact-links { display: grid; gap: 12px; margin-top: 36px; }
.contact-links a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(7, 5, 24, .28); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; transition: background-color .2s, transform .25s var(--ease); }
.contact-links a:hover { background: rgba(7, 5, 24, .45); transform: translateX(4px); }
.contact-links .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; }
.contact-links .ci svg { width: 20px; height: 20px; }
.contact-links small { display: block; font-size: 12px; color: rgba(255, 255, 255, .65); font-weight: 500; }

.form { background: rgba(7, 5, 24, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.form h3 { font-size: 28px; margin-bottom: 4px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 16px; transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: #0F0C26; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .42); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lime); background: rgba(255, 255, 255, .09); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .75); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--lime); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.hp { display: none !important; } /* display:none: el autocompletado del navegador no lo rellena */
.form-msg { font-size: 14px; font-weight: 600; min-height: 1px; }
.form-msg.ok { color: var(--lime); }
.form-msg.err { color: #FDA4AF; }
.form.sent .field, .form.sent .row-2, .form.sent .consent, .form.sent button[type=submit] { display: none; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form.sent .form-success { display: block; }
.form-success .big { font-size: 52px; line-height: 1; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--rim); margin-top: clamp(80px, 10vw, 140px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer h5 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); font-weight: 700; }
.footer li + li { margin-top: 9px; }
.footer li a { font-size: 14.5px; color: rgba(244, 244, 245, .82); transition: color .2s; }
.footer li a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--rim); font-size: 13px; color: var(--subtle); }
.footer-mega { font-family: var(--font-display); font-size: clamp(64px, 15vw, 210px); line-height: .8; letter-spacing: -0.03em; margin-top: 56px; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--rim-strong); user-select: none; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #25D366; color: #052E16; font-weight: 800; font-size: 15px;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .6);
  transform: translateY(120px); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.wa-fab.show { transform: none; opacity: 1; }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab:hover { background: #2EE874; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 140px 0 40px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 14px; }
.legal h2 { font-size: 26px; margin: 46px 0 14px; }
.legal p, .legal li { color: rgba(244, 244, 245, .82); font-size: 16px; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--nimbus-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal .muted { color: var(--subtle); font-size: 14px; }
.todo { background: rgba(213, 252, 32, .14); color: var(--lime); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .chip-a { left: -20px; }
  .chip-b { right: -10px; }
}

@media (max-width: 960px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Hero: el vídeo vertical pasa a fondo a pantalla completa */
  .hero { align-items: flex-end; padding: 110px 0 64px; min-height: 100svh; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { position: absolute; inset: 0; max-width: none; z-index: -1; }
  .hero-frame { position: absolute; inset: 0; max-height: none; aspect-ratio: auto; border-radius: 0; transform: none; box-shadow: none; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(7, 5, 24, .7) 0%, rgba(7, 5, 24, .55) 35%, rgba(7, 5, 24, .88) 62%, var(--bg) 100%); }
  .float-chip { display: none; }
  .hero-canvas { display: none; }
  .hero::before { display: none; }
  .hero h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
  .hero .lead { color: rgba(244, 244, 245, .86); }
  .scroll-cue { display: none; }

  .problem-grid, .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 38% 1fr; }
  .step-img { aspect-ratio: auto; height: 100%; min-height: 220px; }
  .step-img::after { background: linear-gradient(90deg, transparent 50%, var(--surface) 100%); }
  .step-body { margin-top: 0; padding: 26px 22px; align-self: center; }

  .demo-shell { grid-template-columns: 1fr; }
  .case, .comp-grid, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .lb-inner { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .lb-info { display: none; }
  .lb-video { height: min(82svh, 760px); max-width: calc(100vw - 32px); }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero-proof { gap: 8px 16px; font-size: 13px; }
  .step { grid-template-columns: 1fr; }
  .step-img { min-height: 0; aspect-ratio: 16 / 10; }
  .step-img::after { background: linear-gradient(180deg, transparent 40%, var(--surface) 100%); }
  .step-body { margin-top: -24px; padding: 0 22px 24px; }
  .case-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .case-stats div { padding: 14px 12px; }
  .case-stats strong { font-size: 26px; }
  .perks { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 16px 16px; border-radius: 28px; }
  .form { padding: 20px 16px; }
  .contact-copy { padding-inline: 6px; }
  .problem-punch { flex-direction: column; align-items: flex-start; }
  .problem-punch .btn { width: 100%; }
  .wa-fab { padding: 0; width: 56px; justify-content: center; }
  .wa-fab span { display: none; }
  .footer-mega { -webkit-text-stroke-width: .6px; }
  .route-btn { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 10px; }
  .route-btn .grade { font-size: 21px; }
  .reels { grid-auto-columns: 72vw; }
  .carousel-ctrl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Móvil — versión compacta (menos scroll, mismo contenido clave)
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding-block: 60px; }
  .section-head { margin-bottom: 26px; }
  .section-head .eyebrow { margin-bottom: 14px; }
  .section-head .lead { margin-top: 14px; }
  .lead { font-size: 16px; line-height: 1.55; }
  .hide-sm { display: none !important; }

  /* Hero: más vídeo, menos texto */
  .only-lg { display: none; }
  .only-sm { display: inline; }
  .hero-title.h-xl { font-size: clamp(46px, 13.5vw, 58px); }
  .glow-text { animation: none; background: none; -webkit-text-fill-color: currentColor; color: #fff; filter: none; }
  .hero { padding: 100px 0 40px; }
  .hero .eyebrow { margin-bottom: 14px; font-size: 10.5px; letter-spacing: .12em; }
  .hero h1 { margin-bottom: 14px; }
  .hero-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { min-width: 0; padding: 0 12px; font-size: 15px; }
  .hero-actions .btn svg { display: none; }
  .hero-proof { display: none; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(7, 5, 24, .45) 0%, rgba(7, 5, 24, .05) 28%, rgba(7, 5, 24, .55) 52%, rgba(7, 5, 24, .94) 74%, var(--bg) 100%); }

  /* El problema: filas compactas */
  #problema .section-head .lead { display: none; }
  .problem-grid { gap: 8px; }
  .old-way { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; }
  .old-way .ico { grid-row: span 2; margin: 0; font-size: 24px; }
  .old-way h3 { font-size: 19px; margin: 0 0 2px; justify-self: start; }
  .old-way p { font-size: 13.5px; line-height: 1.45; }
  .problem-punch { margin-top: 20px; padding: 22px 20px; gap: 16px; }
  .problem-punch p { font-size: 23px; }

  /* Demo */
  .app-real { display: none; }
  .app-top { padding: 14px 16px; }
  .route-list { padding: 8px; gap: 4px; }
  .app-status { padding: 14px 16px 16px; }
  .app-status .status-text { min-height: 0; font-size: 13.5px; }
  .demo-note { margin-top: 12px; font-size: 12px; }

  /* Cómo funciona: imagen al lado */
  .steps { gap: 10px; }
  .step { grid-template-columns: 112px 1fr; border-radius: 20px; }
  .step-img { aspect-ratio: auto; min-height: 112px; height: 100%; }
  .step-img img { position: absolute; inset: 0; }
  .step-img::after { background: linear-gradient(90deg, transparent 60%, var(--surface) 100%); }
  .step-num { top: 10px; left: 10px; font-size: 12px; padding: 5px 9px; }
  .step-body { margin-top: 0; padding: 16px 16px 16px 6px; align-self: center; }
  .step h3 { font-size: 21px; margin-bottom: 6px; }
  .step p { font-size: 13.5px; line-height: 1.45; }

  /* Reels */
  .reels-head { margin-bottom: 22px; }
  .reels-foot { margin-top: 18px; }
  .reel-txt strong { font-size: 19px; }

  /* Caso: fotos en fila, sin cita */
  .case-collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: 190px; gap: 8px; }
  .case-collage .c1 { grid-row: auto; }
  .case-collage .c2, .case-collage .c3 { aspect-ratio: auto; }
  .case-collage figure { border-radius: 14px; }
  .case-badge { bottom: -18px; }
  .case { gap: 40px; }
  .case blockquote { display: none; }
  .case-stats { margin: 22px 0 0; }
  .case-copy > div[style*="margin-top:34px"] { margin-top: 22px !important; }

  /* Opciones */
  .options { gap: 10px; }
  .option { min-height: 340px; padding: 22px; border-radius: 22px; }
  .option h3 { font-size: 26px; margin: 18px 0 8px; }
  .option p { font-size: 14px; }
  .option ul { display: none; }
  .perks { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .perk { padding: 16px; }
  .perk .ico { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 10px; }
  .perk .ico svg { width: 19px; height: 19px; }
  .perk h4 { font-size: 16px; margin: 0; }
  .perk p { display: none; }

  /* NimbusComp */
  .comp h2 { font-size: 32px; }
  .comp-copy .check-list { margin: 20px 0 24px; gap: 8px; }
  .comp-copy .check-list li { font-size: 15px; }
  .comp-copy .check-list span span { display: none; }
  .comp-grid { gap: 34px; }
  .tv { padding: 10px; }
  .tv-screen { padding: 16px; }
  .tv-row { padding: 8px 10px; }
  .tv-row:nth-child(4) { display: none; }
  .tv-title { font-size: 21px; margin-bottom: 10px; }
  .tv-caption { display: none; }

  /* FAQ */
  .faq-item summary { padding: 16px 18px; font-size: 15.5px; }
  .faq-item .ans { padding: 0 18px 18px; font-size: 14.5px; }
  .faq-list { gap: 8px; }

  /* Contacto: WhatsApp + formulario */
  .contact-card { gap: 22px; }
  .contact-copy .lead { margin-top: 14px; }
  .contact-links { margin-top: 20px; }
  .contact-links a:not(:first-child) { display: none; }
  .form { gap: 11px; }
  .form h3 { font-size: 24px; }
  .field { gap: 5px; }
  .field input, .field textarea, .field select { padding: 12px 14px; border-radius: 12px; }
  .field textarea { min-height: 76px; }

  /* Footer */
  .footer { padding: 48px 0 28px; }
  .footer-grid { gap: 22px 16px; }
  .footer-mega { margin-top: 32px; }
  .footer-bottom { margin-top: 30px; flex-direction: column; gap: 8px; }
}
