/* ===========================================================
   Negocio Listo — estilos
   Familia visual del portafolio de Leo Gatell (leogatell.com):
   mismas variables de color y tipografía. Para cambiar la paleta
   o las fuentes, solo edita el bloque :root de abajo.
   =========================================================== */

:root {
  /* — Paleta (idéntica al portafolio) — */
  --bg: #0a0a0c;
  --bg-alt: #101013;
  --panel: #141417;
  --panel-border: #232227;
  --text: #f2ede2;
  --text-dim: #b3ada0;
  --text-faint: #77726a;
  --gold: #cda434;
  --gold-bright: #e8c869;
  --gold-dim: #8a6f28;

  /* — Tipografía (idéntica al portafolio) — */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* — Medidas — */
  --container: 1180px;
  --radius: 16px;
  --radius-lg: 22px;

  /* — Derivados del dorado (para brillos y bordes) — */
  --gold-rgb: 205, 164, 52;
  --gold-glow: rgba(var(--gold-rgb), 0.14);
  --gold-line: rgba(var(--gold-rgb), 0.28);
  --ok: #8fcf9f;
  --error: #e0745a;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open, body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font-family: inherit; }

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

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.ico { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-l { margin-right: 2px; }
svg use { pointer-events: none; }

/* ---------- Grano + barra de progreso ---------- */

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.6);
}

/* ---------- Encabezado ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.12);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); background: rgba(10, 10, 12, 0.86); }

.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; color: var(--text);
}
.brand-text span { color: var(--gold); font-style: italic; font-weight: 500; }
.brand.small { font-size: 1.15rem; }
.brand-mark {
  position: relative; width: 30px; height: 30px; display: grid; place-items: center; flex: none;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 3px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  transform: rotate(45deg); border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.16), 0 6px 16px rgba(var(--gold-rgb), 0.25);
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark::before { transform: rotate(135deg); }
.brand-mark svg { position: relative; width: 15px; height: 15px; fill: none; stroke: #0a0a0c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  position: relative; font-size: 0.88rem; letter-spacing: 0.03em; color: var(--text-dim);
  transition: color 0.25s ease; white-space: nowrap;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--text); }
.main-nav .nav-cta {
  border: 1px solid var(--gold-dim); padding: 8px 18px; border-radius: 999px; color: var(--gold-bright);
}
.main-nav .nav-cta:hover { background: var(--gold); color: #0a0a0c; border-color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--gold-bright); width: 100%; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Botones (píldora, como el portafolio) ---------- */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px; border: 0;
  font-size: 0.92rem; letter-spacing: 0.02em; font-weight: 500; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico:not(.ico-l) { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #0a0a0c;
  box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.18);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); transition: left 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--gold-rgb), 0.3); }
.btn-primary:hover::after { left: 140%; }
.btn-outline { border: 1px solid rgba(242, 237, 226, 0.25); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Títulos de sección ---------- */

.kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

.section-head h2, .faq-head h2, .contact-copy h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance;
}
.section-head h2 em, .faq-head h2 em, .contact-copy h2 em { color: var(--gold-bright); font-style: italic; font-weight: 500; }

.gold-rule { display: block; width: 64px; height: 2px; margin-top: 22px; background: linear-gradient(90deg, var(--gold), transparent); }
.gold-rule.center { margin-left: auto; margin-right: auto; background: var(--gold); }

.section-sub { margin-top: 18px; color: var(--text-dim); font-size: 1.02rem; max-width: 560px; text-wrap: pretty; }
.section-head.center { text-align: center; margin-bottom: 60px; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head { margin-bottom: 56px; }

section { position: relative; }

/* ---------- Animaciones de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* Un elemento con .split se anima palabra por palabra, nunca con .reveal */
.js .reveal.split { opacity: 1; transform: none; }

.split .w { display: inline-block; }
.js .split .w { opacity: 0; transform: translateY(0.55em); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.js .split.in .w { opacity: 1; transform: none; filter: none; }

/* ---------- HERO ---------- */

.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(40px); }
.glow-a {
  width: 820px; height: 820px; top: -260px; right: -220px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.2) 0%, rgba(var(--gold-rgb), 0.05) 45%, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.glow-b {
  width: 640px; height: 640px; bottom: -280px; left: -200px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.12) 0%, transparent 68%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242, 237, 226, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 226, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 10%, transparent 75%);
}

.hero-grid {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 56px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--gold-bright); transform: rotate(45deg); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.16); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(var(--gold-rgb), 0); } }

.hero-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(2.6rem, 5.6vw, 4.7rem); line-height: 1.04; text-wrap: balance;
  margin-bottom: 26px;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--gold-bright); }

.hero-lead { font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--text-dim); max-width: 560px; line-height: 1.75; margin-bottom: 36px; text-wrap: pretty; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 26px; border-top: 1px solid var(--panel-border); max-width: 560px; }
.hero-proof li { font-size: 0.86rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.hero-proof strong { color: var(--gold-bright); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }

/* — Composición del hero — */

.stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; padding: 34px 0; perspective: 1200px; }
.stage-ring-bg {
  position: absolute; inset: 6% 2%; border-radius: 50%;
  border: 1px dashed rgba(var(--gold-rgb), 0.22);
  animation: spin 60s linear infinite;
}
.stage-ring-bg::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px;
  background: var(--gold-bright); transform: rotate(45deg); box-shadow: 0 0 14px var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

.panel {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, #17171b, #111114);
  border: 1px solid rgba(var(--gold-rgb), 0.28); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 90px rgba(var(--gold-rgb), 0.08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.panel-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--panel-border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2b2a30; }
.dots i:first-child { background: var(--gold-dim); }
.panel-title { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-dim); flex: 1; }
.badge-ex { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--panel-border); padding: 3px 9px; border-radius: 999px; }

.panel-body { display: flex; align-items: center; gap: 28px; padding: 28px 26px 30px; }

.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: #232227; }
.ring-fill { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.5)); }
.stage.in .ring-fill { animation: ringFill 2.6s 0.5s var(--ease) forwards; }
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.ring-text { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; align-content: center; text-align: center; }
.ring-num { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; color: var(--gold-bright); line-height: 1; }
.ring-pct { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.ring-text small { flex-basis: 100%; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }

.checklist { flex: 1; display: grid; gap: 11px; }
.checklist li { display: flex; align-items: center; gap: 11px; font-size: 0.9rem; color: var(--text); }
.tick {
  width: 20px; height: 20px; padding: 3px; flex: none; border-radius: 50%;
  fill: none; stroke: #0a0a0c; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15);
}
/* Los checks se marcan uno por uno (si no hay JS, se ven completos) */
.js .checklist li { opacity: 0.35; }
.js .checklist .tick { background: #2a2930; stroke: transparent; box-shadow: none; }
.stage.in .checklist li { animation: itemOn 0.6s var(--ease) forwards; animation-delay: calc(0.7s + var(--d) * 0.32s); }
.stage.in .checklist .tick { animation: tickOn 0.5s var(--ease) forwards; animation-delay: calc(0.7s + var(--d) * 0.32s); }
@keyframes itemOn { to { opacity: 1; } }
@keyframes tickOn { to { background: var(--gold); stroke: #0a0a0c; box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15); } }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 12px; border-radius: 14px;
  background: rgba(20, 20, 23, 0.9); border: 1px solid rgba(var(--gold-rgb), 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0);
  transition: transform 0.3s ease-out;
  animation: bob 6s ease-in-out infinite;
}
.float small { display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); line-height: 1.2; }
.float b { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.float-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--gold-rgb), 0.12); border: 1px solid var(--gold-line); flex: none; }
.float-ico svg, .card-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f-ein { top: -6px; right: -14px; animation-delay: -1s; }
.f-mail { bottom: -24px; left: -26px; animation-delay: -3s; }
.f-web { top: 50%; right: -34px; animation-delay: -5s; }

.panel-foot { display: flex; align-items: center; gap: 16px; padding: 16px 26px 20px; border-top: 1px solid var(--panel-border); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-faint); }
.panel-foot .bar { flex: 1; height: 5px; border-radius: 999px; background: #232227; overflow: hidden; }
.panel-foot .bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); transform-origin: left; transform: scaleX(1); }
.js .panel-foot .bar i { transform: scaleX(0); }
.stage.in .panel-foot .bar i { animation: barFill 2.6s 0.5s var(--ease) forwards; }
@keyframes barFill { to { transform: scaleX(1); } }
@keyframes bob { 50% { margin-top: -9px; } }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, var(--gold-dim)); }
.scroll-cue span { position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); animation: scrollDown 2.2s ease-in-out infinite; }
@keyframes scrollDown { 0% { top: 0; opacity: 0; } 30% { opacity: 1; } 100% { top: 46px; opacity: 0; } }

/* ---------- Franja en movimiento ---------- */

.marquee { overflow: hidden; border-block: 1px solid var(--panel-border); background: var(--bg-alt); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--text-dim); white-space: nowrap; padding-inline: 26px; }
.marquee-group i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SERVICIOS ---------- */

.services { padding: 130px 0 120px; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card-llc { grid-column: span 7; }
.card-credit { grid-column: span 5; }
.card-itin { grid-column: span 5; }
.card-web { grid-column: span 7; }

.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  transition: border-color 0.35s ease, transform 0.45s var(--ease), box-shadow 0.35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--gold-rgb), 0.14), transparent 62%);
}
.card:hover { border-color: rgba(var(--gold-rgb), 0.42); transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--gold-rgb), 0.1); border: 1px solid var(--gold-line); flex: none; }
.card-ico svg { width: 24px; height: 24px; }
.card-ico.sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 4px; }
.card-ico.sm svg { width: 21px; height: 21px; }
.card-index { position: absolute; top: 26px; right: 30px; font-family: var(--serif); font-style: italic; color: var(--gold-dim); font-size: 1.15rem; }
.card-llc .card-top .tag { margin-right: 44px; }

.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid var(--gold-line); padding: 6px 12px; border-radius: 999px; background: rgba(var(--gold-rgb), 0.06); }
.tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; margin-top: 10px; letter-spacing: -0.005em; }
.card p { color: var(--text-dim); font-size: 0.97rem; line-height: 1.7; max-width: 560px; }
.card p b { color: var(--gold-bright); font-weight: 600; }
.card-note { font-size: 0.86rem !important; color: var(--text-faint) !important; border-left: 2px solid var(--gold-dim); padding-left: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.chips li { font-size: 0.82rem; color: var(--text); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.02); transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.card:hover .chips li { border-color: rgba(var(--gold-rgb), 0.28); }
.chips li:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.chips .chip-more { color: var(--gold); font-style: italic; font-family: var(--serif); border-style: dashed; }

.card-actions { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: auto; }
.card-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text); padding-top: 12px;
}
.card-actions .card-link { margin-top: 0; }
.card-link .ico { color: var(--gold); transition: transform 0.3s var(--ease); }
.card-link { border-bottom: 0; position: relative; }
.card-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold-dim); transform-origin: left; transition: background 0.25s ease; }
.card-link:hover { color: var(--gold-bright); }
.card-link:hover::after { background: var(--gold-bright); }
.card-link:hover .ico { transform: translateX(4px); }
.card-link-soft { color: var(--text-dim); }

/* ---------- CÓMO FUNCIONA ---------- */

.how { padding: 120px 0; background: var(--bg-alt); border-block: 1px solid var(--panel-border); }

.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
/* La línea va del centro del paso 1 al centro del paso 4 */
.steps::before { content: ""; position: absolute; top: 25px; left: 25px; right: calc(25% - 49px); height: 1px; background: var(--panel-border); }
.steps-fill {
  position: absolute; top: 25px; left: 25px; right: calc(25% - 49px); height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transform-origin: left; transform: scaleX(var(--p));
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.6);
}

.step { position: relative; }
.node {
  position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--text-faint); background: var(--bg-alt); border: 1px solid var(--panel-border);
  transition: color 0.5s ease, background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s var(--ease);
}
.step.on .node {
  color: #0a0a0c; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-color: var(--gold-bright);
  box-shadow: 0 0 0 6px rgba(var(--gold-rgb), 0.14), 0 10px 26px rgba(var(--gold-rgb), 0.3); transform: scale(1.06);
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; margin: 26px 0 10px; line-height: 1.25; }
.step p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; max-width: 270px; }
.how-cta { display: flex; justify-content: center; margin-top: 64px; }

/* ---------- POR QUÉ ---------- */

.why { padding: 130px 0; }
.why-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.why-left { position: sticky; top: 110px; }
.why-left .section-head { margin-bottom: 40px; }

.quote {
  position: relative; padding: 34px 34px 30px 38px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.09), rgba(var(--gold-rgb), 0.02) 60%);
  border: 1px solid var(--gold-line); border-left: 3px solid var(--gold);
}
.quote-mark { position: absolute; top: -6px; right: 26px; font-family: var(--serif); font-size: 5.5rem; line-height: 1; color: var(--gold-dim); opacity: 0.6; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.quote footer { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.quote footer b { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-bright); font-size: 1.05rem; }
.quote footer span { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-faint); }

.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
  padding: 30px 26px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.why-card:hover { border-color: rgba(var(--gold-rgb), 0.4); transform: translateY(-4px); }
.why-card:nth-child(even) { transform: translateY(0); }
.why-cards .why-card:nth-child(2n) { margin-top: 28px; }
.why-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 14px 0 8px; line-height: 1.3; }
.why-card p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.65; }

/* ---------- CIFRAS ---------- */

.stats { padding: 110px 0; background: var(--bg-alt); border-block: 1px solid var(--panel-border); overflow: hidden; }
.stats::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(var(--gold-rgb), 0.09), transparent 65%); pointer-events: none;
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat { padding: 10px 24px; }
.stat + .stat { border-left: 1px solid var(--panel-border); }
.stat-number { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(3.2rem, 7vw, 5.4rem); line-height: 1; color: var(--gold-bright); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(var(--gold-rgb), 0.25); }
.stat-label { display: block; margin-top: 16px; font-size: 0.92rem; color: var(--text-dim); letter-spacing: 0.02em; }
.stat-label small { color: var(--text-faint); font-size: 0.8rem; }

/* ---------- TESTIMONIOS ---------- */

.testimonials { padding: 130px 0; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-card {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: 38px 30px 30px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-border);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.t-card:hover { border-color: rgba(var(--gold-rgb), 0.35); transform: translateY(-4px); }
.t-quote { width: 34px; height: 34px; color: var(--gold-dim); }
.t-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; color: var(--text); flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--panel-border); }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--gold-bright); background: rgba(var(--gold-rgb), 0.1); border: 1px solid var(--gold-line); flex: none; }
.t-name { display: block; font-weight: 600; font-size: 0.95rem; }
.t-meta { display: block; font-size: 0.82rem; color: var(--text-faint); }

/* Tarjeta de plantilla (se ve claramente como "por agregar") */
.t-card.is-placeholder { border-style: dashed; border-color: rgba(var(--gold-rgb), 0.3); }
.t-card.is-placeholder .t-text { color: var(--text-faint); font-style: italic; }
.t-flag {
  position: absolute; top: -13px; left: 26px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #0a0a0c; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(var(--gold-rgb), 0.25);
}

/* ---------- PREGUNTAS FRECUENTES ---------- */

.faq { padding: 130px 0; background: var(--bg-alt); border-block: 1px solid var(--panel-border); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .btn { margin-top: 30px; }

.faq-item { border-bottom: 1px solid var(--panel-border); }
.faq-item:first-child { border-top: 1px solid var(--panel-border); }
.faq-item h3 { font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.4; padding: 24px 0;
  transition: color 0.25s ease;
}
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--gold-bright); }
.faq-plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--gold-line); transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--gold-bright); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease), background 0.3s ease; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-plus { background: var(--gold); border-color: var(--gold); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-plus::before, .faq-q[aria-expanded="true"] .faq-plus::after { background: #0a0a0c; }
.faq-q[aria-expanded="true"] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text-dim); font-size: 0.98rem; line-height: 1.8; padding: 0 44px 26px 0; text-wrap: pretty; }
/* Con JS: cerradas por defecto y se abren con animación. Sin JS: todo visible. */
.js .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.js .faq-a.open { grid-template-rows: 1fr; }

/* ---------- CONTACTO ---------- */

.contact { padding: 130px 0 140px; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 15% 30%, rgba(var(--gold-rgb), 0.1), transparent 70%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy .section-sub { margin-bottom: 30px; }
.contact-points { display: grid; gap: 14px; margin-bottom: 38px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.98rem; }
.contact-points svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; fill: none; stroke: #0a0a0c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--gold); flex: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-form {
  position: relative; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg);
  padding: 40px 38px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.contact-form::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(var(--gold-rgb), 0.55), transparent 35%, transparent 70%, rgba(var(--gold-rgb), 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; }
.form-row label { font-size: 0.82rem; letter-spacing: 0.03em; color: var(--text-dim); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--panel-border); border-radius: 10px; padding: 13px 16px;
  color: var(--text); font-family: var(--sans); font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15); }
.form-row .invalid { border-color: var(--error) !important; }
.form-row select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23cda434' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-row select option { background: var(--panel); color: var(--text); }
.form-row textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 0.84rem; line-height: 1.55; color: var(--text-dim); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent-box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1px solid var(--gold-dim); background: var(--bg); display: grid; place-items: center; transition: background 0.2s ease, border-color 0.2s ease; margin-top: 1px; }
.consent-box svg { width: 14px; height: 14px; fill: none; stroke: #0a0a0c; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.5); transition: opacity 0.2s ease, transform 0.3s var(--ease); }
.consent input:checked + .consent-box { background: var(--gold); border-color: var(--gold); }
.consent input:checked + .consent-box svg { opacity: 1; transform: scale(1); }
.consent input:focus-visible + .consent-box { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.consent.invalid .consent-box { border-color: var(--error); }
.consent a { color: var(--gold-bright); border-bottom: 1px solid var(--gold-dim); }

.form-submit { align-self: center; min-width: 240px; margin-top: 4px; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.form-status { text-align: center; font-size: 0.92rem; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--gold-bright); }
.contact-form.is-sent > :not(.form-status) { display: none; }
.contact-form.is-sent .form-status { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; padding: 30px 10px; }

/* ---------- PIE ---------- */

.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--panel-border); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-faint); font-size: 0.88rem; max-width: 330px; margin-top: 16px; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 44px; align-content: start; }
.footer-nav a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold-bright); }
.disclaimer { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--panel-border); color: var(--text-faint); font-size: 0.78rem; line-height: 1.7; max-width: 860px; }
.footer-bottom { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-faint); font-size: 0.8rem; }
.by-leo { display: inline-flex; align-items: center; gap: 7px; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--text-dim); transition: color 0.2s ease; }
.by-leo:hover { color: var(--gold-bright); }
.by-leo .ico { color: var(--gold); }

/* ---------- Barra fija en celular ---------- */

.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10, 10, 12, 0.96) 60%, rgba(10, 10, 12, 0));
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* ---------- Páginas legales ---------- */

.legal { padding: 150px 0 100px; }
.legal-inner { max-width: 780px; margin: 0 auto; padding-inline: 24px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.01em; }
.legal .updated { margin-top: 14px; color: var(--text-faint); font-size: 0.88rem; }
.legal .notice { margin: 32px 0 8px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--gold-line); background: rgba(var(--gold-rgb), 0.06); color: var(--text-dim); font-size: 0.92rem; line-height: 1.7; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 46px 0 14px; color: var(--gold-bright); }
.legal p, .legal li { color: var(--text-dim); font-size: 1rem; line-height: 1.85; }
.legal p { margin-bottom: 14px; }
.legal ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 4px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.legal a { color: var(--gold-bright); border-bottom: 1px solid var(--gold-dim); }
.legal strong { color: var(--text); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-size: 0.88rem; color: var(--text-dim); }
.back-link:hover { color: var(--gold-bright); }
.back-link .ico { transform: rotate(180deg); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.notfound h1 { font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); color: var(--gold-bright); line-height: 1; font-weight: 600; }
.notfound p { color: var(--text-dim); margin: 16px 0 30px; }

/* ---------- Adaptación a pantallas ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 120px; min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-lead, .hero-copy .hero-proof { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .eyebrow { justify-content: center; }
  .scroll-cue { display: none; }
  .stage { max-width: 500px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-left { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .diag-cta-box { grid-template-columns: 1fr; gap: 28px; padding: 40px 30px; }
  .diag-cta-chips { justify-content: flex-start; }
  .card-llc, .card-credit, .card-itin, .card-web { grid-column: span 12; }
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
  .steps::before, .steps-fill { display: none; }
  .steps .step .node { border-color: var(--gold-dim); }
}

@media (max-width: 860px) {
  .t-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .stats-grid { grid-template-columns: 1fr; gap: 44px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--panel-border); padding-top: 44px; }
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; padding: 88px 24px 32px;
    background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
    transform: translateY(-105%); transition: transform 0.5s var(--ease); z-index: -1;
    max-height: 100svh; overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--panel-border); font-size: 1.05rem; color: var(--text); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin-top: 18px; text-align: center; border: 1px solid var(--gold); background: var(--gold); color: #0a0a0c; }
  .header-inner { position: relative; z-index: 2; }
  .sticky-cta { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; gap: 0; --p: 0; padding-left: 0; }
  .steps::before, .steps-fill { display: block; top: 25px; bottom: 25px; left: 25px; right: auto; width: 1px; height: auto; }
  .steps-fill { transform-origin: top; transform: scaleY(var(--p)); }
  .step { padding: 0 0 44px 74px; }
  .step:last-child { padding-bottom: 0; }
  .step .node { position: absolute; left: 0; top: 0; }
  .step h3 { margin: 12px 0 8px; }
  .step p { max-width: none; }
  .why-cards { grid-template-columns: 1fr; }
  .why-cards .why-card:nth-child(2n) { margin-top: 0; }
  .panel-body { flex-direction: column; align-items: center; gap: 24px; padding: 24px 20px 26px; }
  .checklist { width: 100%; max-width: 250px; }
  .f-mail { left: -4px; bottom: -22px; }
  .f-web { display: none; }
  .f-ein { right: -4px; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; text-align: center; }
  .eyebrow-dot { display: none; }
  .float b { font-size: 0.8rem; }
  .services, .how, .why, .testimonials, .faq, .diag-cta { padding-block: 84px; }
  .stats { padding-block: 84px; }
  .contact { padding-block: 84px 110px; }
  .card { padding: 28px 24px 26px; }
  .card-index { top: 22px; right: 22px; }
  .contact-form { padding: 30px 22px; }
  .section-head.center { margin-bottom: 44px; }
  .faq-a p { padding-right: 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 96px; }
  .glow-a { width: 520px; height: 520px; top: -160px; right: -200px; }
}

@media (max-width: 400px) {
  .header-inner { padding-inline: 16px; }
  .section-inner { padding-inline: 18px; }
  .brand { font-size: 1.15rem; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Asistente de Negocio Listo (IA) ---------- */

.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 200; }

.chat-launcher {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #0a0a0c;
  box-shadow: 0 10px 28px rgba(var(--gold-rgb), 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(var(--gold-rgb), 0.4); }
.chat-launcher .ico { width: 24px; height: 24px; position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-ico-close { opacity: 0; transform: scale(0.6) rotate(-45deg); }
.chat-widget.open .chat-ico-open { opacity: 0; transform: scale(0.6) rotate(45deg); }
.chat-widget.open .chat-ico-close { opacity: 1; transform: none; }

.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: min(92vw, 380px);
  height: min(72vh, 560px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform-origin: bottom right; transform: scale(0.96) translateY(8px); opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.chat-widget.open .chat-panel { transform: none; opacity: 1; }

.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--panel-border);
}
.chat-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.chat-sub { margin-top: 4px; font-size: 0.78rem; color: var(--text-faint); line-height: 1.5; }
.chat-close {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent;
  color: var(--text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-close:hover { color: var(--gold-bright); }
.chat-close .ico { width: 18px; height: 18px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg p { margin: 0; font-size: 0.9rem; line-height: 1.6; }
.chat-msg a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 2px; }
.chat-msg-bot { align-self: flex-start; max-width: 92%; background: var(--bg-alt); border: 1px solid var(--panel-border); border-radius: 14px 14px 14px 4px; padding: 10px 13px; }
.chat-msg-user { align-self: flex-end; max-width: 88%; background: rgba(var(--gold-rgb), 0.14); border: 1px solid var(--gold-line); border-radius: 14px 14px 4px 14px; padding: 10px 13px; }
.chat-msg-user p { color: var(--text); }
.chat-msg-error p { color: var(--error); }
.chat-msg-typing .dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.chat-msg-typing .dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint);
  animation: chatDot 1.1s ease-in-out infinite;
}
.chat-msg-typing .dots span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg-typing .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.chat-router-options { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chat-router-opt {
  text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--panel-border);
  background: var(--panel); color: var(--text); font-family: inherit; font-size: 0.82rem; line-height: 1.4; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chat-router-opt:hover:not(:disabled) { border-color: var(--gold); background: rgba(var(--gold-rgb), 0.08); }
.chat-router-opt:disabled { opacity: 0.4; cursor: default; }

.chat-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-cta-btn { padding: 9px 15px; font-size: 0.8rem; }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--panel-border); }
.chat-form textarea {
  flex: 1; resize: none; max-height: 110px; padding: 10px 13px; border-radius: 14px;
  border: 1px solid var(--panel-border); background: var(--bg-alt); color: var(--text);
  font-family: inherit; font-size: 0.9rem; line-height: 1.5;
}
.chat-form textarea:focus { outline: none; border-color: var(--gold); }
.chat-send {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #0a0a0c;
  display: flex; align-items: center; justify-content: center;
}
.chat-send:disabled { opacity: 0.5; cursor: default; }
.chat-send .ico { width: 17px; height: 17px; }

@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel { width: 92vw; height: min(78vh, 560px); }
}
/* En celular, si la barra fija está visible, sube el botón para no encimarse */
.sticky-cta.show ~ .chat-widget { bottom: calc(14px + 66px + env(safe-area-inset-bottom)); }

/* ---------- Diagnóstico gratis (CTA en la página) ---------- */

.diag-cta { padding: 100px 0; }
.diag-cta-box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  padding: 52px 54px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-border);
}
.diag-cta-box::before {
  content: ""; position: absolute; top: -140px; right: -100px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%); pointer-events: none;
}
.diag-cta-copy { position: relative; z-index: 1; }
.diag-cta-copy .btn { margin-top: 26px; }
.diag-cta-note { margin-top: 14px; font-size: 0.84rem; color: var(--text-faint); }
.diag-cta-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-content: center; }
.diag-cta-chips li {
  list-style: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gold-line);
  background: rgba(var(--gold-rgb), 0.07); color: var(--text-dim); font-size: 0.82rem; white-space: nowrap;
}

/* ---------- Diagnóstico gratis (modal paso a paso) ---------- */

.diag-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6, 6, 8, 0.72);
}
.diag-modal {
  width: 100%; max-width: 560px; max-height: min(88vh, 680px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.diag-modal-head { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; }
.diag-back {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--text-dim);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.diag-back .ico { transform: scaleX(-1); width: 18px; height: 18px; }
.diag-back:hover { color: var(--gold-bright); }
.diag-modal-headline { flex: 1; min-width: 0; }
.diag-modal-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.diag-modal-step { margin-top: 2px; font-size: 0.78rem; color: var(--text-faint); }

.diag-progress { height: 3px; margin: 0 20px; background: var(--panel-border); border-radius: 2px; overflow: hidden; }
.diag-progress-bar { height: 100%; width: 4%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width 0.35s var(--ease); }

.diag-modal-body { flex: 1; overflow-y: auto; padding: 22px 24px 26px; }

.diag-cat-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.diag-question h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.3; margin: 0 0 18px; }
.diag-cat-hint { margin: -10px 0 14px; font-size: 0.82rem; color: var(--text-faint); }
.diag-options { display: flex; flex-direction: column; gap: 10px; }
.diag-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  padding: 14px 18px; border-radius: 14px; border: 1px solid var(--panel-border); background: var(--bg-alt);
  color: var(--text); font-family: inherit; font-size: 0.94rem; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.diag-option:hover { border-color: var(--gold); background: rgba(var(--gold-rgb), 0.08); transform: translateX(2px); }
.diag-option .ico { width: 16px; height: 16px; flex: none; opacity: 0; color: var(--gold-bright); transition: opacity 0.2s ease; }
.diag-option.selected { border-color: var(--gold); background: rgba(var(--gold-rgb), 0.12); }
.diag-option.selected .ico { opacity: 1; }

.diag-email p.diag-lead { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 18px; line-height: 1.6; }
.diag-email .form-row { margin-bottom: 16px; }

.diag-service h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin: 0 0 14px; }
.diag-service-msg { color: var(--text-dim); font-size: 0.94rem; line-height: 1.65; margin: 0 0 22px; }

.diag-result-score {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
  font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-bright);
}
.diag-result-score span { font-family: var(--sans); font-size: 0.9rem; color: var(--text-faint); font-weight: 400; }
.diag-result-sub { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 22px; }

.diag-result-section { margin: 0 0 22px; }
.diag-result-section h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.diag-cat-list { display: flex; flex-direction: column; gap: 8px; }

.diag-cat-item {
  border-radius: 12px; border: 1px solid var(--panel-border); background: var(--bg-alt); padding: 11px 14px;
}
.diag-cat-item.done { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.diag-cat-item.done .ico { width: 16px; height: 16px; flex: none; color: var(--ok); }
.diag-cat-item.pending { border-color: var(--gold-line); background: rgba(var(--gold-rgb), 0.05); }
.diag-cat-head { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.diag-cat-item .diag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.diag-cat-why { margin: 0 0 4px; font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.diag-cat-service { margin: 0; font-size: 0.82rem; color: var(--gold-bright); }
.diag-cat-service b { font-weight: 600; }

.diag-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.diag-result-actions .btn { flex: 1; min-width: 180px; }

@media (max-width: 480px) {
  .diag-overlay { padding: 0; align-items: flex-end; }
  .diag-modal { max-width: none; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* Solo se apagan los efectos realmente intrusivos (giros infinitos rápidos, etc.).
   Las microinteracciones (hover, aparecer al hacer scroll, contadores) se mantienen. */
@media (prefers-reduced-motion: reduce) {
  .stage-ring-bg, .glow, .scroll-cue span { animation: none; }
  .chat-msg-typing .dots span { animation: none; opacity: 0.6; }
}
