/* =========================================================
   OPPUBLIK · Landing
   Estrategia política para la era digital.
   ========================================================= */

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Microgramma";
  src: url("assets/fonts/Microgramma-Bold-Extended.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo2";
  src: url("assets/fonts/Exo2-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo2";
  src: url("assets/fonts/Exo2-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMMono";
  src: url("assets/fonts/DMMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --bg: #2A2A2A;
  --bg-alt: #3D3D3D;
  --bg-deep: #1F1F1F;
  --accent: #E2E417;
  --accent-glow: rgba(226, 228, 23, 0.5);
  --violet: #7B2FFF;
  --indigo: #3D52D5;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --text: #E8E8E4;
  --text-dim: #A8A8A2;
  --line: rgba(232, 232, 228, 0.12);
  --line-strong: rgba(232, 232, 228, 0.28);

  --display: "Microgramma", "Bebas Neue", "Impact", sans-serif;
  --body: "Exo2", "Inter", system-ui, sans-serif;
  --mono: "DMMono", "JetBrains Mono", monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: clamp(15px, 1vw + 0.2rem, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }

/* a11y skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 800;
}
.skip-link:focus { left: 12px; top: 12px; }

/* focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Utilities */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono { font-family: var(--mono); letter-spacing: 0.02em; font-size: 0.82em; }
.accent { color: var(--accent); }
.strike {
  position: relative;
  display: inline-block;
  color: var(--text-dim);
}
.strike::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  top: 55%;
  height: 8px;
  background: var(--accent);
  transform: rotate(-2deg) scaleX(0);
  transform-origin: left;
  z-index: -1;
  transition: transform 0.8s var(--ease) 0.2s;
}
.reveal.is-visible .strike::after,
.is-visible .strike::after { transform: rotate(-2deg) scaleX(1); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(0.7rem, 0.9vw, 0.78rem);
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.eyebrow .mono { color: var(--accent); font-size: inherit; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
  background: rgba(42, 42, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: background 0.35s var(--ease),
              border-color 0.35s var(--ease),
              transform 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(31, 31, 31, 0.92);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease);
}
.nav__logo:hover { transform: scale(1.05); }
.nav__logo img { height: 26px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}
.nav__links > a {
  font-size: 0.92rem;
  color: var(--text);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}
.nav__links > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links > a:not(.nav__cta):hover {
  color: var(--accent);
}
.nav__links > a:not(.nav__cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--body);
  font-size: 0.88rem;
  transition: transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              background 0.25s var(--ease);
}
.nav__cta:hover {
  transform: translateY(-2px);
  background: #8f4fff;
  box-shadow: 0 10px 28px rgba(123, 47, 255, 0.45);
}
.nav__cta:hover .btn__arrow { transform: translateX(3px); }
.nav__cta .btn__arrow { transition: transform 0.3s var(--ease); }
.nav__cta:active { transform: translateY(0); }
.nav__links > a.nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  position: relative;
  z-index: 51;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease),
              background 0.25s var(--ease),
              color 0.25s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.25s var(--ease);
  will-change: transform;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 0.08s;
}

/* shine effect on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(123, 47, 255, 0.55);
}
.btn--whatsapp:hover {
  background: #8f4fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(123, 47, 255, 0.75);
}
.btn--whatsapp .btn__arrow { color: #fff; }

.btn--block { width: 100%; }

/* click ripple (set via JS) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
  animation: ripple 0.6s linear;
  transform: scale(0);
}
@keyframes ripple {
  to { transform: scale(3); opacity: 0; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) var(--pad) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 80%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 80px 80px; }
}

.hero__glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: clamp(400px, 50vw, 800px);
  height: clamp(400px, 50vw, 800px);
  background: radial-gradient(circle, rgba(226, 228, 23, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  animation: pulse 8s ease-in-out infinite;
}
.hero__glow--violet {
  top: auto;
  bottom: -200px;
  right: auto;
  left: -200px;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.18) 0%, transparent 60%);
  animation-delay: -4s;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 1; }
}

.hero__content { max-width: min(1040px, 92%); width: 100%; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease) both;
}
.dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 10px rgba(226, 228, 23, 0); }
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(36px, 7.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 32px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line > * {
  display: inline-block;
}
.hero__title .line {
  opacity: 0;
  transform: translateY(110%);
  animation: lineUp 0.9s var(--ease) forwards;
}
.hero__title .line:nth-child(1) { animation-delay: 0.1s; }
.hero__title .line:nth-child(2) { animation-delay: 0.25s; }
.hero__title .line:nth-child(3) { animation-delay: 0.4s; }
@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.5;
  animation: fadeUp 0.8s var(--ease) 0.6s both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 0.8s var(--ease) 0.75s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head { max-width: min(960px, 92%); margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center {
  margin-inline: auto;
  text-align: center;
  max-width: min(1040px, 92%);
}
.section-head--center .eyebrow { justify-content: center; }
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.section-lead {
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 60ch;
}
.section-head--center .section-lead { margin-inline: auto; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  padding: clamp(70px, 12vw, 160px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-alt);
}
.stat {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease);
}
.stat:last-child { border-right: 0; }
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(226,228,23,0.05));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.stat:hover::after { opacity: 1; }
.stat--accent .stat__value { color: var(--accent); }
.stat__value {
  font-family: var(--mono);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.stat__sep {
  color: var(--text-dim);
  margin: 0 4px;
  font-weight: 400;
}
.stat__label {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-dim);
  line-height: 1.4;
}
.stats__foot {
  margin-top: clamp(40px, 6vw, 56px);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 38px);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* =========================================================
   MANIFIESTO
   ========================================================= */
.manifesto { padding: clamp(70px, 12vw, 160px) 0; }
.manifesto__split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.pillars {
  display: grid;
  gap: 20px;
}
.pillar {
  padding: 28px 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-alt);
  position: relative;
  transition: transform 0.4s var(--ease),
              border-color 0.4s var(--ease),
              background 0.4s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  transform: translateY(-50%);
  transition: height 0.4s var(--ease);
}
.pillar:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  background: #444;
}
.pillar:hover::before { height: 70%; }
.pillar__num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}
.pillar h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  margin-bottom: 8px;
}
.pillar p {
  color: var(--text-dim);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services {
  padding: clamp(70px, 12vw, 160px) 0;
  background: var(--bg-deep);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.service {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease),
              border-color 0.4s var(--ease),
              background 0.4s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(226,228,23,0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: #444;
}
.service:hover::before { transform: scaleX(1); }
.service:hover::after { opacity: 1; }
.service--violet::before { background: var(--violet); }
.service--indigo::before { background: var(--indigo); }

.service__num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95rem;
}
.service--violet .service__num { color: var(--violet); }
.service--indigo .service__num { color: var(--indigo); }
.service h3 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.service p {
  color: var(--text-dim);
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.55;
}

/* =========================================================
   METODOLOGÍA
   ========================================================= */
.method { padding: clamp(70px, 12vw, 160px) 0; }
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--indigo));
  opacity: 0.4;
  z-index: 0;
}
.flow__step {
  padding: 20px 12px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}
.flow__step:hover { transform: translateY(-6px); }
.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 0.95rem;
  transition: transform 0.4s var(--ease-bounce),
              box-shadow 0.4s var(--ease);
}
.flow__step:hover .flow__num {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 0 6px rgba(226, 228, 23, 0.1);
}
.flow__step h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.flow__step p {
  color: var(--text-dim);
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  line-height: 1.45;
}

/* =========================================================
   POR QUÉ
   ========================================================= */
.why {
  padding: clamp(70px, 12vw, 160px) 0;
  background: var(--bg-deep);
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.compare__col {
  padding: clamp(32px, 4vw, 40px) clamp(24px, 3vw, 32px);
  border-radius: 24px;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}
.compare__col:hover { transform: translateY(-4px); }
.compare__col--old {
  background: var(--bg-alt);
  color: var(--text-dim);
}
.compare__col--old ul li {
  text-decoration: line-through;
  text-decoration-color: rgba(232, 232, 228, 0.3);
}
.compare__col--new {
  background: linear-gradient(135deg, rgba(226, 228, 23, 0.08), rgba(123, 47, 255, 0.06));
  border-color: var(--accent);
  box-shadow: 0 30px 80px -30px var(--accent-glow);
}
.compare__tag {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 0.85rem;
}
.compare__col--new .compare__tag { color: var(--accent); }
.compare__col ul {
  display: grid;
  gap: 14px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta { padding: clamp(70px, 12vw, 160px) 0; }
.cta__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  text-align: center;
}
.cta__head .eyebrow { justify-content: center; }
.cta__head .section-lead { margin-inline: auto; }

.cta__box {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(226, 228, 23, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta__box::after {
  content: "";
  position: absolute;
  bottom: -150px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.cta__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cta__form-full { grid-column: 1 / -1; }
.cta__form span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cta__form input,
.cta__form textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 12px;
  font-family: var(--body);
  font-size: 0.98rem;
  width: 100%;
  transition: border-color 0.25s var(--ease),
              background 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  resize: vertical;
}
.cta__form input::placeholder,
.cta__form textarea::placeholder { color: rgba(168, 168, 162, 0.5); }
.cta__form input:focus,
.cta__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-deep);
  box-shadow: 0 0 0 4px rgba(226, 228, 23, 0.08);
}
.cta__form button { grid-column: 1 / -1; margin-top: 8px; }

.cta__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.cta__legal {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: center;
  margin: 0;
}

.cta__alt {
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.cta__divider {
  text-align: center;
  position: relative;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.cta__divider::before,
.cta__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--line);
}
.cta__divider::before { left: 0; }
.cta__divider::after  { right: 0; }
.cta__divider span {
  background: var(--bg-alt);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.cta__alt-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 12px;
  font-family: var(--mono);
}

/* Estado enviado */
.cta__form.is-sent > label,
.cta__form.is-sent > button,
.cta__form.is-sent > .cta__legal { opacity: 0.35; pointer-events: none; }
.cta__success {
  display: none;
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: rgba(226, 228, 23, 0.08);
  color: var(--accent);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeUp 0.5s var(--ease);
}
.cta__form.is-sent .cta__success { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand img { height: 28px; margin-bottom: 20px; }
.footer__brand p {
  color: var(--text-dim);
  max-width: 280px;
  line-height: 1.5;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__title {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.78rem;
}
.footer__col a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  display: inline-block;
  width: fit-content;
}
.footer__col a:hover {
  color: var(--text);
  transform: translateX(3px);
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 20px var(--pad);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.float-wa {
  position: fixed;
  bottom: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  width: 60px; height: 60px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px var(--accent-glow);
  z-index: 40;
  transition: transform 0.3s var(--ease-bounce),
              box-shadow 0.3s var(--ease);
  opacity: 0;
  transform: scale(0) translateY(20px);
}
.float-wa.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 18px 40px var(--accent-glow);
}
.float-wa:active { transform: scale(0.95); }
.float-wa__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  z-index: -1;
  animation: floatPulse 2.5s ease-out infinite;
}
@keyframes floatPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================================
   ANIMACIONES SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .flow::before { display: none; }
  .manifesto__split { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta__form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }

  .nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--pad);
    background: rgba(31, 31, 31, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    gap: 28px;
    z-index: 49;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links > a { font-size: 1.4rem; }
  .nav__links > a.nav__cta { font-size: 1rem; padding: 14px 24px; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.no-scroll { overflow: hidden; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid .stat:nth-child(2) { border-right: 0; }
  .stats__grid .stat:nth-child(1),
  .stats__grid .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stats__grid .stat:nth-child(3) { border-right: 1px solid var(--line); }

  .services__grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }

  .cta__form { grid-template-columns: 1fr; }
  .cta__box { padding: 24px; }

  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__grid .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats__grid .stat:last-child { border-bottom: 0; }
  .float-wa { width: 54px; height: 54px; }
  .float-wa svg { width: 24px; height: 24px; }
}
