/* ============================================================
   CanchasPro — tokens de movimiento (ajústalos aquí)
   En móvil se suavizan solos. Respeta prefers-reduced-motion.
   html[data-motion="reduced"] apaga animaciones pesadas.
   ============================================================ */
:root {
  --bg: #070b10;
  --bg-2: #0f1419;
  --bg-card: rgba(26, 35, 50, 0.72);
  --bg-elevated: #243044;
  --accent: #22c55e;
  --accent-2: #4ade80;
  --accent-dim: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --danger: #ef4444;
  --warning: #f59e0b;
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Outfit", system-ui, sans-serif;
  --container: 1120px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --d-fast: 0.28s;
  --d-med: 0.7s;
  --d-slow: 1.15s;
  --d-hero: 22s;
  --reveal-y: 40px;
  --hero-zoom: 1.14;
  --float-y: 10px;
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
    --d-hero: 28s;
    --hero-zoom: 1.06;
    --reveal-y: 22px;
    --float-y: 6px;
    --d-slow: 0.8s;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-fast: 0.01s;
    --d-med: 0.01s;
    --d-slow: 0.01s;
    --d-hero: 0.01s;
    --hero-zoom: 1;
    --reveal-y: 0px;
    --float-y: 0px;
  }
}

html[data-motion="reduced"] {
  --d-fast: 0.01s;
  --d-med: 0.01s;
  --d-slow: 0.01s;
  --d-hero: 0.01s;
  --hero-zoom: 1;
  --reveal-y: 0px;
  --float-y: 0px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #052e16;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: #052e16;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.35), transparent 40%);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-fast), background var(--d-fast), border-color var(--d-fast);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dim));
  color: #052e16;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--accent-glow);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.45);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--whatsapp);
  color: #052e16;
}

.btn-wa:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background var(--d-med) var(--ease-out), border-color var(--d-med), backdrop-filter var(--d-med);
}

.header.is-scrolled {
  background: rgba(7, 11, 16, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.logo img,
.logo svg {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--d-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--d-med) var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  position: relative;
  transition: transform var(--d-fast), opacity var(--d-fast);
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

body.nav-open .menu-btn span { background: transparent; }
body.nav-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--hero-zoom));
  animation: kenburns var(--d-hero) var(--ease-out) alternate infinite;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.28) 0%, rgba(7, 11, 16, 0.55) 42%, rgba(7, 11, 16, 0.94) 100%),
    radial-gradient(1200px 500px at 80% 10%, rgba(34, 197, 94, 0.18), transparent 60%);
}

.pitch-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
}

.pitch-lines svg {
  width: 100%;
  height: 100%;
}

.pitch-lines path,
.pitch-lines rect,
.pitch-lines circle,
.pitch-lines line {
  stroke-dasharray: 8 12;
  animation: dash 18s linear infinite;
}

.hero-content {
  padding: 4.5rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 12ch;
  margin: 0.2rem 0 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero .lead {
  font-size: 1.12rem;
  margin-bottom: 1.6rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 1rem;
}

.hero-stats div {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent-2);
}

.hero-stats span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.scroll-hint {
  position: absolute;
  right: max(1rem, calc((100vw - var(--container)) / 2));
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-hint i {
  width: 18px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 99px;
  position: relative;
}

.scroll-hint i::after {
  content: "";
  width: 3px;
  height: 7px;
  background: var(--accent);
  border-radius: 99px;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s var(--ease-out) infinite;
}

.band {
  border-block: 1px solid var(--border);
  background: #0b1118;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 2.4rem;
  padding: 0.95rem 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
}

.marquee b {
  color: var(--accent-2);
}

.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.audience-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 320px;
  isolation: isolate;
  border: 1px solid var(--border);
  transform: translateY(0);
  transition: transform var(--d-med) var(--ease-out), border-color var(--d-med);
}

.audience-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform var(--d-slow) var(--ease-out);
  z-index: -2;
}

.audience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.1) 20%, rgba(7, 11, 16, 0.92) 100%);
}

.audience-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.45);
}

.audience-card:hover img {
  transform: scale(1.14);
}

.audience-card .body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.3rem;
}

.audience-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.audience-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #052e16;
  background: var(--accent);
  border-radius: 99px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 1.7rem;
  font-weight: 750;
  color: var(--accent);
  margin-bottom: 0.7rem;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.step .icon {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-2);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.7), rgba(15, 20, 25, 0.5));
  transition: transform var(--d-med) var(--ease-out), border-color var(--d-med);
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.4);
}

.feature svg {
  width: 28px;
  height: 28px;
  color: var(--accent-2);
  margin-bottom: 0.85rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .copy {
  order: 2;
}

.split-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
  animation: floatY 6.5s var(--ease-out) infinite alternate;
}

.split-media .float-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(7, 11, 16, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  max-width: 230px;
  animation: floatY 4.8s 0.4s var(--ease-out) infinite alternate;
}

.split ul {
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.split li {
  display: flex;
  gap: 0.7rem;
  color: var(--text-muted);
}

.split li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 650;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform var(--d-fast);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--text-muted);
  padding-top: 0.7rem;
  max-width: 62ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  backdrop-filter: blur(16px);
}

.wa-panel {
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(37, 211, 102, 0.16), transparent 60%),
    var(--bg-card);
}

.wa-panel h3 {
  margin: 0.4rem 0 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1419;
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.7rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 5.5rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer p { margin-top: 0.45rem; }
.footer a:hover { color: var(--accent-2); }

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #052e16;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  animation: pulseWa 2.4s var(--ease-out) infinite;
}

.wa-float svg { width: 28px; height: 28px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(120%);
  background: #12301f;
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  z-index: 80;
  transition: transform var(--d-med) var(--ease-out);
}

.toast.is-on {
  transform: translateX(-50%) translateY(0);
}

html.no-js .reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

body.nav-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  animation: reveal var(--d-slow) var(--ease-out) forwards;
  animation-play-state: paused;
}

.reveal.is-in {
  animation-play-state: running;
}

.stagger > .reveal:nth-child(1) { animation-delay: 0.05s; }
.stagger > .reveal:nth-child(2) { animation-delay: 0.15s; }
.stagger > .reveal:nth-child(3) { animation-delay: 0.25s; }
.stagger > .reveal:nth-child(4) { animation-delay: 0.35s; }
.stagger > .reveal:nth-child(5) { animation-delay: 0.45s; }
.stagger > .reveal:nth-child(6) { animation-delay: 0.55s; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(7, 11, 16, 0.96);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-med), transform var(--d-med) var(--ease-out);
}

body.nav-open .mobile-nav {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 1.35rem;
  font-weight: 650;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(var(--hero-zoom)); }
}

@keyframes dash {
  to { stroke-dashoffset: -320; }
}

@keyframes scrollDot {
  0% { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 14px; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes floatY {
  from { transform: translateY(0); }
  to { transform: translateY(calc(var(--float-y) * -1)); }
}

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav { display: flex; }
  .audiences,
  .steps,
  .features,
  .split,
  .split.reverse,
  .faq-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .copy { order: 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-actions .btn-primary {
    padding: 0.62rem 0.85rem;
    font-size: 0.8rem;
  }
  .section { padding: 3.6rem 0; }
  .hero-content { padding-top: 2.4rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:last-child { grid-column: 1 / -1; }
  .scroll-hint { display: none; }
  .hero-cta .btn,
  .split .btn,
  .contact-grid .btn,
  form .btn {
    width: 100%;
  }
  .hero-cta .btn { width: auto; flex: 1; }
  .audience-card { min-height: 260px; }
  .split-media,
  .split-media img { min-height: 260px; }
}

html[data-motion="reduced"] .hero-media img,
html[data-motion="reduced"] .pitch-lines path,
html[data-motion="reduced"] .marquee,
html[data-motion="reduced"] .split-media img,
html[data-motion="reduced"] .float-card,
html[data-motion="reduced"] .wa-float {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img,
  .pitch-lines path,
  .marquee,
  .split-media img,
  .float-card,
  .wa-float,
  .scroll-hint i::after {
    animation: none;
  }
}
