/* ============================================================
   Miplataforma.mx — Landing page
   Identidad "Concept 02": rojo #E8323E / blanco / carbón
   Estilo: dark UI, tarjetas glass, glows, micro-animaciones
   ============================================================ */

:root {
  --accent: #e8323e;
  --accent-bright: #ff5560;
  --accent-soft: #ff8a74;
  --accent-deep: #9e1620;

  --bg: #0a0c10;
  --bg-panel: #0e1117;
  --bg-raise: #12161e;
  --glass: rgba(255, 255, 255, 0.032);
  --glass-hover: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f2f4f7;
  --muted: #9ba3ae;
  --faint: rgba(255, 255, 255, 0.42);
  --wa: #25d366;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-brand: "Saira Condensed", "Sora", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 32px rgba(232, 50, 62, 0.35);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.18rem; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}
.container--narrow { width: min(860px, 100% - 3rem); }

.grad {
  background: linear-gradient(100deg, var(--accent-bright) 5%, var(--accent) 55%, var(--accent-soft) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* micro: barrido de brillo al pasar el cursor */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.05s;
}
.btn--primary:hover::after { transform: translateX(130%); transition: transform 0.65s ease; }

.btn--primary {
  background: linear-gradient(130deg, var(--accent-bright) -20%, var(--accent) 55%, var(--accent-deep) 140%);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(232, 50, 62, 0.5); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); transform: translateY(-2px); }
.btn--ghost:hover svg { transform: translateY(2px); }
.btn--ghost svg { transition: transform 0.25s ease; }

.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35); }
.btn--whatsapp:hover { transform: translateY(-2px); }
.btn--whatsapp svg { width: 20px; height: 20px; }

.btn--sm { padding: 0.55rem 1.25rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.1rem;
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 50, 62, 0.18);
  animation: eyebrow-pulse 2.6s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232, 50, 62, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(232, 50, 62, 0.08); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled {
  padding: 0.55rem 0;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__brand { display: inline-flex; align-items: center; gap: 0.65rem; color: #fff; }
.nav__mark { width: 38px; height: 38px; color: #fff; transition: transform 0.3s ease; }
.nav__brand:hover .nav__mark { transform: rotate(-6deg) scale(1.06); }
.nav__word {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.22rem;
  letter-spacing: 0.16em;
  color: #fff;
  transform: translateY(1px);
}

.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a:not(.btn) {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}
/* micro: subrayado que crece */
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(110% 90% at 88% -15%, rgba(232, 50, 62, 0.16) 0%, transparent 55%),
    radial-gradient(70% 60% at -10% 110%, rgba(232, 50, 62, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #0d1016 0%, var(--bg) 100%);
  color: var(--text);
  padding: clamp(7.5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 760px; height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 50, 62, 0.18) 0%, transparent 62%);
  top: -260px; right: -180px;
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.12); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 50% 20%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 20%, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
/* micro: H1 rotativo — las frases se apilan en la misma celda */
.hero__title { display: grid; align-items: center; }
.hero__phrase--long { font-size: 0.82em; line-height: 1.2; }
.hero__phrase {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.hero__phrase.is-active { opacity: 1; transform: none; pointer-events: auto; }

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  margin-top: 1.4rem;
  max-width: 34rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  margin-top: 2.4rem;
}
.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.hero__points svg {
  flex: none;
  width: 19px; height: 19px;
  padding: 3.5px;
  border-radius: 50%;
  background: rgba(232, 50, 62, 0.16);
  color: var(--accent-bright);
}

/* ---------- Mockup ---------- */
.hero__visual { position: relative; perspective: 1400px; }
.mockup {
  position: relative;
  background: linear-gradient(160deg, #141821, #0a0c10);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.mockup__url {
  margin-left: 0.7rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
}
.mockup__body { padding: 1.1rem 1.2rem 1.4rem; }
.mockup__nav { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1rem; }
.mockup__logo { width: 26px; height: 26px; color: #fff; }
.mockup__pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.mockup__pill--on { background: rgba(232, 50, 62, 0.2); color: var(--accent-bright); }

.mockup__feature {
  position: relative;
  height: 150px;
  border-radius: 14px;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(232, 50, 62, 0.3) 0%, transparent 55%),
    linear-gradient(120deg, #1a1f2a 0%, #0d1016 80%);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  overflow: hidden;
}
.mockup__feature-info { display: grid; gap: 0.5rem; }
.mockup__tag {
  font-family: var(--font-brand);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.mockup__title-line { width: 170px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.28); }
.mockup__title-line--short { width: 110px; background: rgba(255, 255, 255, 0.14); }
.mockup__play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  width: max-content;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a0c10;
  background: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  animation: play-glow 3s ease-in-out infinite;
}
.mockup__play svg { width: 12px; height: 12px; }
@keyframes play-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 22px 2px rgba(255, 255, 255, 0.35); }
}

.mockup__row-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.6rem;
}
.mockup__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.poster:hover { transform: translateY(-4px) scale(1.04); border-color: var(--line-strong); }
.poster i {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  background: var(--accent-bright);
}
.p1 { background: linear-gradient(160deg, #7a2d33, #180d0f); }
.p2 { background: linear-gradient(160deg, #3a4150, #12141c); }
.p3 { background: linear-gradient(160deg, #7a5e3b, #241a10); }
.p4 { background: linear-gradient(160deg, #6e2f4c, #1c0d16); }
.p5 { background: linear-gradient(160deg, #e8323e, #3a0e13); }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(16, 19, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  animation: float 5.5s ease-in-out infinite;
}
.chip svg { width: 15px; height: 15px; color: var(--accent-bright); }
.chip--a { top: -18px; right: 8px; animation-delay: 0s; }
.chip--b { bottom: 26%; left: -26px; animation-delay: 1.6s; }
.chip--c { bottom: -16px; right: 14%; animation-delay: 3.1s; }
.chip__live {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(255, 85, 96, 0.55);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 85, 96, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 85, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 85, 96, 0); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--bg-panel);
  border-block: 1px solid var(--line);
  padding: 0.95rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}
.marquee__group span {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__group i { font-style: normal; color: var(--accent); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sec--base { background: var(--bg); }
.sec--panel {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(232, 50, 62, 0.05) 0%, transparent 70%),
    var(--bg-panel);
  border-block: 1px solid var(--line);
}
.sec--dark {
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(232, 50, 62, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0d1016 0%, var(--bg) 100%);
}

.sec__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.sec__lead { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); }

.sec__closing {
  margin-top: 2.4rem;
  font-size: 1.12rem;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  color: var(--muted);
}
.sec__closing strong { color: var(--accent-bright); }

.sec__cta { margin-top: 2.6rem; text-align: center; }

.prose p + p { margin-top: 1.1rem; }
.prose { color: var(--muted); font-size: 1.06rem; }

/* ---------- AEO card ---------- */
.aeo {
  display: flex;
  gap: 1.3rem;
  margin-top: 2.4rem;
  padding: 1.7rem 1.9rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(232, 50, 62, 0.1), rgba(232, 50, 62, 0.03));
  border: 1.5px solid rgba(232, 50, 62, 0.35);
}
.aeo__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.aeo__icon svg { width: 24px; height: 24px; }
.aeo h3 { margin-bottom: 0.5rem; color: #fff; }
.aeo p { color: var(--muted); }

/* ---------- Grids y cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--cases { grid-template-columns: repeat(3, 1fr); }
.grid--features { grid-template-columns: repeat(4, 1fr); }

.card, .feature, .step {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
/* micro: reflector que sigue al cursor */
.card::before, .feature::before, .step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 50, 62, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover::before, .feature:hover::before, .step:hover::before { opacity: 1; }

.card { padding: 1.9rem 1.7rem; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 50, 62, 0.45);
  background: var(--glass-hover);
}
.card h3 { margin-bottom: 0.65rem; color: #fff; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  background: rgba(232, 50, 62, 0.13);
  color: var(--accent-bright);
  transition: transform 0.3s ease, background 0.3s ease;
}
.card:hover .card__icon { transform: scale(1.1) rotate(-5deg); }
.card__icon svg { width: 23px; height: 23px; }
.card__icon--warn { background: rgba(255, 138, 80, 0.12); color: #ff8a50; }

.card__badge {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(232, 50, 62, 0.12);
  border: 1px solid rgba(232, 50, 62, 0.3);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.card--dark { background: var(--glass); }

.card--case-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.4rem;
  background: linear-gradient(140deg, rgba(232, 50, 62, 0.16), rgba(232, 50, 62, 0.04));
  border-color: rgba(232, 50, 62, 0.35);
}
.card--case-cta p { margin-bottom: 0.9rem; }

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.step { padding: 2rem 1.6rem 1.8rem; }
.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 50, 62, 0.45);
  background: var(--glass-hover);
}
.step__num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(150deg, var(--accent-bright) 20%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.step h3 { margin-bottom: 0.6rem; font-size: 1.08rem; color: #fff; }
.step h3 small { font-weight: 500; color: var(--accent-bright); font-size: 0.85em; }
.step p { color: var(--muted); font-size: 0.94rem; }

.note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 52rem;
  margin: 2.4rem auto 0;
  padding: 1.3rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(232, 50, 62, 0.07);
  border: 1px dashed rgba(232, 50, 62, 0.45);
}
.note svg { flex: none; width: 22px; height: 22px; color: var(--accent-bright); margin-top: 0.2rem; }
.note p { color: var(--muted); }
.note strong { color: var(--text); }

/* ---------- Features ---------- */
.feature { padding: 1.6rem 1.4rem; }
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 50, 62, 0.45);
  background: var(--glass-hover);
}
.feature h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #fff; }
.feature p { font-size: 0.88rem; color: var(--muted); }
.feature__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(232, 50, 62, 0.13);
  color: var(--accent-bright);
  transition: transform 0.3s ease;
}
.feature:hover .feature__icon { transform: scale(1.12) rotate(-5deg); }
.feature__icon svg { width: 20px; height: 20px; }
.feature--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(140deg, rgba(232, 50, 62, 0.2), rgba(232, 50, 62, 0.05));
  border-color: rgba(232, 50, 62, 0.4);
}
.feature--cta h3 { font-size: 1.15rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq__item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.faq__item:hover { background: var(--glass-hover); }
.faq__item[open] { border-color: rgba(232, 50, 62, 0.5); box-shadow: var(--shadow); background: var(--glass-hover); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  padding: 1.15rem 1.4rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(232, 50, 62, 0.14);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq__chev::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: translateY(-2px) rotate(45deg);
}
.faq__item[open] .faq__chev { transform: rotate(180deg); background: var(--accent); }
.faq__item[open] .faq__chev::before { border-color: #fff; }
.faq__item p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Formulario ---------- */
.sec--form { overflow: hidden; }
.sec--form::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 50, 62, 0.12) 0%, transparent 65%);
  top: -180px; left: -180px;
  pointer-events: none;
}
.form-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.form-intro { position: sticky; top: 110px; }
.form-intro p { color: var(--muted); font-size: 1.06rem; margin-top: 0.4rem; }
.form-intro strong { color: var(--text); }
.form-bullets { margin-top: 1.8rem; display: grid; gap: 0.85rem; }
.form-bullets li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  font-size: 0.98rem;
}
.form-bullets svg {
  flex: none;
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
}

.form {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.15rem;
}
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form__field { display: grid; gap: 0.45rem; }
.form__field label {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--accent-bright); }
.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ba3ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.form__field select option { background: var(--bg-raise); color: var(--text); }
.form__field textarea { resize: vertical; min-height: 110px; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(232, 50, 62, 0.18);
}
.form__field input.is-invalid,
.form__field select.is-invalid {
  border-color: #ff5560;
  box-shadow: 0 0 0 4px rgba(255, 85, 96, 0.14);
}
.form__legal { font-size: 0.8rem; color: var(--faint); text-align: center; }
.form__legal a { color: var(--accent-bright); font-weight: 600; text-decoration: underline; }

.form-success {
  grid-column: 2;
  background: var(--bg-raise);
  border: 1.5px solid rgba(232, 50, 62, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(2.2rem, 4vw, 3.2rem);
  text-align: center;
}
.form-success__icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.form-success__icon svg { width: 34px; height: 34px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.7rem; color: #fff; }
.form-success p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.6rem; }

/* ---------- Footer ---------- */
.footer {
  background: #07090c;
  color: var(--text);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}
.footer__tagline { margin-top: 1rem; font-weight: 500; }
.footer__by { margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.footer__by a { color: var(--accent-bright); font-weight: 600; }
.footer__col { display: grid; gap: 0.6rem; align-content: start; }
.footer__col h4 {
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.4rem;
}
.footer__col a, .footer__col span { font-size: 0.94rem; color: var(--muted); width: max-content; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--accent-bright); }
.footer__bottom { padding-top: 1.8rem; text-align: center; }
.footer__bottom p { font-size: 0.82rem; color: var(--faint); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 42px rgba(37, 211, 102, 0.5); }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--rd, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .chip__live, .hero__glow, .mockup__play, .eyebrow__dot { animation: none; }
  .marquee__track { animation: none; }
  .mockup { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .grid--features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .mockup { transform: none; }
  .grid--3, .grid--cases { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .form-success { grid-column: 1; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2.5rem 2.2rem;
    background: rgba(7, 9, 12, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a:not(.btn) { font-size: 1.15rem; }
  .nav__toggle { position: relative; z-index: 100; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .grid--3, .grid--2, .grid--cases, .grid--features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col a, .footer__col span { width: auto; }
  .hero__ctas .btn { width: 100%; }

  /* CTAs largos: permitir salto de línea y ancho completo para no desbordar */
  .btn { white-space: normal; }
  .grid > *, .steps > * { min-width: 0; }
  .sec__cta .btn,
  .card--case-cta .btn,
  .feature--cta .btn { width: 100%; }

  .eyebrow { align-items: flex-start; }
  .eyebrow__dot { flex: none; margin-top: 5px; }

  .chip--b { left: 10px; }
  .wa-float {
    left: 2.5%;
    right: 2.5%;
    bottom: 0.85rem;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34);
  }
  .wa-float:hover { transform: translateY(-2px); }
  .wa-float svg { width: 20px; height: 20px; }
  .aeo { flex-direction: column; }
}

@media (max-width: 420px) {
  .nav__inner { gap: 0.65rem; }
  .nav__brand { gap: 0.45rem; }
  .nav__mark { width: 32px; height: 32px; }
  .nav__word { font-size: 0.95rem; letter-spacing: 0.08em; }
}
