/* =========================================================
   M4 ESTUDIO · hoja de estilos principal
   Tokens de marca: manual M4 (azules) + sistema landing-page-design
   ========================================================= */

:root {
  /* Marca */
  --navy-950: #061B43;
  --navy-900: #001A54;
  --blue-600: #0755E7;
  --blue-500: #086AFF;
  --sky-300: #69C9FF;
  --ice-50: #F5F8FF;
  --white: #FFFFFF;

  /* Neutros de interfaz */
  --ink: #0B1630;
  --ink-2: #33415F;
  --muted: #5A6B8C;
  --line: #DCE4F5;
  --line-dark: rgba(255, 255, 255, .14);
  --surface: #FFFFFF;

  /* Espaciado (B2) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Radios (Tailwind) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* Movimiento (B7) */
  --ease: cubic-bezier(.22, 1, .36, 1);

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 24px; font-weight: 400;
  color: var(--ink); background: var(--ice-50);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 3px; border-radius: var(--r-lg); }
::selection { background: var(--sky-300); color: var(--navy-950); }

.skip-link {
  position: absolute; left: var(--s-200); top: -100px; z-index: 200;
  background: var(--white); color: var(--navy-950); padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg); font-weight: 600;
}
.skip-link:focus { top: var(--s-200); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Estilos de texto (B1) ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.015em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.lead { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--muted); }
.hl { color: var(--sky-300); }
.hl-blue { color: var(--blue-600); }

@media (max-width: 900px) {
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
}
@media (max-width: 520px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 24px; line-height: 32px; }
  .heading-4 { font-size: 24px; line-height: 32px; }
  .lead { font-size: 16px; line-height: 24px; }
}

/* ---------- Botones (B9) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-100) var(--s-300); border-radius: var(--r-full);
  font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 8px 24px rgba(8, 106, 255, .32); }
.btn-primary:hover { background: var(--blue-600); }
.btn-light { background: var(--white); color: var(--navy-950); }
.btn-light:hover { background: var(--ice-50); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--white); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
.btn-outline { border: 1px solid var(--line); color: var(--navy-950); background: var(--white); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-sm { padding: var(--s-75) var(--s-200); font-size: 14px; line-height: 20px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-50); font-weight: 600; color: var(--blue-600); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Encabezado flotante (B7 navegación) ---------- */
.site-header {
  position: fixed; inset: var(--s-200) 0 auto; z-index: 100; display: flex; justify-content: center;
  padding: 0 var(--s-200); pointer-events: none;
  transition: transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(-130%); }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300); border-radius: var(--r-full);
  background: rgba(6, 27, 67, .72); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  color: var(--white); max-width: 100%;
}
.site-header.on-light .nav { background: rgba(255, 255, 255, .78); border-color: var(--line); color: var(--navy-950); }
.nav-logo img { height: 28px; width: auto; }
.nav-logo .logo-dark { display: none; }
.site-header.on-light .nav-logo .logo-light { display: none; }
.site-header.on-light .nav-logo .logo-dark { display: block; }
.nav-links { display: flex; gap: var(--s-50); list-style: none; }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; opacity: .86;
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.site-header.on-light .nav-links a:hover { background: rgba(6, 27, 67, .06); }
.nav-links a[aria-current="page"] { opacity: 1; background: rgba(105, 201, 255, .18); }
.nav-cta { margin-left: var(--s-50); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-full); position: relative; }
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-900) var(--gutter) var(--s-600);
  background: rgba(6, 27, 67, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  color: var(--white); opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.mobile-menu ul { list-style: none; display: grid; gap: var(--s-75); }
.mobile-menu a.m-link { display: block; font-size: 30px; line-height: 36px; font-weight: 600; padding: var(--s-75) 0; }
.mobile-menu li, .mobile-menu .btn { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu-open .mobile-menu li, .menu-open .mobile-menu .btn { opacity: 1; transform: none; }
.mobile-menu .btn { margin-top: var(--s-400); align-self: flex-start; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { gap: var(--s-200); justify-content: space-between; width: 100%; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--s-900) 0; position: relative; }
.section-dark { background: var(--navy-950); color: var(--white); }
.section-deep { background: var(--navy-900); color: var(--white); }
.section-white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: var(--s-600); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--s-200); }
.section-head p { margin-top: var(--s-200); }
.section-dark .lead, .section-deep .lead { color: rgba(255, 255, 255, .72); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--blue-600); }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.section-dark .eyebrow, .section-deep .eyebrow, .hero .eyebrow { color: var(--sky-300); }
@media (max-width: 720px) { .section { padding: var(--s-800) 0; } .section-head { margin-bottom: var(--s-500); } }

/* ---------- Revelado al hacer scroll (B7) ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--navy-950); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + var(--s-700)) 0 var(--s-800);
}
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero-grid svg { width: 100%; height: 100%; }
.hero-route { stroke-dasharray: 2 10; animation: route 40s linear infinite; }
@keyframes route { to { stroke-dashoffset: -600; } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--s-600); align-items: center; }
.hero-copy { max-width: 680px; }
.hero h1 { max-width: 680px; margin-top: var(--s-300); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero.is-ready h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
.no-js .hero h1 .line > span { transform: none; }
.hero-sub { max-width: 600px; margin-top: var(--s-300); color: rgba(255, 255, 255, .76); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-500); }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); margin-top: var(--s-500); padding-top: var(--s-300);
  border-top: 1px solid var(--line-dark); list-style: none; color: rgba(255, 255, 255, .8);
}
.hero-proof li { display: inline-flex; align-items: center; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 500; }
.hero-proof svg { width: 18px; height: 18px; color: var(--sky-300); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.hero-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(105, 201, 255, .35); animation: spin 60s linear infinite; }
.hero-ring.r2 { inset: 18%; border-style: solid; border-color: rgba(255, 255, 255, .08); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-disc { position: absolute; inset: 20%; border-radius: 50%; background: var(--blue-600); }
.hero-avatar { position: absolute; left: 50%; bottom: 4%; width: 92%; transform: translateX(-50%); }
.hero-avatar img { width: 100%; filter: drop-shadow(0 32px 48px rgba(0, 0, 0, .35)); animation: float 7s var(--ease) infinite alternate; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-200) var(--s-75) var(--s-75); border-radius: var(--r-full);
  background: var(--white); color: var(--navy-950); box-shadow: 0 16px 40px rgba(0, 10, 40, .35);
  font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
  transition: transform .9s var(--ease);
}
.chip i { width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--ice-50); color: var(--blue-600); }
.chip i svg { width: 18px; height: 18px; }
.chip small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.chip-1 { top: 10%; left: -2%; }
.chip-2 { top: 26%; right: -4%; }
.chip-3 { bottom: 30%; left: -6%; }
.chip-4 { bottom: 12%; right: 0; }
.hero-scroll { position: absolute; left: 50%; bottom: var(--s-300); transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, .3); border-radius: var(--r-full); }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; order: -1; margin-top: var(--s-200); }
  .hero { min-height: auto; }
  .hero-scroll { display: none; }
}
@media (max-width: 520px) {
  .hero-visual { max-width: 320px; }
  .chip { font-size: 12px; line-height: 16px; padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50); }
  .chip i { width: 28px; height: 28px; }
  .chip small { display: none; }
  .chip-1 { left: 0; } .chip-3 { left: 0; } .chip-2 { right: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Marquesina de trabajos ---------- */
.marquee { background: var(--navy-950); padding: 0 0 var(--s-800); overflow: hidden; }
.marquee-track { display: flex; gap: var(--s-200); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee figure { margin: 0; width: 280px; aspect-ratio: 900 / 747; border-radius: var(--r-2xl); overflow: hidden; flex: none; position: relative; background: var(--navy-900); }
.marquee figure img { width: 100%; height: 100%; object-fit: cover; }
.marquee figcaption {
  position: absolute; left: var(--s-100); bottom: var(--s-100); padding: var(--s-25) var(--s-100); border-radius: var(--r-full);
  background: rgba(6, 27, 67, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--white); font-size: 12px; line-height: 16px; font-weight: 600;
}
@media (max-width: 520px) { .marquee figure { width: 200px; } }

/* ---------- Frase que se revela palabra por palabra (B11) ---------- */
.tagline { padding: var(--s-900) 0; background: var(--white); }
.tagline p { max-width: 980px; margin: 0 auto; text-align: center; }
.tagline .w { color: rgba(11, 22, 48, .22); transition: color .6s var(--ease); }
.tagline .w.on { color: var(--ink); }
.tagline .w.hl-on { color: rgba(8, 106, 255, .25); }
.tagline .w.hl-on.on { color: var(--blue-500); }

/* ---------- Las 4 líneas: tarjetas que se apilan ---------- */
.lines-stack { display: grid; gap: var(--s-300); }
.line-card {
  position: sticky; top: calc(var(--header-h) + var(--s-400));
  display: grid; grid-template-columns: 1.1fr .9fr; min-height: 420px; overflow: hidden;
  border-radius: var(--r-3xl); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(6, 27, 67, .08);
  transform-origin: 50% 0; will-change: transform;
}
.line-card:nth-child(2) { top: calc(var(--header-h) + var(--s-400) + 16px); }
.line-card:nth-child(3) { top: calc(var(--header-h) + var(--s-400) + 32px); }
.line-card:nth-child(4) { top: calc(var(--header-h) + var(--s-400) + 48px); }
.line-body { padding: var(--s-600); display: flex; flex-direction: column; }
.line-tag { display: inline-flex; align-self: flex-start; padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--ice-50); color: var(--blue-600); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.line-body h3 { margin-top: var(--s-300); }
.line-quote { margin-top: var(--s-200); color: var(--muted); font-size: 18px; line-height: 28px; font-weight: 500; }
.line-list { list-style: none; margin-top: var(--s-300); display: grid; gap: var(--s-75); }
.line-list li { display: flex; gap: var(--s-75); align-items: flex-start; color: var(--ink-2); }
.line-list svg { width: 20px; height: 20px; flex: none; color: var(--blue-500); margin-top: 2px; }
.line-foot { margin-top: auto; padding-top: var(--s-400); display: flex; align-items: center; gap: var(--s-300); flex-wrap: wrap; }
.line-price { font-size: 14px; line-height: 20px; color: var(--muted); }
.line-price strong { display: block; font-size: 24px; line-height: 32px; color: var(--navy-950); }
.line-art { position: relative; background: var(--navy-950); display: grid; place-items: end center; overflow: hidden; }
.line-art.blue { background: var(--blue-600); }
.line-art.sky { background: var(--sky-300); }
.line-art.deep { background: var(--navy-900); }
.line-art img.av { width: 82%; max-width: 380px; position: relative; z-index: 1; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .3)); }
.line-art .big-num { position: absolute; top: var(--s-300); right: var(--s-400); font-size: 128px; line-height: 1; font-weight: 600; color: rgba(255, 255, 255, .1); }
.line-art.sky .big-num { color: rgba(6, 27, 67, .12); }
@media (max-width: 860px) {
  .line-card { grid-template-columns: 1fr; position: relative; top: 0 !important; min-height: 0; }
  .line-art { order: -1; height: 260px; }
  .line-art img.av { width: 60%; max-width: 260px; }
  .line-body { padding: var(--s-400) var(--s-300); }
}

/* ---------- Portafolio ---------- */
.case {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: var(--s-300);
  padding: var(--s-400); border-radius: var(--r-3xl); background: var(--navy-900); border: 1px solid var(--line-dark);
}
.case-browser { border-radius: var(--r-2xl); overflow: hidden; background: #0d1b3a; box-shadow: 0 32px 64px rgba(0, 0, 0, .35); }
.case-browser .bar { display: flex; align-items: center; gap: var(--s-75); padding: var(--s-100) var(--s-200); background: #13244a; }
.case-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.case-browser .bar span { margin-left: var(--s-200); flex: 1; max-width: 320px; padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: rgba(255, 255, 255, .08); font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .7); }
.case-browser .shot { overflow: hidden; aspect-ratio: 16 / 10; }
.case-browser .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.case:hover .case-browser .shot img { transform: scale(1); }
.case-phones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); align-content: start; }
.phone { border-radius: var(--r-3xl); padding: var(--s-75); background: #0d1b3a; border: 1px solid var(--line-dark); box-shadow: 0 24px 48px rgba(0, 0, 0, .3); }
.phone video, .phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-2xl); background: #000; }
.phone figcaption { margin-top: var(--s-75); text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.case-info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-300); align-items: center; justify-content: space-between; padding-top: var(--s-200); }
.case-info h3 { color: var(--white); }
.case-info p { color: rgba(255, 255, 255, .72); max-width: 640px; margin-top: var(--s-75); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-75); list-style: none; }
.tags li { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); border: 1px solid var(--line-dark); font-size: 12px; line-height: 16px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.badge-real { display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: rgba(105, 201, 255, .16); color: var(--sky-300); font-size: 12px; line-height: 16px; font-weight: 600; }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); margin-top: var(--s-300); }
.work { position: relative; border-radius: var(--r-2xl); overflow: hidden; background: var(--navy-900); border: 1px solid var(--line-dark); }
.work img { width: 100%; aspect-ratio: 900 / 747; object-fit: cover; transition: transform 1s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work-meta { padding: var(--s-200) var(--s-300) var(--s-300); }
.work-meta h4 { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--white); }
.work-meta p { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .66); margin-top: var(--s-25); }
.work-flag { position: absolute; top: var(--s-100); left: var(--s-100); padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: rgba(6, 27, 67, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white); font-size: 12px; line-height: 16px; font-weight: 600; }
.works-note { margin-top: var(--s-300); color: rgba(255, 255, 255, .56); font-size: 14px; line-height: 20px; }
@media (max-width: 980px) {
  .case { grid-template-columns: 1fr; padding: var(--s-200); }
  .works { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-300); list-style: none; counter-reset: step; }
.step { position: relative; padding: var(--s-400) var(--s-300); border-radius: var(--r-2xl); background: var(--white); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--blue-500); }
.step h3 { margin-top: var(--s-200); }
.step p { margin-top: var(--s-75); color: var(--muted); }
.step .ico { position: absolute; top: var(--s-300); right: var(--s-300); width: 40px; height: 40px; border-radius: var(--r-xl); background: var(--ice-50); display: grid; place-items: center; color: var(--blue-600); }
.step .ico svg { width: 22px; height: 22px; }
.steps-line { height: 2px; background: var(--line); border-radius: 2px; margin: 0 0 var(--s-400); overflow: hidden; }
.steps-line span { display: block; height: 100%; width: 100%; background: var(--blue-500); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease); }
.steps-line.is-in span { transform: scaleX(1); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Comparador ---------- */
.compare { border-radius: var(--r-3xl); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: var(--s-200) var(--s-300); text-align: left; font-size: 14px; line-height: 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 16px; line-height: 24px; font-weight: 600; background: var(--ice-50); }
.compare thead th.m4 { background: var(--navy-950); color: var(--white); }
.compare td.m4 { background: rgba(8, 106, 255, .05); font-weight: 600; color: var(--navy-950); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--muted); font-weight: 500; }
.compare .yes, .compare .no { display: inline-flex; align-items: center; gap: var(--s-50); }
.compare .yes svg { width: 18px; height: 18px; color: var(--blue-500); }
.compare .no svg { width: 18px; height: 18px; color: #A0AEC8; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-scroll table { min-width: 640px; }

/* ---------- Paquetes ---------- */
.tabs { display: inline-flex; gap: var(--s-50); padding: var(--s-50); border-radius: var(--r-full); background: var(--white); border: 1px solid var(--line); position: relative; flex-wrap: wrap; }
.tab { position: relative; z-index: 1; padding: var(--s-75) var(--s-300); border-radius: var(--r-full); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); transition: color .3s var(--ease); }
.tab[aria-selected="true"] { color: var(--white); }
.tab-ind { position: absolute; z-index: 0; top: var(--s-50); left: 0; height: calc(100% - 8px); border-radius: var(--r-full); background: var(--navy-950); transition: transform .5s var(--ease), width .5s var(--ease); }
.tabs-row { display: flex; justify-content: center; margin-bottom: var(--s-500); }
.panel { display: none; }
.panel.is-active { display: block; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel-intro { text-align: center; max-width: 640px; margin: 0 auto var(--s-500); color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); align-items: stretch; }
.plans.four { grid-template-columns: repeat(4, 1fr); }
.plan { display: flex; flex-direction: column; padding: var(--s-400) var(--s-300); border-radius: var(--r-3xl); background: var(--white); border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(6, 27, 67, .1); }
.plan.featured { background: var(--navy-950); color: var(--white); border-color: var(--navy-950); }
.plan-badge { position: absolute; top: calc(-1 * var(--s-100)); left: var(--s-300); padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: var(--sky-300); color: var(--navy-950); font-size: 12px; line-height: 16px; font-weight: 600; }
.plan h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.plan .for { margin-top: var(--s-75); font-size: 14px; line-height: 20px; color: var(--muted); min-height: 40px; }
.plan.featured .for { color: rgba(255, 255, 255, .7); }
.plan .price { margin-top: var(--s-300); display: flex; align-items: baseline; gap: var(--s-75); flex-wrap: wrap; }
.plan .price strong { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.plan .price span { font-size: 14px; line-height: 20px; color: var(--muted); }
.plan.featured .price span { color: rgba(255, 255, 255, .64); }
.plan .meta { margin-top: var(--s-75); font-size: 14px; line-height: 20px; color: var(--muted); }
.plan.featured .meta { color: rgba(255, 255, 255, .7); }
.plan ul { list-style: none; margin: var(--s-300) 0; display: grid; gap: var(--s-75); }
.plan li { display: flex; gap: var(--s-75); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.plan.featured li { color: rgba(255, 255, 255, .86); }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--blue-500); margin-top: 1px; }
.plan.featured li svg { color: var(--sky-300); }
.plan .btn { margin-top: auto; }
.plan .cupos { margin-top: var(--s-100); text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); }
.plan.featured .cupos { color: rgba(255, 255, 255, .6); }
.plans-note { margin-top: var(--s-400); text-align: center; color: var(--muted); font-size: 14px; line-height: 20px; max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 1080px) { .plans.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plans.four { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }

/* Kit */
.kit { display: grid; grid-template-columns: 1fr auto; gap: var(--s-400); align-items: center; margin-top: var(--s-600); padding: var(--s-500); border-radius: var(--r-3xl); background: var(--blue-600); color: var(--white); overflow: hidden; position: relative; }
.kit h3 { max-width: 560px; }
.kit p { margin-top: var(--s-100); color: rgba(255, 255, 255, .84); max-width: 600px; }
.kit .kit-items { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-300); list-style: none; }
.kit .kit-items li { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: rgba(255, 255, 255, .14); font-size: 14px; line-height: 20px; font-weight: 600; }
.kit-price { text-align: right; }
.kit-price s { color: rgba(255, 255, 255, .6); font-size: 16px; line-height: 24px; }
.kit-price strong { display: block; font-size: 48px; line-height: 48px; font-weight: 600; margin: var(--s-50) 0 var(--s-300); }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr; padding: var(--s-400) var(--s-300); } .kit-price { text-align: left; } }

/* ---------- Referidos y afiliados ---------- */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
.ref-card { padding: var(--s-500); border-radius: var(--r-3xl); background: var(--navy-900); border: 1px solid var(--line-dark); display: flex; flex-direction: column; }
.ref-card h3 { margin-top: var(--s-200); }
.ref-card p { margin-top: var(--s-100); color: rgba(255, 255, 255, .72); }
.ref-card ol { margin: var(--s-300) 0 0; padding-left: var(--s-300); display: grid; gap: var(--s-75); color: rgba(255, 255, 255, .84); }
.ref-card .btn { margin-top: var(--s-400); align-self: flex-start; }
.ref-card.soon { background: transparent; border-style: dashed; }
.soon-pill { display: inline-flex; align-self: flex-start; padding: var(--s-25) var(--s-100); border-radius: var(--r-full); background: rgba(105, 201, 255, .16); color: var(--sky-300); font-size: 12px; line-height: 16px; font-weight: 600; }
@media (max-width: 860px) { .ref-grid { grid-template-columns: 1fr; } .ref-card { padding: var(--s-400) var(--s-300); } }

/* ---------- Blog (tarjetas) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-2xl); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(6, 27, 67, .1); }
.post-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-cover.c1 { background: var(--navy-950); } .post-cover.c2 { background: var(--blue-600); } .post-cover.c3 { background: var(--sky-300); }
.post-cover img { width: 46%; position: absolute; bottom: 0; right: 6%; }
.post-cover .kw { position: absolute; left: var(--s-300); top: var(--s-300); max-width: 52%; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--white); }
.post-cover.c3 .kw { color: var(--navy-950); }
.post-body { padding: var(--s-300); display: flex; flex-direction: column; flex: 1; }
.post-body .cat { color: var(--blue-600); }
.post-body h3 { margin-top: var(--s-100); font-size: 20px; line-height: 28px; }
.post-body p { margin-top: var(--s-75); color: var(--muted); font-size: 14px; line-height: 20px; }
.post-body .link-arrow { margin-top: auto; padding-top: var(--s-300); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: var(--s-100); }
.faq details { border-radius: var(--r-2xl); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-300); padding: var(--s-300); font-size: 18px; line-height: 28px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 24px; height: 24px; flex: none; border-radius: var(--r-full); background: var(--ice-50); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 2px; border-radius: 2px; background: var(--blue-600); transition: transform .5s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 var(--s-300) var(--s-300); color: var(--ink-2); }
.faq .ans p + p { margin-top: var(--s-100); }

/* ---------- CTA final ---------- */
.final { background: var(--navy-950); color: var(--white); padding: var(--s-900) 0 0; overflow: hidden; }
.final-inner { display: grid; grid-template-columns: 1fr .8fr; gap: var(--s-400); align-items: end; }
.final h2 { max-width: 640px; }
.final p { margin-top: var(--s-300); max-width: 560px; color: rgba(255, 255, 255, .76); }
.final .hero-actions { margin-bottom: var(--s-900); }
.final-art img { width: 100%; max-width: 520px; margin-left: auto; }
@media (max-width: 860px) { .final-inner { grid-template-columns: 1fr; } .final .hero-actions { margin-bottom: var(--s-300); } .final-art img { max-width: 360px; margin: 0 auto; } }

/* ---------- Pie ---------- */
.site-footer { background: #04122E; color: rgba(255, 255, 255, .72); padding: var(--s-700) 0 var(--s-400); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-400); }
.foot-grid img { height: 32px; width: auto; }
.foot-grid p { margin-top: var(--s-200); font-size: 14px; line-height: 20px; max-width: 320px; }
.foot-grid h4 { color: var(--white); font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: var(--s-200); }
.foot-grid ul { list-style: none; display: grid; gap: var(--s-75); }
.foot-grid a { font-size: 14px; line-height: 20px; transition: color .3s var(--ease); }
.foot-grid a:hover { color: var(--white); }
.foot-bottom { margin-top: var(--s-600); padding-top: var(--s-300); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); font-size: 12px; line-height: 16px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Ventana de contratación ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--s-200); visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 18, 46, .64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100svh - 32px); overflow: auto;
  border-radius: var(--r-3xl); background: var(--white); padding: var(--s-400);
  opacity: 0; transform: translateY(32px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: var(--s-200); right: var(--s-200); width: 40px; height: 40px; border-radius: var(--r-full); background: var(--ice-50); display: grid; place-items: center; }
.modal-close svg { width: 20px; height: 20px; }
.modal h2 { font-size: 24px; line-height: 32px; padding-right: var(--s-600); }
.modal .sub { margin-top: var(--s-50); color: var(--muted); font-size: 14px; line-height: 20px; }
.sum { margin-top: var(--s-300); border-radius: var(--r-2xl); background: var(--ice-50); padding: var(--s-200) var(--s-300); display: grid; gap: var(--s-75); }
.sum-row { display: flex; justify-content: space-between; gap: var(--s-200); font-size: 14px; line-height: 20px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row strong { font-weight: 600; text-align: right; }
.sum-row.total { padding-top: var(--s-75); border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; }
.sum-row.total strong { font-size: 20px; line-height: 28px; color: var(--blue-600); }
.field { margin-top: var(--s-200); display: grid; gap: var(--s-50); }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: var(--s-100) var(--s-200); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--white); font-size: 16px; line-height: 24px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(8, 106, 255, .16); }
.field .err { display: none; color: #C2321F; font-size: 12px; line-height: 16px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C2321F; }
.field.invalid .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-200); }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } .modal-card { padding: var(--s-300) var(--s-200); } }
.check { margin-top: var(--s-300); display: flex; gap: var(--s-100); align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 0; flex: none; accent-color: var(--blue-500); }
.check a { color: var(--blue-600); text-decoration: underline; }
.check.invalid { color: #C2321F; }
.pay-btns { margin-top: var(--s-300); display: grid; gap: var(--s-100); }
.pay-note { margin-top: var(--s-200); font-size: 12px; line-height: 16px; color: var(--muted); }
.spei { display: none; margin-top: var(--s-200); border-radius: var(--r-2xl); border: 1px dashed var(--blue-500); padding: var(--s-200) var(--s-300); }
.spei.is-on { display: block; animation: panelIn .5s var(--ease); }
.spei dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-75) var(--s-200); margin: 0 0 var(--s-200); font-size: 14px; line-height: 20px; }
.spei dt { color: var(--muted); }
.spei dd { margin: 0; font-weight: 600; word-break: break-all; }
.copy-btn { margin-left: var(--s-75); color: var(--blue-600); font-size: 12px; line-height: 16px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: var(--s-300); z-index: 400; transform: translate(-50%, 24px); opacity: 0; padding: var(--s-100) var(--s-300); border-radius: var(--r-full); background: var(--navy-950); color: var(--white); font-size: 14px; line-height: 20px; font-weight: 500; transition: opacity .3s var(--ease), transform .5s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Páginas internas (blog, legales) ---------- */
.page-hero { background: var(--navy-950); color: var(--white); padding: calc(var(--header-h) + var(--s-800)) 0 var(--s-700); }
.page-hero h1 { max-width: 820px; margin-top: var(--s-200); }
.page-hero p { max-width: 680px; margin-top: var(--s-200); color: rgba(255, 255, 255, .76); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-75); list-style: none; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .6); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-75); color: rgba(255, 255, 255, .35); }
.crumbs a:hover { color: var(--white); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-600); align-items: start; }
.prose { max-width: 720px; font-size: 18px; line-height: 28px; color: var(--ink-2); }
.prose > * + * { margin-top: var(--s-300); }
.prose h2 { font-size: 30px; line-height: 36px; color: var(--ink); margin-top: var(--s-600); }
.prose h3 { font-size: 24px; line-height: 32px; color: var(--ink); margin-top: var(--s-500); }
.prose ul, .prose ol { padding-left: var(--s-300); display: grid; gap: var(--s-75); }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .tldr { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--white); border: 1px solid var(--line); font-size: 16px; line-height: 24px; }
.prose .tldr strong { display: block; margin-bottom: var(--s-75); color: var(--blue-600); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; background: var(--white); border-radius: var(--r-2xl); overflow: hidden; }
.prose th, .prose td { padding: var(--s-100) var(--s-200); border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--ice-50); color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s-200); margin-top: var(--s-300); font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .7); }
.aside-card { position: sticky; top: calc(var(--header-h) + var(--s-400)); padding: var(--s-400) var(--s-300); border-radius: var(--r-3xl); background: var(--navy-950); color: var(--white); overflow: hidden; }
.aside-card img { width: 70%; margin: 0 auto var(--s-200); }
.aside-card h3 { font-size: 20px; line-height: 28px; }
.aside-card p { margin-top: var(--s-75); font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .72); }
.aside-card .btn { margin-top: var(--s-300); }
.article-cta { margin-top: var(--s-700); padding: var(--s-400); border-radius: var(--r-3xl); background: var(--blue-600); color: var(--white); }
.article-cta p { margin-top: var(--s-75); color: rgba(255, 255, 255, .84); }
.article-cta .btn { margin-top: var(--s-300); }
.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; background: var(--sky-300); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; } .aside-card { position: relative; top: 0; } }
@media (max-width: 520px) { .prose { font-size: 16px; line-height: 24px; } .prose h2 { font-size: 24px; line-height: 32px; } }

.legal { max-width: 760px; }
.legal .notice { padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); background: #FFF6E5; border: 1px solid #F2D49B; color: #6B4A0E; font-size: 14px; line-height: 20px; }

.thanks { min-height: 100svh; display: grid; place-items: center; background: var(--navy-950); color: var(--white); padding: calc(var(--header-h) + var(--s-500)) 0 var(--s-700); text-align: center; }
.thanks img.av { width: 260px; margin: 0 auto var(--s-300); }
.thanks h1 { max-width: 680px; margin: 0 auto; }
.thanks p { max-width: 560px; margin: var(--s-200) auto 0; color: rgba(255, 255, 255, .76); }
.thanks .hero-actions { justify-content: center; }
.thanks ol { max-width: 520px; margin: var(--s-500) auto 0; text-align: left; display: grid; gap: var(--s-100); padding-left: var(--s-300); color: rgba(255, 255, 255, .84); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { transform: none; transition: opacity .4s linear; }
  .hero h1 .line > span { transform: none; transition: none; }
  .marquee-track { animation: none; }
  .tagline .w { color: var(--ink); transition: none; }
  .tagline .w.hl-on { color: var(--blue-500); }
  .line-card { transform: none !important; }
  .chip { transform: none !important; }
}

/* ---------- Ajustes de QA ---------- */
.plans > * { min-width: 0; }
.plan .btn { white-space: normal; text-align: center; }
.plans.four .plan .price strong { font-size: 30px; line-height: 36px; }
.phone { margin: 0; }
.badge-real svg { width: 14px; height: 14px; }
.case-phones { align-self: center; }
@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-2xl); width: 100%; }
  .tab { border-radius: var(--r-xl); text-align: center; padding: var(--s-75) var(--s-100); }
  .tab[aria-selected="true"] { background: var(--navy-950); }
  .tab-ind { display: none; }
}
[hidden] { display: none !important; }
.article-wrap > aside { align-self: stretch; }
.site-header.is-hidden { opacity: 0; }

/* =========================================================
   v2 · Ventana de contratación en pasos
   ========================================================= */
.qm { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--s-300); }
.qm__bg { position: absolute; inset: 0; background: rgba(4, 18, 46, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.qm.is-on .qm__bg { opacity: 1; }
.qm__panel { position: relative; width: min(1000px, 100%); max-height: calc(100svh - 48px); display: grid; grid-template-columns: 340px minmax(0, 1fr); background: var(--ice-50); border-radius: var(--r-3xl); overflow: hidden; box-shadow: 0 48px 120px -32px rgba(0, 0, 0, .6); transform: translateY(32px) scale(.97); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.4, .64, 1), opacity .4s var(--ease); }
.qm.is-on .qm__panel { transform: none; opacity: 1; }
.qm__side { position: relative; background: var(--navy-950); color: var(--white); padding: var(--s-500) var(--s-400) 0; display: flex; flex-direction: column; gap: var(--s-300); overflow: hidden; }
.qm__side h2 { font-size: 30px; line-height: 36px; margin-top: calc(-1 * var(--s-100)); }
.qm__side p { color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 20px; }
.qm__pkg { border-radius: var(--r-2xl); background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); padding: var(--s-200); font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .7); }
.qm__pkg b { display: block; margin-top: var(--s-25); font-size: 18px; line-height: 28px; color: var(--white); }
.qm__pkg em { font-style: normal; color: var(--sky-300); font-weight: 600; font-size: 14px; line-height: 20px; }
.qm__steps { list-style: none; display: grid; gap: var(--s-100); }
.qm__steps li { display: flex; gap: var(--s-100); align-items: center; font-weight: 600; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .55); transition: color .3s var(--ease); }
.qm__steps li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; border: 2px solid rgba(255, 255, 255, .3); transition: all .4s var(--ease); }
.qm__steps li.is-on { color: var(--white); }
.qm__steps li.is-on i { background: var(--sky-300); border-color: var(--sky-300); color: var(--navy-950); transform: scale(1.1); }
.qm__steps li.is-done { color: rgba(255, 255, 255, .85); }
.qm__steps li.is-done i { background: var(--white); border-color: var(--white); color: var(--navy-950); }
.qm__trust { list-style: none; display: grid; gap: var(--s-75); font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .85); }
.qm__trust li { display: flex; gap: var(--s-75); align-items: center; }
.qm__trust svg { width: 16px; height: 16px; color: var(--sky-300); flex: none; }
.qm__av { width: 78%; margin: auto auto 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.qm__main { display: flex; flex-direction: column; min-height: 0; }
.qm__top { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-300) var(--s-400) var(--s-100); }
.qm__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.qm__bar i { display: block; height: 100%; width: 33%; background: var(--blue-500); border-radius: 6px; transition: width .6s var(--ease); }
.qm__count { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.qm__x { width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.qm__x:hover { transform: rotate(90deg); }
.qm__x svg { width: 20px; height: 20px; }
.qm__body { overflow-y: auto; padding: var(--s-100) var(--s-400) var(--s-400); overscroll-behavior: contain; }
.mstep { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.mstep.is-on { display: block; animation: stepIn .5s var(--ease); }
.mstep.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.mstep h3 { font-size: 24px; line-height: 32px; }
.mstep__lead { margin-top: var(--s-50); color: var(--muted); font-size: 14px; line-height: 20px; }
.mstep .field small { color: var(--muted); font-weight: 400; }
fieldset.field { border: 0; padding: 0; margin: var(--s-200) 0 0; min-width: 0; }
fieldset.field legend { font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: var(--s-75); padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-200); border-radius: var(--r-full); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--navy-950); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.pills label:hover span { box-shadow: inset 0 0 0 1.5px var(--blue-500); }
.pills input:checked + span { background: var(--navy-950); color: var(--white); box-shadow: none; transform: scale(1.04); }
.pills input:focus-visible + span { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.field.invalid .pills span { box-shadow: inset 0 0 0 1.5px #C2321F; }
.hint { display: block; font-size: 12px; line-height: 16px; color: var(--muted); min-height: 16px; }
.hint.ok { color: #12805C; font-weight: 600; } .hint.bad { color: #C2321F; }
.qm__nav { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-100); margin-top: var(--s-400); }
.qm__nav .note { margin-right: auto; font-size: 12px; line-height: 16px; color: var(--muted); }
.qm__summary { display: grid; gap: var(--s-50); margin: var(--s-300) 0 0; }
.qm__summary div { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s-100); align-items: start; padding: var(--s-75) 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.qm__summary dt { color: var(--muted); }
.qm__summary dd { margin: 0; font-weight: 600; word-break: break-word; }
.qm__summary button { color: var(--blue-600); font-size: 12px; line-height: 16px; font-weight: 600; }
.qm__done { text-align: left; padding-top: var(--s-500); animation: stepIn .6s var(--ease); }
.qm__done:focus { outline: none; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: #12805C; color: var(--white); display: grid; place-items: center; animation: pop .7s cubic-bezier(.34, 1.56, .64, 1); }
.done-ico svg { width: 28px; height: 28px; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.qm__done h3 { margin-top: var(--s-300); font-size: 24px; line-height: 32px; }
.qm__done > p { margin-top: var(--s-75); color: var(--ink-2); }
.spei-box { display: grid; grid-template-columns: auto 1fr; gap: var(--s-75) var(--s-200); margin: var(--s-300) 0 0; padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); background: var(--white); border: 1px dashed var(--blue-500); font-size: 14px; line-height: 20px; }
.spei-box dt { color: var(--muted); } .spei-box dd { margin: 0; font-weight: 600; word-break: break-all; }
@media (max-width: 900px) {
  .qm { padding: 0; place-items: end center; }
  .qm__panel { grid-template-columns: 1fr; border-radius: var(--r-3xl) var(--r-3xl) 0 0; max-height: 94svh; transform: translateY(100%); transition: transform .5s var(--ease), opacity .3s var(--ease); }
  .qm.is-on .qm__panel { transform: none; }
  .qm__side { display: none; }
  .qm__top { padding: var(--s-200) var(--s-200) var(--s-75); }
  .qm__body { padding: var(--s-50) var(--s-200) var(--s-300); }
  .qm__nav { position: sticky; bottom: calc(-1 * var(--s-300)); background: var(--ice-50); padding: var(--s-100) 0 var(--s-200); margin-bottom: calc(-1 * var(--s-100)); box-shadow: 0 -12px 20px -16px rgba(6, 27, 67, .35); z-index: 2; }
  .qm__nav .note { display: none; }
  .qm__nav .btn { flex: 1; }
  .qm__summary div { grid-template-columns: 96px minmax(0, 1fr) auto; }
}

/* =========================================================
   v2 · Microanimaciones de tarjetas (rebote suave)
   ========================================================= */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }
.plan, .work, .post-card, .step, .ref-card, .line-card .btn, .chip, .faq details, .case { transition: transform .6s var(--spring), box-shadow .5s var(--ease), border-color .3s var(--ease); }
.plan:hover, .post-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 32px 64px -24px rgba(6, 27, 67, .28); }
.plan:active, .post-card:active, .work:active { transform: translateY(-2px) scale(.99); }
.work:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .5); }
.works .work:nth-child(even):hover { transform: translateY(-8px) rotate(.6deg); }
.step:hover { transform: translateY(-6px); border-color: var(--blue-500); box-shadow: 0 24px 48px -24px rgba(8, 106, 255, .35); }
.step:hover .ico { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg) scale(1.05); } }
.faq details:hover { transform: translateX(4px); border-color: var(--blue-500); }
.ref-card:hover { transform: translateY(-6px); }
.chip:hover { transform: scale(1.06) !important; }
.reveal { transition: opacity .8s var(--ease), transform .9s var(--spring); }
.line-art img.av { transition: transform .8s var(--spring); }
.line-card:hover .line-art img.av { transform: translateY(-10px) scale(1.03); }
.post-cover img { transition: transform .7s var(--spring); }
.post-card:hover .post-cover img { transform: translateY(-8px) rotate(-3deg); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(8, 106, 255, .4); }
.btn { transition: transform .5s var(--spring), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .plan:hover, .post-card:hover, .work:hover, .step:hover, .faq details:hover, .ref-card:hover { transform: none; }
}

/* Portafolio v2 */
.works { grid-template-columns: repeat(6, 1fr); }
.works .work { grid-column: span 2; }
.works .work.wide { grid-column: span 3; }
.works .work.wide img { aspect-ratio: 16 / 9; }
.scroll-shot { position: relative; }
.scroll-shot img { height: auto !important; object-fit: initial !important; transform: none !important; transition: transform 6s cubic-bezier(.45, 0, .2, 1) !important; }
.case:hover .scroll-shot img, .scroll-shot:focus-within img { transform: translateY(calc(-100% + 100cqh)) !important; }
.scroll-shot { container-type: size; }
@media (max-width: 980px) { .works .work, .works .work.wide { grid-column: span 3; } .works .work:nth-child(3) { grid-column: span 6; } }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } .works .work, .works .work.wide, .works .work:nth-child(3) { grid-column: auto; } }

/* Compartir */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); margin-top: var(--s-300); }
.share span { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .7); margin-right: var(--s-50); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--white); transition: transform .5s var(--spring), background-color .3s var(--ease); }
.share a:hover, .share button:hover { transform: translateY(-3px) scale(1.08); background: var(--blue-500); }
.share svg { width: 18px; height: 18px; }
.prose .share span { color: var(--muted); }
.prose .share a, .prose .share button { background: var(--white); color: var(--navy-950); border: 1px solid var(--line); }
.prose .share a:hover, .prose .share button:hover { background: var(--navy-950); color: var(--white); }
.prose .share { margin-top: var(--s-500); padding-top: var(--s-300); border-top: 1px solid var(--line); }
@media (hover: none) { .scroll-shot img { animation: shotScroll 16s cubic-bezier(.45, 0, .2, 1) infinite alternate; } }
@keyframes shotScroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.qm__main { max-height: calc(100svh - 48px); overflow: hidden; }
.qm__body { flex: 1; min-height: 0; }
@media (max-width: 900px) { .qm__main { max-height: 94svh; } }
.agenda { margin-top: var(--s-300); border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.agenda iframe { width: 100%; height: 520px; border: 0; display: block; }
.thanks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200); max-width: 960px; margin: var(--s-500) auto 0; text-align: left; }
.thanks-card { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--navy-900); border: 1px solid var(--line-dark); transition: transform .6s var(--spring); }
.thanks-card:hover { transform: translateY(-6px); }
.thanks-card .ico { width: 40px; height: 40px; border-radius: var(--r-xl); background: rgba(105, 201, 255, .16); color: var(--sky-300); display: grid; place-items: center; }
.thanks-card .ico svg { width: 22px; height: 22px; }
.thanks-card h2 { margin-top: var(--s-200); color: var(--white); }
.thanks-card ul { list-style: none; margin-top: var(--s-100); display: grid; gap: var(--s-75); font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .78); }
.thanks-card li::before { content: "·"; color: var(--sky-300); font-weight: 700; margin-right: var(--s-75); }
@media (max-width: 860px) { .thanks-grid { grid-template-columns: 1fr; } }
.thanks .eyebrow { color: var(--sky-300); }
