/* =============================================================================
   Estilos de la landing
   Identidad: papel cálido + tinta + violeta eléctrico con toques naranja.
   Los videos/imágenes (p. ej. de Higgsfield) viven en marcos oscuros (.frame).
   ========================================================================== */

:root {
  --paper: #f5f4f8;
  --paper-2: #ecebf3;
  --card: #ffffff;
  --ink: #0e0d16;
  --ink-2: #444458;
  --ink-3: #6b6c80;
  --line: rgba(30, 24, 70, .10);
  --line-2: rgba(30, 24, 70, .18);

  --night: #0d0e14;
  --night-2: #171926;
  --night-line: rgba(255, 255, 255, .1);
  --on-night: #f4f4f6;
  --on-night-2: #a9adba;

  --accent: #5b3df5;
  --accent-hover: #4a2ee6;
  --accent-soft: #ebe7ff;
  --accent-light: #b9adff;
  --hot: #ff5c35;
  --hot-deep: #e04a1f;
  --hot-soft: #ffb38f;
  --success: #12a594;

  --tone: #8b78ff;

  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 13, 17, .05), 0 2px 8px rgba(12, 13, 17, .04);
  --shadow: 0 1px 2px rgba(12, 13, 17, .05), 0 14px 34px -14px rgba(12, 13, 17, .2);
  --shadow-lg: 0 40px 80px -32px rgba(12, 13, 17, .45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Colores de las ilustraciones dentro de los marcos oscuros */
[data-tone="violet"]  { --tone: #8b78ff; }
[data-tone="sky"]     { --tone: #4aa3ff; }
[data-tone="teal"]    { --tone: #19d3c0; }
[data-tone="magenta"] { --tone: #ff4fb0; }
[data-tone="amber"]   { --tone: #ffb53d; }
[data-tone="hot"]     { --tone: #ff6a45; }

/* --- Base --------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
}

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }

/* --- Tipografía ----------------------------------------------------------------- */

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font: 500 .8125rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--hot); }

.title {
  margin: 0 0 18px;
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.title em, .hero h1 em { font-style: normal; color: var(--hot-deep); }

.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }

/* --- Botones y etiquetas ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--card);
  color: var(--ink);
  font: 600 .9375rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16), 0 8px 20px -10px rgba(12, 13, 17, .45);
}
.btn-primary:hover {
  border-color: transparent;
  background: var(--accent-hover);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16), 0 12px 26px -10px rgba(12, 13, 17, .5);
}
.btn-wa .icon { color: #25d366; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font: 500 .8125rem/1.2 var(--font-mono);
  color: var(--ink-2);
}
.pill .icon { width: 16px; height: 16px; color: var(--accent); }
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 4px rgba(255, 92, 53, .2);
}

.checks { display: grid; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.45; }
.checks .icon {
  width: 18px; height: 18px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 3;
}
.checks.lg { gap: 12px; }
.checks.lg li { font-size: 1.0625rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  font: 500 .8125rem/1.2 var(--font-mono);
  color: var(--ink-2);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(245, 244, 248, .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font: 700 1.0625rem/1 var(--font-display);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--pill);
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(12, 13, 17, .05); }
.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --- Hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 96px);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 0;
  z-index: -2;
  background-image: radial-gradient(rgba(12, 13, 17, .14) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 30%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 30%, #000 15%, transparent 70%);
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%; top: -25%;
  width: min(900px, 95vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(91, 61, 245, .17), transparent 70%),
    radial-gradient(closest-side at 30% 75%, rgba(255, 92, 53, .1), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  margin: 22px 0;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.hero h1 em { font-size: 1.06em; }
.hero .lead { max-width: 600px; margin: 0 0 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 28px 0 0; padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: .9375rem;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon {
  width: 20px; height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 3;
}

/* Collage del hero */
.hero-visual { position: relative; padding: 28px 0 44px; }

.frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night);
}
.frame-hero {
  aspect-ratio: 10 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(12, 13, 17, .06);
  transform: rotate(-1.5deg);
}

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(12, 13, 17, .4), 0 2px 6px rgba(12, 13, 17, .06);
  font-size: .875rem;
  line-height: 1.3;
  animation: bob 7s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 600; color: var(--ink); }
.float-card small { display: block; color: var(--ink-3); font-size: .8125rem; }

.fc-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: rgba(255, 92, 53, .12);
  color: var(--hot-deep);
}
.fc-icon .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.fc-invoice { left: -28px; top: 9%; }

.fc-chat { right: -20px; top: 44%; max-width: 260px; animation-delay: -2.5s; }
.fc-avatar {
  display: grid; place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.fc-avatar .icon { width: 18px; height: 18px; }
.fc-chat .bubble {
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.fc-chart { left: 7%; bottom: 0; flex-direction: column; align-items: flex-start; gap: 8px; animation-delay: -4.5s; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.mini-bars i { width: 12px; border-radius: 4px 4px 2px 2px; background: var(--accent-soft); }
.mini-bars i:nth-child(1) { height: 35%; }
.mini-bars i:nth-child(2) { height: 52%; }
.mini-bars i:nth-child(3) { height: 44%; }
.mini-bars i:nth-child(4) { height: 66%; }
.mini-bars i:nth-child(5) { height: 58%; }
.mini-bars i:nth-child(6) { height: 80%; }
.mini-bars i:nth-child(7) { height: 100%; background: var(--accent); }

/* --- Media: video/imagen o ilustración de respaldo ---------------------------- */

.art {
  position: absolute; inset: 0;
  overflow: hidden;
  color: var(--tone);
  background:
    radial-gradient(90% 75% at 88% 0%, color-mix(in srgb, var(--tone) 48%, transparent), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, color-mix(in srgb, var(--tone) 20%, transparent), transparent 65%),
    linear-gradient(160deg, #1a1c28, #0b0c12 72%);
}
.art-icon {
  position: absolute; left: 50%; top: 44%;
  width: 30%; max-width: 120px; height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  stroke-width: 1.15;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--tone) 70%, transparent));
  animation: float 7s ease-in-out infinite;
}
.art-chip {
  position: absolute; left: 16px; bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: rgba(12, 13, 20, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 .75rem/1 var(--font-mono);
  color: var(--on-night);
  white-space: nowrap;
}
.art-chip::before { content: "› "; color: var(--tone); }

/* Ventana de "sistema" para el hero */
.art-window { display: grid; place-items: center; padding: 9%; }
.win {
  position: relative; z-index: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.win-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 500 .6875rem/1 var(--font-mono);
  color: var(--on-night-2);
}
.win-bar i { width: 9px; height: 9px; border-radius: 50%; }
.win-bar i:nth-child(1) { background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; }
.win-body { display: grid; grid-template-columns: 22% 1fr; }
.win-side { display: grid; align-content: start; gap: 10px; padding: 14px 12px; border-right: 1px solid rgba(255, 255, 255, .07); }
.win-side b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.win-side b:first-child { width: 80%; background: var(--tone); }
.win-main { display: grid; gap: 12px; padding: 14px; }
.win-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.win-kpis span {
  position: relative;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
}
.win-kpis span::before,
.win-kpis span::after { content: ""; position: absolute; left: 10px; height: 6px; border-radius: 4px; }
.win-kpis span::before { top: 11px; width: 30%; background: rgba(255, 255, 255, .18); }
.win-kpis span::after { bottom: 11px; width: 55%; background: rgba(255, 255, 255, .4); }
.win-kpis span:first-child::after { background: var(--tone); }
.win-chart {
  display: flex; align-items: flex-end; gap: 6%;
  height: 110px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.win-chart i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--tone), color-mix(in srgb, var(--tone) 25%, transparent));
  transform-origin: bottom;
  animation: grow 1.2s var(--ease) both;
}
.win-chart i:nth-child(1) { height: 38%; animation-delay: .1s; }
.win-chart i:nth-child(2) { height: 55%; animation-delay: .18s; }
.win-chart i:nth-child(3) { height: 46%; animation-delay: .26s; }
.win-chart i:nth-child(4) { height: 70%; animation-delay: .34s; }
.win-chart i:nth-child(5) { height: 62%; animation-delay: .42s; }
.win-chart i:nth-child(6) { height: 84%; animation-delay: .5s; }
.win-chart i:nth-child(7) { height: 76%; animation-delay: .58s; }
.win-chart i:nth-child(8) { height: 96%; animation-delay: .66s; }
.win-rows { display: grid; gap: 7px; }
.win-rows span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.win-rows span:nth-child(2) { width: 85%; }
.win-rows span:nth-child(3) { width: 65%; }

.media-video, .media-img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .6s, transform .9s var(--ease);
}
.media-video { opacity: 0; }
.media-video.is-ready, .media-video[poster] { opacity: 1; }

/* --- Marquesina de tecnologías ---------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--card);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; justify-content: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 12px; max-width: var(--container); margin: 0; padding: 0 var(--gutter); list-style: none; }
.marquee-list li {
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font: 500 .9375rem/1 var(--font-mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); }

/* --- Secciones ------------------------------------------------------------------- */

.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--paper-2); }
.pt-0 { padding-top: 0 !important; }
#preguntas + #contacto { padding-top: clamp(8px, 2vw, 24px); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > p:last-child { margin: 0; color: var(--ink-2); font-size: 1.0625rem; text-wrap: pretty; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.svc-card-media { aspect-ratio: 16 / 10; }
.svc-card:hover .media-video, .svc-card:hover .media-img { transform: scale(1.04); }
.svc-card:hover .link-arrow .icon { transform: translateX(4px); }
.svc-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 16px 16px; }
.svc-card h3 { margin-bottom: 8px; font-size: 1.5rem; letter-spacing: -.03em; }
.svc-card-body > p { margin: 0 0 16px; color: var(--ink-2); font-size: 1rem; }

/* Por qué nosotros */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento-item {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.bento-item h3 { margin-top: auto; font-size: 1.375rem; letter-spacing: -.025em; }
.bento-item p { margin: 0; color: var(--ink-2); }
.bento-item h3 { display: flex; align-items: center; gap: 12px; }
.bento-item h3 .icon { width: 24px; height: 24px; color: var(--accent); }
.bento-item.featured h3 .icon { width: 32px; height: 32px; color: #ffb38f; }
.bento-item.featured { grid-column: span 2; border-color: transparent; background: var(--night); color: var(--on-night); }
.bento-item.featured::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(91, 61, 245, .6), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(255, 92, 53, .25), transparent 60%);
  pointer-events: none;
}
.bento-item.featured::after {
  content: "</>";
  position: absolute; right: 28px; top: 12px;
  font: 700 clamp(5rem, 10vw, 8rem)/1 var(--font-display);
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .07);
  pointer-events: none;
}
.bento-item.featured > * { position: relative; z-index: 1; }
.bento-item.featured h3 { max-width: 520px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; }
.bento-item.featured p { max-width: 520px; color: var(--on-night-2); font-size: 1.0625rem; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step-num {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  font: 700 3rem/1 var(--font-display);
  letter-spacing: -.04em;
  color: var(--accent);
}
.step h3 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Proyectos */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { padding: 10px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--card); box-shadow: var(--shadow-sm); }
.project-media { aspect-ratio: 16 / 10; }
.project-body { padding: 20px 16px 16px; }
.project-body h3 { margin-bottom: 8px; font-size: 1.5rem; }
.project-body > p { color: var(--ink-2); }
.project-meta { margin: 0 0 6px; font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; }
.project-result { display: flex; gap: 8px; align-items: flex-start; color: var(--ink) !important; font-weight: 500; }
.project-result .icon { margin-top: 3px; color: var(--hot); }
.project-body .chips { margin-bottom: 16px; }

/* Preguntas frecuentes */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .muted { margin-bottom: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: rgba(91, 61, 245, .35); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: 600 1.0625rem/1.4 var(--font-sans); letter-spacing: -.01em; }
.faq-toggle {
  display: grid; place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.faq-toggle .icon { width: 16px; height: 16px; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer { padding: 0 22px 22px; color: var(--ink-2); }
.faq-answer p { margin: 0; }

/* --- Contacto (panel oscuro) ------------------------------------------------------ */

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--on-night);
  box-shadow: var(--shadow-lg);
}
.contact-card.single { grid-template-columns: minmax(0, 1fr); }
.contact-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(91, 61, 245, .45), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(255, 92, 53, .2), transparent 60%);
}
.contact-card .kicker { color: var(--accent-light); }
.contact-card .title { color: #fff; font-size: clamp(1.875rem, 3.6vw, 2.875rem); }
.contact-card .title em { color: var(--accent-light); }
.contact-card .muted { color: var(--on-night-2); }

.contact-methods { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.cm {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--night-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  color: var(--on-night);
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
a.cm:hover { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .09); }
.cm strong { display: block; font-weight: 600; }
.cm small { display: block; color: var(--on-night-2); font-size: .875rem; }
.cm-icon {
  display: grid; place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.cm-icon.is-wa { background: #25d366; }

/* Formulario */
.contact-form-wrap { position: relative; }
.contact-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--on-night-2); font-size: .875rem; font-weight: 500; }
.field label small { font-size: inherit; opacity: .75; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .55); }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9adba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
}
.field select option { background: var(--night-2); color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #8b78ff;
  background-color: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 4px rgba(139, 120, 255, .25);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff7a7a; }
.field-error { margin: 0; color: #ff9b9b; font-size: .8125rem; }

.form-alert {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, .35);
  border-radius: 12px;
  background: rgba(255, 107, 107, .12);
  color: #ffc2c2;
}
.form-status { min-height: 1.25em; margin: 0; color: var(--on-night-2); font-size: .875rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff9b9b; }
.form-note { margin: 0; color: var(--on-night-2); font-size: .8125rem; }
.form-note a { color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  display: grid; justify-items: center; align-content: center; gap: 14px;
  min-height: 100%;
  padding: 32px 12px;
  text-align: center;
}
.form-success:focus { outline: none; }
.form-success h3 { color: #fff; font-size: 1.875rem; letter-spacing: -.03em; }
.form-success p { max-width: 420px; margin: 0; color: var(--on-night-2); }
.success-icon {
  display: grid; place-items: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06);
}
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }

/* --- Páginas de servicio -------------------------------------------------------- */

.page-hero { position: relative; isolation: isolate; padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 96px); }

.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px; padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: .875rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.svc-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.svc-hero .lead { margin: 0 0 30px; }
.svc-media { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.svc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.svc-section + .svc-section { margin-top: 56px; }
.svc-section h2 { margin-bottom: 20px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; }

.bullets { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.bullets li::marker { color: var(--hot); }

.mini-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mini-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-steps span { color: var(--accent); font: 600 .875rem/1.7 var(--font-mono); }
.mini-steps strong { display: block; color: var(--ink); }
.mini-steps p { margin: 2px 0 0; color: var(--ink-2); font-size: .9375rem; }

.facts {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.facts dl { display: grid; gap: 18px; margin: 0 0 24px; }
.facts dt { margin-bottom: 6px; color: var(--ink-3); font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* --- Gracias, 404 y textos legales ------------------------------------------------ */

.center-block { max-width: 680px; margin-inline: auto; text-align: center; }
.center-block .lead { margin-bottom: 32px; }
.big-icon {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(12, 13, 17, .45);
}
.big-icon .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.error-code {
  margin: 0 0 8px;
  font: 700 clamp(6rem, 20vw, 11rem)/.9 var(--font-display);
  letter-spacing: -.06em;
  color: var(--accent);
}

.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 12px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -.025em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--accent); }

/* --- Pie de página --------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .9375rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { max-width: 380px; margin: 16px 0 0; }
.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-grid ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .8125rem;
}
.footer-bottom p { margin: 0; }
.footer-mega {
  margin: 12px 0 -.18em;
  font: 700 clamp(4rem, 15vw, 13rem)/.85 var(--font-display);
  letter-spacing: -.055em;
  text-align: center;
  white-space: nowrap;
  color: rgba(91, 61, 245, .09);
  user-select: none;
}

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .65);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }

/* --- Animaciones ------------------------------------------------------------------ */

.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: reveal .8s var(--ease) backwards; }
.services-grid > :nth-child(3n + 2), .bento > :nth-child(3n + 2), .steps > :nth-child(3n + 2) { animation-delay: .08s; }
.services-grid > :nth-child(3n), .bento > :nth-child(3n), .steps > :nth-child(3n) { animation-delay: .16s; }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(18, 165, 148, .06); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 8px)); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive -------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-item.featured { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid, .svc-hero, .svc-body, .faq-layout, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; max-width: 560px; margin-inline: auto; }
  .svc-media { max-width: 560px; aspect-ratio: 16 / 10; }
  .faq-aside, .facts { position: static; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .site-nav { display: none; }
  .js .nav-toggle { display: inline-grid; }
  .js .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 244, 248, .98);
    box-shadow: 0 30px 40px -30px rgba(12, 13, 17, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .js .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .js .site-nav a { padding: 14px 12px; border-radius: 12px; color: var(--ink); font-size: 1.0625rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services-grid, .projects-grid, .bento, .steps, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding-bottom: 28px; }
  .fc-invoice { left: -6px; top: 3%; }
  .fc-chat { right: -6px; max-width: 220px; }
  .fc-chart { display: none; }
  .bento-item, .step { min-height: 0; padding: 22px; }
  .contact-card { border-radius: var(--radius); }
  .faq-item summary { padding: 18px; }
  .faq-answer { padding: 0 18px 18px; }
}

@media (max-width: 380px) {
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =============================================================================
   Portada: hero oscuro con video de fondo
   ========================================================================== */

.hero-dark {
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(64px, 9vw, 120px);
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  background: var(--night);
  color: var(--on-night);
}
.hero-dark::before, .hero-dark::after { display: none; }
.hero-dark .hero-grid { width: min(100% - 2 * var(--gutter), var(--container)); }

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .media-video, .hero-bg .media-img { object-position: 70% 50%; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(90deg, rgba(13, 14, 20, .97) 0%, rgba(13, 14, 20, .93) 40%, rgba(13, 14, 20, .45) 66%, rgba(13, 14, 20, .2) 100%),
    linear-gradient(0deg, rgba(13, 14, 20, .9) 0%, transparent 28%);
}

.hero-dark h1 { color: #fff; }
.hero-dark h1 em { color: #ffb38f; }
.hero-dark .lead { color: #d3d5dd; }
.hero-dark .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--on-night); box-shadow: none; }
.hero-dark .hero-proof { color: #d3d5dd; }
.hero-dark .hero-proof .icon { background: rgba(255, 179, 143, .16); color: #ffb38f; }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.hero-dark .hero-visual { min-height: 460px; }
.hero-dark .fc-invoice { left: 6%; top: 6%; }
.hero-dark .fc-chat { right: auto; left: -6%; top: 44%; }
.hero-dark .fc-chart { left: 26%; bottom: 2%; }

/* Encabezado transparente sobre el hero oscuro */
body.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .brand,
body.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .site-nav a { color: #fff; }
body.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .site-nav a:hover { background: rgba(255, 255, 255, .1); }
body.has-dark-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }

/* Servicios sin tarjeta contenedora: media + texto directo sobre la página */
.svc-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.svc-card:hover { transform: none; box-shadow: none; }
.svc-card-media { border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-card:hover .svc-card-media { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card-body { padding: 22px 4px 0; }
.services-grid { row-gap: 56px; column-gap: 32px; }
.svc-card h3 { transition: color .2s; }
.svc-card:hover h3 { color: var(--accent); }

/* Bordes en color sólido al pasar el cursor */
.bento-item:not(.featured), .step { transition: border-color .3s, transform .3s var(--ease); }
.bento-item:not(.featured):hover, .step:hover { border-color: rgba(91, 61, 245, .45); }

/* Contacto: métodos como filas con divisor, no tarjetas dentro de tarjeta */
.contact-methods { gap: 0; border-top: 1px solid var(--night-line); }
.cm { padding: 16px 4px; border: 0; border-bottom: 1px solid var(--night-line); border-radius: 0; background: none; }
a.cm:hover { background: none; border-color: var(--night-line); }
a.cm:hover strong { color: #ffb38f; }
.contact-card .title em { color: #ffb38f; }

/* Largo de línea cómodo */
.section-head > p:last-child, .lead { max-width: 62ch; }
.section-head.center > p:last-child { margin-inline: auto; }

@media (max-width: 960px) {
  .hero-dark { min-height: 0; }
  /* Celular: franja de video despejada arriba (se ve la persona) y el texto debajo */
  .hero-dark { padding-top: calc(var(--header-h) + 46vw); }
  .hero-bg { bottom: auto; height: calc(var(--header-h) + 46vw + 120px); }
  .hero-bg::after { background: linear-gradient(180deg, rgba(13, 14, 20, .45) 0, rgba(13, 14, 20, .05) calc(var(--header-h) + 8px), rgba(13, 14, 20, .1) 55%, var(--night) 100%); }
  .hero-bg .media-video, .hero-bg .media-img { object-position: 88% 40%; }
  .hero-dark h1, .hero-dark .pill { text-shadow: 0 2px 18px rgba(13, 14, 20, .7); }
  .hero-dark .hero-visual { display: none; }
}

/* =============================================================================
   Sección oscura ("Por qué nosotros"): ritmo claro → oscuro → claro
   ========================================================================== */

.section-dark { background: var(--night); color: var(--on-night); }
.section-dark .title { color: #fff; }
.section-dark .title em { color: var(--hot-soft); }
.section-dark .section-head > p:last-child { color: var(--on-night-2); }

.section-dark .bento-item {
  border-color: var(--night-line);
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}
.section-dark .bento-item h3 { color: #fff; }
.section-dark .bento-item p { color: var(--on-night-2); }
.section-dark .bento-item h3 .icon { color: var(--hot-soft); }
.section-dark .bento-item:not(.featured):hover { border-color: rgba(255, 179, 143, .45); }

/* La tarjeta destacada pasa a violeta sólido: el color de marca, no otro tono de negro */
.section-dark .bento-item.featured { background: var(--accent); border-color: transparent; }
.section-dark .bento-item.featured::before { display: none; }
.section-dark .bento-item.featured::after { color: rgba(255, 255, 255, .12); }
.section-dark .bento-item.featured p { color: rgba(255, 255, 255, .86); }
.section-dark .bento-item.featured h3 .icon { color: #fff; }

/* =============================================================================
   Hero: título palabra por palabra, paralaje y botón magnético
   ========================================================================== */

.words .w { display: inline-block; animation: word-in .9s var(--ease) backwards; }
.words > .w:nth-of-type(1) { animation-delay: .05s; }
.words > .w:nth-of-type(2) { animation-delay: .12s; }
.words > .w:nth-of-type(3) { animation-delay: .19s; }
.words > .w:nth-of-type(4) { animation-delay: .26s; }
.words > .w:nth-of-type(5) { animation-delay: .33s; }
.words em .w:nth-of-type(1) { animation-delay: .45s; }
.words em .w:nth-of-type(2) { animation-delay: .52s; }
.words > .w:nth-of-type(6) { animation-delay: .62s; }
.words > .w:nth-of-type(7) { animation-delay: .69s; }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } }

.hero-dark .lead, .hero-dark .hero-actions, .hero-dark .hero-proof, .hero-dark .pill { animation: fade-up .9s var(--ease) backwards; }
.hero-dark .lead { animation-delay: .75s; }
.hero-dark .hero-actions { animation-delay: .85s; }
.hero-dark .hero-proof { animation-delay: .95s; }
.hero-dark .float-card { animation: fade-up .9s var(--ease) backwards, bob 7s ease-in-out 1s infinite; }
.hero-dark .fc-invoice { animation-delay: 1s, 1s; }
.hero-dark .fc-chat { animation-delay: 1.15s, -1.5s; }
.hero-dark .fc-chart { animation-delay: 1.3s, -3.5s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* Paralaje: el JS mueve --mx/--my (mouse) y --sy (scroll); "translate" se suma a la animación */
[data-parallax] .float-card { transition: translate .5s var(--ease); }
[data-parallax] .fc-invoice { translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -14px); }
[data-parallax] .fc-chat    { translate: calc(var(--mx, 0) * 26px)  calc(var(--my, 0) * 20px); }
[data-parallax] .fc-chart   { translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * 24px); }
.hero-bg .media-video, .hero-bg .media-img { scale: calc(1 + var(--sy, 0) * .06); translate: 0 calc(var(--sy, 0) * 40px); }

.magnetic { translate: var(--bx, 0) var(--by, 0); transition: translate .25s var(--ease), background-color .2s, box-shadow .3s; }

/* =============================================================================
   Servicios en bento: celdas de distinto tamaño, video al pasar el cursor
   ========================================================================== */

.bento-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: 16px;
}
.bento-svc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  background: var(--night);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), translate .4s var(--ease);
}
.bento-svc.is-featured { grid-column: span 2; grid-row: span 2; }
.bento-svc-media { position: absolute; inset: 0; z-index: -2; }
.bento-svc-media .media-video, .bento-svc-media .media-img { transition: transform 1.2s var(--ease), opacity .6s; }
.bento-svc::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 14, 20, .05) 25%, rgba(13, 14, 20, .6) 55%, rgba(13, 14, 20, .95) 100%);
}
.bento-svc-body { width: 100%; padding: 22px 24px; }
.bento-svc h3 { margin-bottom: 6px; color: #fff; font-size: 1.375rem; letter-spacing: -.025em; }
.bento-svc.is-featured h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; }
.bento-svc-body > p { max-width: 52ch; margin: 0; color: #d3d5dd; font-size: .9375rem; }
.bento-svc.is-featured .bento-svc-body > p { font-size: 1.0625rem; }

.bento-svc-list {
  display: grid; gap: 6px;
  max-height: 0;
  margin: 0; padding: 0;
  overflow: hidden;
  opacity: 0;
  list-style: none;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.bento-svc-list li { display: flex; align-items: flex-start; gap: 8px; color: #e6e7ec; font-size: .875rem; }
.bento-svc-list .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--hot-soft); stroke-width: 3; }
.bento-svc-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.bento-svc-link .icon { width: 18px; height: 18px; transition: translate .3s var(--ease); }

.bento-svc:hover, .bento-svc:focus-within { translate: 0 -4px; box-shadow: var(--shadow-lg); }
.bento-svc:hover .bento-svc-list, .bento-svc:focus-within .bento-svc-list, .bento-svc.is-featured .bento-svc-list { max-height: 160px; margin-top: 14px; opacity: 1; }
.bento-svc:hover .media-video, .bento-svc:hover .media-img { transform: scale(1.05); }
.bento-svc:hover .bento-svc-link .icon { translate: 4px 0; }

/* =============================================================================
   Demo del chatbot de WhatsApp
   ========================================================================== */

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.chat-copy .muted { max-width: 54ch; margin-bottom: 24px; }
.chat-copy .checks { margin-bottom: 32px; }

.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  padding: 12px;
  border-radius: 48px;
  background: #15161d;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone-tag {
  position: absolute; top: -14px; right: 28px; z-index: 2;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--hot-deep);
  color: #fff;
  font: 600 .75rem/1 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.phone-screen {
  display: flex; flex-direction: column;
  height: 600px;
  overflow: hidden;
  border-radius: 38px;
  background: #efeae2;
}
.wa-header {
  display: flex; align-items: center; gap: 10px;
  padding: 26px 16px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  color: #111b21;
  font-size: .9375rem;
  line-height: 1.2;
}
.wa-header strong { display: block; font-weight: 600; }
.wa-header small { display: block; color: #667781; font-size: .8125rem; }
.wa-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; }
.wa-avatar .icon { width: 20px; height: 20px; }

.wa-body {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
  margin: 0;
  padding: 16px 12px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: none;
}
.wa-body::-webkit-scrollbar { display: none; }
.wa-msg {
  position: relative;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  color: #111b21;
  font-size: .9375rem;
  line-height: 1.4;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wa-msg.is-client { align-self: flex-start; border-top-left-radius: 4px; background: #fff; }
.wa-msg.is-bot { align-self: flex-end; border-top-right-radius: 4px; background: #d9fdd3; }
.wa-ticks { margin-left: 8px; color: #53bdeb; font-size: .75rem; letter-spacing: -.15em; }
.wa-msg.is-pending { display: none; }
.wa-msg.is-in { animation: msg-in .35s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.wa-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.wa-typing[hidden] { display: none; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: typing 1.2s ease-in-out infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* =============================================================================
   Proceso: columna fija con progreso y pasos que se activan al hacer scroll
   ========================================================================== */

.process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.process-aside { position: sticky; top: calc(var(--header-h) + 48px); }
.process-meter { display: grid; gap: 12px; max-width: 320px; margin-top: 32px; }
.process-count { color: var(--ink-3); font: 500 .9375rem/1 var(--font-mono); }
.process-count b { color: var(--accent); font-family: var(--font-display); font-size: 2.25rem; letter-spacing: -.03em; }
.process-bar { display: block; height: 4px; overflow: hidden; border-radius: 4px; background: var(--line-2); }
.process-bar i { display: block; width: calc(var(--p, 1) / 6 * 100%); height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }

.process-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.process-steps .step { padding: 32px; transition: opacity .5s, border-color .4s, box-shadow .4s, translate .5s var(--ease); }
.js .process-steps .step { opacity: .38; }
.js .process-steps .step.is-active { opacity: 1; translate: 8px 0; border-color: rgba(91, 61, 245, .45); box-shadow: var(--shadow); }
.process-steps .step h3 { font-size: 1.5rem; }

/* --- Responsive y movimiento reducido ------------------------------------------- */

@media (max-width: 960px) {
  .bento-services { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 280px; }
  .bento-svc.is-featured { grid-column: 1 / -1; grid-row: span 1; }
  .chat-layout, .process { grid-template-columns: minmax(0, 1fr); }
  .process-aside { position: static; }
  .process-meter { display: none; }
  .js .process-steps .step { opacity: 1; translate: none; }
}
@media (max-width: 640px) {
  .bento-services { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 260px; }
  .phone-screen { height: 520px; }
}
@media (hover: none), (max-width: 960px) {
  .bento-svc-list { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .words .w, .hero-dark .float-card { animation: none !important; }
  [data-parallax] .float-card, .hero-bg .media-video, .hero-bg .media-img, .magnetic { translate: none !important; scale: none !important; }
}
.marquee-list li:last-child::after { display: none; }
.phone-tag { background: #c23c13; }
.process-count { color: var(--ink-2); }

/* Logo real (ícono de la marca) en lugar de la inicial */
img.brand-mark.is-logo { width: auto; height: 28px; background: none; box-shadow: none; border-radius: 0; }
