/* =========================================================
   ULISES DEV — Sistema de diseño
   Negro + Blanco + Rojo (acento)
   ========================================================= */

:root {
  /* Marca */
  --black: #050505;
  --red: #ff1e2d;          /* acento: textos, bordes, brillos */
  --red-ui: #e0101f;       /* fondo de botones (contraste AA con blanco) */
  --red-dark: #7a0710;
  --white: #ffffff;
  --grey: #a1a1a1;
  --grey-dark: #171717;

  /* Derivados */
  --surface: #0c0c0c;
  --surface-2: #111111;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --red-glow: rgba(255, 30, 45, 0.35);
  --red-soft: rgba(255, 30, 45, 0.1);

  /* Tipografía */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala fluida */
  --fs-hero: clamp(2.5rem, 5.2vw, 4.6rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.4rem);
  --fs-h3: clamp(1.2rem, 1.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.2rem);

  /* Espaciado */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 6.5vw, 96px);  /* espacio vertical de cada sección (arriba y abajo) */
  --radius: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
strong { color: var(--white); font-weight: 600; }
::selection { background: var(--red); color: var(--white); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--white); color: var(--black);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.hl { color: var(--red); }

/* ---------- Botones ---------- */
.btn {
  --pad-y: 14px; --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: .9rem; }
.btn--lg { --pad-y: 17px; --pad-x: 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--red-ui);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--red-glow), 0 10px 30px -10px var(--red-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px var(--red-soft), 0 18px 40px -12px rgba(255, 30, 45, .6);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--white);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--red); color: var(--white); background: var(--red-soft); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 12px rgba(255,30,45,.35)); }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
.brand__word span { color: var(--red); margin-left: 4px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
  position: relative; color: var(--grey); font-size: .95rem; font-weight: 500;
  transition: color .25s;
  padding-block: 6px;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--white); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-strong);
  cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(255, 30, 45, 0.20), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(122, 7, 16, 0.35), transparent 70%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__bg::after {
  /* línea de escaneo sutil */
  content: ""; position: absolute; left: 0; right: 0; height: 1px; top: 0;
  background: linear-gradient(90deg, transparent, rgba(255,30,45,.6), transparent);
  animation: scan 7s linear infinite;
  opacity: .5;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(100vh); } }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  font-size: .85rem; color: var(--grey); font-weight: 500;
  margin-bottom: 28px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,30,45,.6); }
  70% { box-shadow: 0 0 0 10px rgba(255,30,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,30,45,0); }
}

.hero__title { font-family: var(--font-display); font-weight: 700; text-wrap: balance; font-size: var(--fs-hero); letter-spacing: -0.035em; line-height: 1.02; }
h1.eyebrow { font-family: var(--font-body); font-weight: 500; letter-spacing: 0; line-height: 1.4; text-wrap: pretty; }
.hero__title .hl { text-shadow: 0 0 40px rgba(255,30,45,.45); }
.hero__lead { margin-top: 28px; max-width: 580px; font-size: var(--fs-lead); color: var(--grey); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 26px; color: var(--grey); font-size: .9rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--red); flex: none; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait {
  position: relative; border-radius: 28px; overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(255, 30, 45, .45), 0 0 0 1px rgba(255,30,45,.12);
}
.portrait::before {
  /* borde con brillo rojo */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,30,45,.9), transparent 35%, transparent 65%, rgba(255,30,45,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.portrait__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,5,5,.75) 100%);
}

.chip {
  position: absolute; z-index: 3;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.8);
  font-size: .85rem;
}
.chip--order {
  top: 9%; left: -14%;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  font-weight: 600;
}
.chip--order small, .channel small { display: block; color: var(--grey); font-weight: 500; font-size: .75rem; }
.chip__icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); border: 1px solid rgba(255,30,45,.3);
}
.chip--chat { bottom: 7%; left: -20%; width: 272px; padding: 14px; }
.chat__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .8rem; margin-bottom: 10px; white-space: nowrap; }
.chat__avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-ui); font-size: .65rem; font-weight: 700;
}
.chat__status { margin-left: auto; color: var(--grey); font-weight: 500; font-size: .7rem; display: inline-flex; align-items: center; gap: 5px; }
.chat__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2bd96b; }
.bubble { padding: 8px 12px; border-radius: 12px; font-size: .8rem; line-height: 1.4; max-width: 90%; margin-top: 6px; }
.bubble--in { background: var(--grey-dark); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble--out { background: rgba(255,30,45,.14); border: 1px solid rgba(255,30,45,.28); margin-left: auto; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; width: fit-content; padding: 10px 12px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--white); opacity: .4; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chip--code { top: 44%; right: -12%; padding: 10px 14px; white-space: nowrap; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .78rem; }
.c-red { color: var(--red); }
.c-grey { color: var(--grey); }

.float { animation: float 6s ease-in-out infinite; }
.float--delay { animation-delay: -2s; }
.float--delay2 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.stack {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: 22px;
  overflow: hidden;
}
.marquee {
  display: flex; width: max-content;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.stack .marquee { width: 100%; }
.marquee__track {
  display: flex; flex: none; align-items: center; gap: clamp(48px, 6vw, 88px); padding-right: clamp(48px, 6vw, 88px);
  animation: marquee 48s linear infinite;
}
/* Logos grises; al pasar el mouse (o tocarlos) toman el color de cada marca */
.tech {
  --brand: var(--white); --glow: rgba(255,255,255,.25);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--grey); white-space: nowrap; cursor: default;
  transition: color .3s ease, transform .3s ease, filter .3s ease;
}
.tech svg { width: 30px; height: 30px; flex: none; }
.tech:hover, .tech.is-on {
  color: var(--brand); transform: translateY(-2px);
  filter: drop-shadow(0 0 14px var(--glow));
}
.tech--shopify { --brand: #95BF47; --glow: rgba(149,191,71,.45); }
.tech--n8n     { --brand: #EA4B71; --glow: rgba(234,75,113,.45); }
.tech--openai  { --brand: #10A37F; --glow: rgba(16,163,127,.45); }
.tech--whatsapp { --brand: #25D366; --glow: rgba(37,211,102,.45); }
.tech--web     { --brand: var(--red); --glow: rgba(255,30,45,.45); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--split {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--red);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--red); }
.section__title { font-size: var(--fs-h2); }
.section__title--sm { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section__lead { margin-top: 20px; color: var(--grey); font-size: var(--fs-lead); max-width: 620px; }
.section__head--split .section__lead { margin-top: 0; }

/* ---------- Problema ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
  padding: 36px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: border-color .4s, transform .4s var(--ease);
}
.pain:hover { border-color: rgba(255,30,45,.35); transform: translateY(-4px); }
.pain__num { font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: .95rem; }
.pain h3 { font-size: var(--fs-h3); margin: 18px 0 12px; }
.pain p { color: var(--grey); }

/* ---------- Identificación ---------- */
.identify { background: linear-gradient(180deg, var(--black), #080808); }
.identify__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.identify__inner .section__head { margin-bottom: 0; }
.identify__box {
  padding: clamp(20px, 3vw, 32px); border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.checks { display: grid; gap: 10px; }
.check {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.02); border: 1px solid var(--line);
  color: var(--grey); font-size: 1rem; line-height: 1.45;
  transition: border-color .25s, background-color .25s, color .25s, transform .25s var(--ease);
}
.check:hover { border-color: var(--line-strong); color: var(--white); }
.check:active { transform: scale(.99); }
.check__box {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid #4a4a4a; display: grid; place-items: center;
  transition: background-color .25s, border-color .25s;
}
.check__box::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease);
}
.check[aria-pressed="true"] { border-color: rgba(255,30,45,.45); background: var(--red-soft); color: var(--white); }
.check[aria-pressed="true"] .check__box { background: var(--red-ui); border-color: var(--red-ui); }
.check[aria-pressed="true"] .check__box::after { transform: rotate(-45deg) scale(1); }

.identify__result {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center;
}
.meter { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--grey-dark); overflow: hidden; }
.meter__fill {
  display: block; height: 100%; width: calc(var(--fill, 0) * 100%);
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  box-shadow: 0 0 12px var(--red-glow);
  transition: width .5s var(--ease);
}
.identify__msg { font-weight: 600; color: var(--grey); }
.identify__result[data-level="2"] .identify__msg,
.identify__result[data-level="3"] .identify__msg { color: var(--white); }
.identify__cta { opacity: .35; pointer-events: none; transition: opacity .4s, transform .3s var(--ease), box-shadow .3s; }
.identify__result:not([data-level="0"]) .identify__cta { opacity: 1; pointer-events: auto; }

/* ---------- Solución ---------- */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.section__head--center .section__lead { margin-inline: auto; }

.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.flow::before {
  /* línea conectora con pulso */
  content: ""; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px;
  background:
    linear-gradient(90deg, transparent, var(--red), transparent) 0 0 / 30% 100% no-repeat,
    var(--line-strong);
  animation: flow-pulse 3.2s linear infinite;
}
@keyframes flow-pulse { from { background-position: -30% 0, 0 0; } to { background-position: 130% 0, 0 0; } }
.flow__node { position: relative; text-align: center; padding: 0 6px; }
.flow__icon {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--white);
  box-shadow: 0 0 0 8px var(--black);
  transition: border-color .4s, color .4s, transform .4s var(--ease);
}
.flow__node:hover .flow__icon { border-color: var(--red); color: var(--red); transform: translateY(-4px); }
.flow__node--end .flow__icon { background: var(--red-ui); border-color: var(--red-ui); box-shadow: 0 0 0 8px var(--black), 0 0 36px var(--red-glow); }
.flow__node--end:hover .flow__icon { color: var(--white); }
.flow__node h3 { font-size: 1.15rem; margin: 20px 0 6px; }
.flow__node p { color: var(--grey); font-size: .92rem; line-height: 1.5; }
.solution__punch {
  margin-top: clamp(36px, 4.5vw, 56px); text-align: center;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500;
  color: var(--grey); letter-spacing: -0.015em;
}
.solution__punch strong { color: var(--white); }

/* ---------- Servicios ---------- */
.services { background: linear-gradient(180deg, var(--black), #080808 50%, var(--black)); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.service {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,30,45,.13), transparent 45%);
  transition: opacity .4s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(255,30,45,.35); }
.service:hover::before { opacity: 1; }
.service--featured {
  background: linear-gradient(180deg, rgba(122,7,16,.28), var(--surface) 55%);
  border-color: rgba(255,30,45,.4);
  box-shadow: 0 30px 80px -40px rgba(255,30,45,.55);
}
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); border: 1px solid rgba(255,30,45,.28);
}
.badge {
  font-size: .75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--white); color: var(--black);
}
.service__num { margin-top: 32px; font-family: var(--font-display); color: var(--grey); font-size: .9rem; font-weight: 600; }
.service__title { font-size: clamp(1.7rem, 2.4vw, 2.1rem); margin-top: 4px; }
.service__claim { margin-top: 12px; color: var(--white); font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.service__list { margin: 26px 0 32px; display: grid; gap: 12px; flex: 1; }
.service__list li { position: relative; padding-left: 28px; color: var(--grey); font-size: .96rem; line-height: 1.5; }
.service__list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23ff1e2d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  border: 1px solid rgba(255,30,45,.35);
}
.service__cta { width: 100%; white-space: normal; text-align: center; }
.service__alt {
  align-self: center; margin-top: 14px; font-size: .88rem; color: var(--grey);
  text-decoration: underline; text-decoration-color: rgba(161,161,161,.4); text-underline-offset: 4px;
  transition: color .25s, text-decoration-color .25s;
}
.service__alt:hover { color: var(--white); text-decoration-color: var(--red); }

/* ---------- Proyectos: pestañas + carrusel ---------- */
.work__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.work__tabs {
  display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.work__tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--grey); white-space: nowrap;
  transition: color .25s, background-color .25s, border-color .25s;
}
.work__tab:hover { color: var(--white); }
.work__tab[aria-selected="true"] { color: var(--white); background: var(--red-soft); border-color: rgba(255,30,45,.5); }
.work__nav { display: flex; gap: 10px; }
.work__arrow {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--white);
  transition: border-color .25s, background-color .25s, opacity .25s;
}
.work__arrow:hover:not(:disabled) { border-color: var(--red); background: var(--red-soft); }
.work__arrow:disabled { opacity: .3; cursor: default; }
.work__nav[hidden], .work__dots[hidden] { display: none; }

.work__carousel { --gap: 24px; --per: 3; }
.work__track {
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 8px 14px; margin-block: -8px -14px; /* espacio para el hover que sube la tarjeta */
}
.work__track::-webkit-scrollbar { display: none; }
.work__track > .project { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }
.work__track > .project[hidden] { display: none; }
.work__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.work__dot {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line-strong); transition: width .35s var(--ease), background-color .25s;
}
.work__dot[aria-current="true"] { width: 26px; background: var(--red); }

/* Tarjetas de proyecto: categoría, titular, cliente, mockup (PC + celular) y enlace */
.project {
  display: flex; flex-direction: column;
  padding: 22px 22px 20px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease);
}
.project:hover { border-color: rgba(255,30,45,.35); transform: translateY(-6px); }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard__cat { color: var(--grey); font-size: .82rem; font-weight: 500; }
.pcard__ic {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--grey); transition: color .3s, border-color .3s;
}
.project:hover .pcard__ic { color: var(--red); border-color: rgba(255,30,45,.5); }
.pcard__title { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; margin: 16px 0 18px; }

.pcard__mock {
  position: relative; margin: auto -6px 0; aspect-ratio: 1 / 0.92; /* margin-top auto: los mockups quedan alineados */
  border-radius: 14px; overflow: hidden;
  background: radial-gradient(90% 70% at 30% 20%, rgba(255,255,255,.06), transparent 70%), #0a0a0a;
  border: 1px solid var(--line);
}
/* Computador */
.mock-pc {
  position: absolute; left: 4%; top: 15%; width: 84%;
  border-radius: 8px; overflow: hidden; background: #111;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.9);
  transition: transform .6s var(--ease);
}
.mock-pc__bar { display: flex; gap: 4px; padding: 6px 8px; background: #1a1a1a; border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-pc__bar i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a3a; }
.mock-pc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* Celular */
.mock-phone {
  position: absolute; right: 4%; bottom: 5%; width: 30%;
  padding: 4px; border-radius: 18px; background: #050505;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: -12px 18px 40px -12px rgba(0,0,0,.95);
  transition: transform .6s var(--ease);
}
.mock-phone img { width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; border-radius: 14px; }
.project:hover .mock-pc { transform: translateY(-4px); }
.project:hover .mock-phone { transform: translateY(-10px); }

/* Chat de WhatsApp (automatizaciones) */
.pcard__mock--chat { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; }
.wa-ic {
  flex: none; align-self: center; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 0 0 6px rgba(37,211,102,.12);
}
.mock-chat { display: grid; gap: 8px; width: min(100%, 250px); }
.mock-chat__msg {
  padding: 10px 12px; border-radius: 14px 14px 14px 4px; font-size: .8rem; line-height: 1.4;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-strong);
}
.mock-chat__btn {
  padding: 8px 12px; border-radius: 999px; text-align: center; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong);
}
/* Foto (proyectos sin capturas) */
.pcard__mock--foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project:hover .pcard__mock--foto img { transform: scale(1.05); }

.pcard__link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 18px;
  color: var(--white); font-weight: 600; font-size: .92rem;
}
.pcard__link svg { color: var(--red); transition: transform .3s var(--ease); }
.pcard__link:hover svg { transform: translateX(4px); }
.pcard__link[href=""] { visibility: hidden; } /* sin URL todavía: oculto, pero conserva su espacio para alinear las tarjetas */

/* Tarjeta final: invitación a agendar */
.pcard--cta { border-style: dashed; border-color: rgba(255,30,45,.35); }
.pcard--cta:hover { transform: none; }
.pcard__mock--cta {
  display: grid; place-items: center; aspect-ratio: auto; flex: 1; min-height: 140px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,30,45,.16), transparent 70%), #0a0a0a;
  border-style: dashed;
}
.pcard__plus {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  color: var(--red); background: var(--red-soft); border: 1px solid rgba(255,30,45,.5);
}
.pcard__btn { margin-top: 18px; align-self: stretch; justify-content: center; }

/* ---------- Proceso ---------- */
.steps {
  --progress: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.steps::before, .steps::after {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px;
}
.steps::before { background: var(--line-strong); }
.steps::after {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  transform-origin: left; transform: scaleX(var(--progress));
  box-shadow: 0 0 12px var(--red-glow);
  transition: transform .2s linear;
}
.step { position: relative; z-index: 1; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  transition: border-color .5s, box-shadow .5s, color .5s;
}
.step.is-visible .step__num { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px var(--black), 0 0 24px var(--red-glow); }
.step h3 { font-size: var(--fs-h3); margin: 26px 0 10px; }
.step p { color: var(--grey); font-size: .96rem; }

/* ---------- Diferenciación ---------- */
.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;
}
.compare__wrap {
  max-width: 1000px; margin-inline: auto;
  border-radius: 24px; border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.compare__table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare__table th, .compare__table td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare__table tbody tr:last-child > * { border-bottom: 0; }
.compare__table thead th {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--grey);
  padding-block: 24px;
}
.compare__table tbody th { text-align: left; font-weight: 500; color: var(--white); font-size: .98rem; width: 38%; }
.compare__table .is-me { background: linear-gradient(180deg, rgba(255,30,45,.12), rgba(255,30,45,.06)); }
.compare__table thead .is-me {
  color: var(--white); font-size: 1.05rem;
  box-shadow: inset 0 3px 0 var(--red);
}
.compare__table thead .is-me img { display: inline-block; vertical-align: -5px; margin-right: 6px; }
.yes, .no, .mid { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; }
.yes { color: var(--white); }
.yes::before, .no::before, .mid::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background-position: center; background-repeat: no-repeat; background-size: 11px;
}
.yes::before {
  background-color: var(--red-ui);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.no { color: #7a7a7a; }
.no::before {
  background-color: var(--grey-dark); border: 1px solid var(--line-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='%237a7a7a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.mid { color: var(--grey); }
.mid::before {
  background-color: var(--grey-dark); border: 1px solid var(--line-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='%23a1a1a1' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Sobre mí ---------- */
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; }
.about__media > img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px;
  border: 1px solid var(--line-strong);
  filter: grayscale(1) contrast(1.12) brightness(.95);
  transition: filter .8s var(--ease);
}
.about__media:hover > img { filter: grayscale(0) contrast(1.05); }
.about__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
  border-radius: 28px; border: 1px solid rgba(255,30,45,.35);
  background: radial-gradient(circle at 80% 90%, rgba(255,30,45,.18), transparent 60%);
}
.about__tag {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: rgba(5,5,5,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); font-weight: 600; font-size: .9rem;
}
.about__copy > p:not(.kicker) { color: var(--grey); font-size: 1.05rem; margin-top: 20px; max-width: 600px; }
.promise__list { display: grid; gap: 12px; margin-top: 36px; }
.promise__list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  color: var(--white); font-weight: 500;
}
.promise__list li span {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-ui); color: var(--white); font-size: .75rem; font-weight: 700; margin-top: 1px;
}

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq__inner .section__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s;
}
.faq__item[open] { border-color: rgba(255,30,45,.4); background: var(--surface-2); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--white), var(--white)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 1.5px 11px no-repeat;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--red-ui); border-color: var(--red-ui); }
.faq__item summary:focus-visible { outline-offset: -2px; border-radius: 16px; }
.faq__answer { padding: 0 24px 24px; color: var(--grey); }

/* ---------- Agenda (CTA + calendario) ---------- */
.agenda { isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); }
.agenda__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 35% at 50% 0%, rgba(255,30,45,.18), transparent 70%),
    radial-gradient(45% 35% at 50% 100%, rgba(122,7,16,.32), transparent 70%);
}
.agenda__head { margin-bottom: clamp(28px, 3.5vw, 40px); }
.agenda__head .section__lead { margin-top: 14px; font-weight: 500; }

.agenda__steps {
  max-width: 1040px; margin: 0 auto clamp(24px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.agenda__steps li {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--grey); font-size: .95rem; line-height: 1.45;
}
.agenda__steps span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--red); color: var(--red); font-family: var(--font-display); font-weight: 700; font-size: .85rem;
}

.agenda__panel { max-width: 1040px; margin-inline: auto; }
.agenda__cal, .agenda__placeholder {
  border-radius: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -40px rgba(255,30,45,.35);
}
.agenda__cal { min-height: 640px; padding: 8px; }
.agenda__cal[hidden], .agenda__placeholder[hidden] { display: none; }

/* Vista previa mientras no hay calendario configurado */
.agenda__placeholder { position: relative; min-height: 440px; display: grid; place-items: center; }
.agenda__skeleton {
  position: absolute; inset: 36px;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 10px;
  opacity: .55;
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 85%);
}
.agenda__skeleton span { border-radius: 10px; background: var(--grey-dark); border: 1px solid var(--line); }
.agenda__skeleton span:nth-child(10) { background: var(--red-soft); border-color: rgba(255,30,45,.45); }
.agenda__placeholder-copy {
  position: relative; margin: 16px; padding: 32px 28px; max-width: 420px; text-align: center;
  border-radius: 20px; border: 1px solid var(--line-strong);
  background: rgba(5,5,5,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.agenda__placeholder-copy h3 { font-size: 1.5rem; }
.agenda__placeholder-copy p { color: var(--grey); margin: 8px 0 22px; }

.agenda__channels {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px;
  color: var(--grey); font-size: .95rem;
}
.agenda__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--white); font-weight: 600; font-size: .9rem;
  transition: border-color .25s, background-color .25s;
}
.agenda__link svg { color: var(--red); }
.agenda__link:hover { border-color: rgba(255,30,45,.5); background: var(--red-soft); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #030303; padding-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--grey); margin-top: 16px; max-width: 320px; font-size: .95rem; }
.footer__cta { margin-top: 22px; }
.footer__col h2 { font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--white); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--grey); font-size: .95rem; transition: color .25s; }
.footer__col a:hover { color: var(--red); }
.footer__bottom {
  margin-top: 64px; padding-block: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #8a8a8a; font-size: .85rem;
}
.to-top:hover { color: var(--white); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { transition: color .25s; }
.footer__legal a:hover { color: var(--white); }

/* ---------- Páginas legales ---------- */
.legal {
  position: relative; isolation: isolate; overflow: clip;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: var(--section);
}
.legal__glow {
  position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,30,45,.16), transparent 70%);
}
.legal__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.legal__date { margin-top: 18px; color: #8a8a8a; font-size: .9rem; }

.legal__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
  padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.legal__toc summary {
  font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--white); cursor: pointer; list-style: none;
}
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc ol { margin-top: 14px; display: grid; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px;
  color: var(--grey); font-size: .88rem; line-height: 1.4; transition: color .2s, background-color .2s;
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--red); font-family: var(--font-display); font-size: .78rem; padding-top: 1px; }
.legal__toc a:hover { color: var(--white); background: rgba(255,255,255,.04); }

.legal__body { max-width: 760px; }
.legal__body section { padding-block: 28px; border-top: 1px solid var(--line); }
.legal__body section:first-child { border-top: 0; padding-top: 0; }
.legal__body h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 14px;
}
.legal__body h2 span { color: var(--red); font-size: .85rem; letter-spacing: .08em; }
.legal__body p, .legal__body li { color: #c4c4c4; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 12px; }
.legal__body ul { display: grid; gap: 10px; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before {
  content: ""; position: absolute; left: 4px; top: .7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.legal__contact { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 14px; }

@media (max-width: 920px) {
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { position: static; max-height: none; }
  .legal__toc summary { display: flex; justify-content: space-between; }
  .legal__toc summary::after { content: "+"; color: var(--red); }
  .legal__toc details[open] summary::after { content: "–"; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red-ui); color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(255,30,45,.7);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), box-shadow .3s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { box-shadow: 0 0 0 8px var(--red-soft), 0 16px 36px -8px rgba(255,30,45,.8); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--red); animation: ring 2.6s infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* El hero anima al cargar (no depende del scroll → mejor LCP) */
.js .hero .reveal {
  opacity: 1; transform: none; transition: none;
  animation: intro 1s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
@keyframes intro { from { opacity: 0; transform: translateY(28px); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .nav__list { gap: 18px; }
  .nav__list a { font-size: .9rem; }
}

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service--featured { grid-column: 1 / -1; }
  .chip--order { left: -6%; }
  .chip--chat { left: -10%; }
  .chip--code { right: -6%; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .compare__table { min-width: 0; } /* tablet: las 4 columnas caben sin desplazamiento */
  .compare__table th, .compare__table td { padding: 14px 10px; }
  :root { --header-h: 68px; }

  .menu-toggle { display: block; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  /* backdrop-filter crearía un bloque contenedor para el menú fijo */
  .header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 40px;
    background: rgba(5,5,5,.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 22px; }
  .nav__list a { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); }
  .nav__cta { --pad-y: 16px; --pad-x: 30px; font-size: 1rem; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: left; }
  .hero__visual { width: min(100%, 380px); margin-top: 16px; }
  .chip--order { left: -4%; }
  .chip--chat { left: auto; right: -4%; bottom: -6%; }
  .chip--code { top: 40%; left: -4%; right: auto; }

  .pains { grid-template-columns: 1fr; }
  .section__head--split { grid-template-columns: 1fr; }
  .work__carousel { --per: 2; --gap: 18px; }

  .steps { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--progress)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; }
  .step__num { grid-row: span 2; }
  .step h3 { margin: 12px 0 8px; }

  .about__inner, .faq__inner, .identify__inner { grid-template-columns: 1fr; }
  .agenda__steps { grid-template-columns: 1fr; max-width: 520px; gap: 10px; }
  .about__media { max-width: 460px; }
  .faq__inner .section__head { position: static; }

  /* Flujo de la solución en vertical */
  .flow { grid-template-columns: 1fr; gap: 28px; max-width: 460px; margin-inline: auto; }
  .flow::before {
    top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto;
    background:
      linear-gradient(180deg, transparent, var(--red), transparent) 0 0 / 100% 30% no-repeat,
      var(--line-strong);
    animation-name: flow-pulse-v;
  }
  @keyframes flow-pulse-v { from { background-position: 0 -30%, 0 0; } to { background-position: 0 130%, 0 0; } }
  .flow__node { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: left; padding: 0; align-items: center; }
  .flow__icon { grid-row: span 2; margin: 0; }
  .flow__node h3 { margin: 0 0 4px; align-self: end; }
  .flow__node p { align-self: start; }
}

@media (max-width: 640px) {
  /* Proyectos: pestañas a lo ancho, una tarjeta asomando la siguiente, sin flechas (se desliza con el dedo) */
  .work__bar { margin-bottom: 20px; }
  .work__tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 18px; }
  .work__tab { padding: 10px 6px; font-size: .82rem; white-space: normal; line-height: 1.2; border-radius: 13px; }
  .work__nav { display: none; }
  .work__carousel { --per: 1.12; --gap: 14px; }
  .project { padding: 18px 18px 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .service { padding: 30px 24px; }
  .identify__result { grid-template-columns: 1fr; }
  .identify__cta { width: 100%; }
  .check { padding: 14px; font-size: .95rem; }

  /* Tabla comparativa completa sin desplazamiento: cada fila = característica arriba + 3 respuestas debajo */
  .compare__wrap { overflow: hidden; border-radius: 20px; }
  .compare__table, .compare__table thead, .compare__table tbody { display: block; min-width: 0; }
  .compare__table tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .compare__table thead th:first-child { display: none; }
  .compare__table thead th { padding: 16px 6px; font-size: .8rem; line-height: 1.25; border-bottom: 1px solid var(--line-strong); }
  .compare__table thead .is-me { font-size: .85rem; }
  .compare__table thead .is-me img { display: block; margin: 0 auto 6px; }
  .compare__table tbody th { grid-column: 1 / -1; width: auto; padding: 16px 16px 4px; border-bottom: 0; font-size: .92rem; }
  .compare__table td { padding: 8px 6px 16px; }
  .compare__table tbody tr:last-child > td { border-bottom: 0; }
  .yes, .no, .mid { flex-direction: column; gap: 5px; font-size: .78rem; line-height: 1.25; text-align: center; }

  .agenda__cal { min-height: 560px; padding: 0; }
  .agenda__placeholder { min-height: 400px; }
  .agenda__skeleton { inset: 16px; gap: 6px; }
  .agenda__placeholder-copy .btn { width: 100%; white-space: normal; }
  .hero__actions .btn { width: 100%; white-space: normal; }
  .hero__trust { flex-direction: column; gap: 10px; }
  .chip--order { top: 4%; left: -2%; font-size: .8rem; }
  .chip--chat { width: 230px; right: -2%; }
  .chip--code { left: -2%; padding: 8px 12px; font-size: .72rem; }
  .chat__status { display: none; }
  .about__media::before { inset: 16px -10px -16px 16px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
  .faq__item summary { padding: 18px 18px; font-size: 1rem; }
  .faq__answer { padding: 0 18px 20px; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .work__track { scroll-behavior: auto; }
  .stack .marquee { overflow-x: auto; }
}
