/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand palette — Pitahaya */
  --accent:     #EC0D73;
  --accent-2:   #C6E027;
  --accent-3:   #FCEB43;
  --pink-mid:   #FF2E88;
  --pink-soft:  #FF6FAF;

  /* Dark base */
  --bg:         #0D0D0F;
  --bg-2:       #13111A;
  --bg-card:    #18161F;
  --ink:        #FFFFFF;
  --ink-soft:   rgba(255,255,255,0.72);
  --ink-mute:   rgba(255,255,255,0.42);
  --line:       rgba(255,255,255,0.1);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #EC0D73 0%, #FF2E88 50%, #C6E027 100%);

  /* Type */
  --display:    'Plus Jakarta Sans', sans-serif;
  --sans:       'Inter', sans-serif;

  /* Layout */
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --max-w:      1200px;
  --nav-h:      72px;
  --radius:     16px;
  --radius-lg:  24px;

  /* Easings */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-family: var(--display);
  font-weight: 800;
}
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

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

.br-desktop { display: none; }
@media (min-width: 720px) { .br-desktop { display: block; } }

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: transparent;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-kicker {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
}

/* =============================================================
   5. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: rgba(255,255,255,0.06); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--grad-brand);
  transform-origin: 0 0; transform: scaleX(0);
  transition: transform .08s linear;
}

/* =============================================================
   6. Custom cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px; margin: -2.5px;
  background: var(--accent); border-radius: 50%;
}
.cursor-ring {
  width: 30px; height: 30px; margin: -15px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              margin .35s var(--ease-out), border-color .35s;
}
.cursor.is-interactive .cursor-ring {
  width: 46px; height: 46px; margin: -23px;
  border-color: var(--accent-2);
}
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   7. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft),
              background .3s, color .3s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn:hover  { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(236,13,115,.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(236,13,115,.5);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(236,13,115,.08);
  box-shadow: 0 0 20px rgba(236,13,115,.15);
}

/* Magnetic inner wrapper */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   8. Reveal on scroll
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }

/* Split text parent must be visible (avoid invisible children) */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* Split words / chars */
.split-word { display: inline-block; }
.split-char { display: inline-block; }

/* =============================================================
   9. NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .4s var(--ease-out), backdrop-filter .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(13,13,15,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  flex-shrink: 0;
}
.logo-mark {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-word { font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.logo-hay { color: var(--ink); }
.logo-up {
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.nav-links {
  display: none;
  align-items: center; gap: 2rem;
  margin-inline-start: auto;
}
@media (min-width: 720px) { .nav-links { display: flex; } }

.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: .25rem 0;
  transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Nav CTA */
.nav-cta {
  display: none;
  padding: .6rem 1.3rem;
  font-size: .875rem;
}
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

/* Hamburger */
.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  padding: .5rem; margin-inline-start: auto;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease-soft), opacity .3s, width .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
@media (min-width: 720px) { .nav-burger { display: none; } }

/* Mobile nav overlay */
.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.nav-mobile-link {
  font-family: var(--display); font-size: 2rem; font-weight: 700;
  color: var(--ink-soft); transition: color .3s;
}
.nav-mobile-link:hover { color: var(--ink); }
.nav-mobile-cta { margin-top: 1rem; }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem; color: var(--ink-soft);
  transition: color .3s, transform .3s;
}
.nav-mobile-close:hover { color: var(--ink); transform: rotate(90deg); }

/* =============================================================
   10. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Mouse-reactive gradient mesh */
.hero-gradient {
  position: absolute; inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle 700px at var(--mx, 35%) var(--my, 45%),
      rgba(236,13,115,.55) 0%, transparent 55%),
    radial-gradient(circle 600px at calc(var(--mx, 35%) + 25%) calc(var(--my, 45%) - 15%),
      rgba(198,224,39,.3) 0%, transparent 55%),
    radial-gradient(circle 500px at calc(var(--mx, 35%) - 10%) calc(var(--my, 45%) + 20%),
      rgba(252,235,67,.2) 0%, transparent 50%),
    radial-gradient(circle 900px at 80% 20%, rgba(255,46,136,.25) 0%, transparent 60%),
    var(--bg);
  filter: blur(60px) saturate(140%);
  animation: gradientDrift 18s ease-in-out infinite;
}
@keyframes gradientDrift {
  0%,100% { transform: scale(1) translate(0,0); }
  33%      { transform: scale(1.04) translate(1%, -1%); }
  66%      { transform: scale(0.98) translate(-1%, 1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { animation: none; }
}

.hero-noise {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

.hero-inner {
  position: relative; z-index: 2;
  padding-block: 6rem 5rem;
}

.hero-kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: .97;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  max-width: 15ch;
}

/* La segunda línea usa color sólido — evita bug de Chrome con background-clip:text al seleccionar */
.hero-title em {
  background: none;
  -webkit-text-fill-color: #FCEB43;
  color: #FCEB43;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
}

/* CTA principal hero — ligeramente más grande */
.btn-primary--hero {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  box-shadow: 0 6px 30px rgba(236,13,115,.45);
}
.btn-primary--hero:hover {
  box-shadow: 0 14px 48px rgba(236,13,115,.6);
}

/* Trust badges bajo los botones */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.25rem;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.025em;
}

.hero-trust-check {
  color: var(--accent-2, #C6E027);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block; width: 1.5px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .8; transform: scaleY(1); transform-origin: top; }
  50%      { opacity: .3; transform: scaleY(.5); transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll-hint { display: none; } }

/* =============================================================
   11. Marquee strip (static, centered)
   ============================================================= */
.marquee-section {
  border-block: 1px solid var(--line);
  padding-block: .9rem;
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--display);
  font-size: clamp(.75rem, 1.2vw, .9rem);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.marquee-dot {
  color: var(--accent);
  font-size: .5rem;
}

/* =============================================================
   12. Plans / Pricing
   ============================================================= */
.plans {
  padding-block: clamp(5rem, 10vw, 9rem);
  position: relative;
}

.plans::before {
  content: "";
  position: absolute;
  width: 800px; height: 600px;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(236,13,115,.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.plans .container { position: relative; z-index: 1; }

.plans-subtitle {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--ink-soft);
  margin-top: -.75rem;
  margin-bottom: 3.5rem;
  max-width: 50ch;
}

/* Grid */
.plans-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 860px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .plan-card--featured {
    transform: translateY(-18px) scale(1.018);
  }
  .plan-card--featured:hover {
    transform: translateY(-26px) scale(1.024) !important;
  }
}

/* Base card */
.plan-card {
  position: relative;
  background: rgba(20, 17, 28, 0.72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 2rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color .4s, box-shadow .45s, transform .5s var(--ease-soft);
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: 0; border-radius: 22px;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(236,13,115,.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.plan-card:hover {
  border-color: rgba(236,13,115,.28);
  box-shadow: 0 24px 70px rgba(236,13,115,.16);
  transform: translateY(-8px);
}
.plan-card:hover::after { opacity: 1; }

/* Featured card */
.plan-card--featured {
  background: linear-gradient(rgba(24, 15, 35, 0.93), rgba(20, 12, 30, 0.93)) padding-box,
              var(--grad-brand) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 0 0 1px rgba(236,13,115,.20),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 40px rgba(236,13,115,.10),
    0 8px 40px rgba(236,13,115,.28),
    0 32px 80px rgba(236,13,115,.16);
}

.plan-card--featured::after {
  background:
    radial-gradient(ellipse 60% 25% at 50% 0%, rgba(255,255,255,.04) 0%, transparent 70%),
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(236,13,115,.15) 0%, transparent 65%);
  opacity: 1;
}

.plan-card--featured:hover {
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(236,13,115,.30),
    inset 0 1px 0 rgba(255,255,255,.09),
    0 0 50px rgba(236,13,115,.18),
    0 16px 60px rgba(236,13,115,.35),
    0 40px 100px rgba(236,13,115,.18);
}

/* Badge */
.plan-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: .28rem .85rem;
}

.plan-badge--featured {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
}

/* Card top */
.plan-card-top {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.plan-name {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.plan-card--featured .plan-name {
  color: transparent;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Price */
.plan-price {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  line-height: 1;
}

.plan-amount {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
}

.plan-card--featured .plan-amount {
  background: linear-gradient(135deg, #fff 40%, #FCEB43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-price-meta {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding-top: .55rem;
}

.plan-tax {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan-period {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

.plan-desc {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  padding-bottom: .2rem;
}

/* Features list */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.plan-card--featured .plan-features {
  border-top-color: rgba(236,13,115,.2);
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .855rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

.plan-features li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: .05rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%23EC0D73' stroke-width='1.5' stroke-opacity='.6'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%23EC0D73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.plan-feature--highlight {
  color: #FCEB43 !important;
  font-weight: 600;
}
.plan-feature--highlight::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23FCEB43' fill-opacity='.15' stroke='%23FCEB43' stroke-width='1.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%23FCEB43' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.plan-card--featured .plan-features li { color: rgba(255,255,255,.80); }

.plan-card--featured .plan-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23EC0D73' fill-opacity='.18' stroke='%23EC0D73' stroke-width='1.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%23EC0D73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Maintenance note */
.plan-note {
  font-size: .77rem;
  color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .7rem 1rem;
  line-height: 1.6;
}
.plan-note strong {
  color: rgba(255,255,255,.75);
  font-weight: 700;
}

/* CTA buttons */
.plan-btn {
  width: 100%;
  justify-content: center;
  padding-block: .85rem;
  font-size: .92rem;
  font-weight: 700;
  margin-top: auto;
}

.plan-btn--outline {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: rgba(255,255,255,.04);
  transition: border-color .3s, background .3s, color .3s, transform .3s var(--ease-bounce);
}

.plan-btn--outline:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(236,13,115,.08);
  transform: translateY(-1px);
}

/* =============================================================
   13. Process
   ============================================================= */
.process {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg-2);
  border-radius: 32px;
  margin-inline: var(--gutter);
}

.process-steps {
  display: flex; flex-direction: column; gap: 0;
}

.process-step {
  display: flex; align-items: flex-start; gap: 2rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: transparent;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
  min-width: 3ch;
}

.step-body { padding-top: .3rem; }

.step-title {
  font-size: 1.35rem; font-weight: 700; margin-bottom: .6rem;
}
.step-desc {
  font-size: .95rem; color: var(--ink-soft); max-width: 52ch; line-height: 1.7;
}

@media (min-width: 720px) {
  .process-steps { flex-direction: row; gap: 2rem; }
  .process-step {
    flex-direction: column; gap: 1rem;
    border-bottom: none;
    border-right: 1px solid var(--line);
    flex: 1;
    padding-inline: 2rem;
    padding-block: 1rem;
  }
  .process-step:last-child { border-right: none; }
  .process-step:first-child { padding-inline-start: 0; }
}

/* =============================================================
   14. Stats
   ============================================================= */
.stats {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: .4rem; }

.stat-value {
  display: flex; align-items: baseline; gap: .1rem;
  line-height: 1;
}

.stat-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-prefix {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .85rem; color: var(--ink-mute);
  letter-spacing: .06em; font-weight: 500;
  text-align: center;
}

/* =============================================================
   15. Contact
   ============================================================= */
.contact {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.contact-grid {
  display: grid; gap: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 6rem;
  }
}

.contact-sub {
  font-size: 1rem; color: var(--ink-soft); line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-tagline {
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
}
.contact-tagline .dot-sep { color: var(--accent); }

/* Form */
.contact-form-wrap { position: relative; }

.contact-form {
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft);
}
.contact-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* Fields */
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.4rem 1.1rem .6rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--sans); font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
  resize: none;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236,13,115,.12);
}
.field label {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-mute); font-size: .95rem;
  transition: all .25s var(--ease-out);
}
.field-textarea label { top: 1.4rem; transform: none; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: .45rem; transform: none;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.field-textarea input:focus + label,
.field-textarea textarea:focus + label,
.field-textarea textarea:not(:placeholder-shown) + label {
  top: .4rem;
}

.btn-submit {
  width: 100%; justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  position: relative;
}
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cta-form-label { transition: opacity .3s; }
.contact-form.is-sending .cta-form-label { opacity: 0; }
.contact-form.is-sending .cta-form-spinner { opacity: 1; }
.contact-form.is-sent .cta-form-label { opacity: 0; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check { width: 24px; height: 24px; margin: auto; }
.cta-form-check path {
  stroke: #fff; stroke-width: 2; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .6s var(--ease-out);
}
.contact-form.is-sent .cta-form-check { opacity: 1; }
.contact-form.is-sent .cta-form-check path { stroke-dashoffset: 0; }

/* Success */
.contact-success {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease-out) .3s;
}
.contact-success.is-visible { opacity: 1; pointer-events: auto; }
.success-icon {
  font-size: 2.5rem;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: successPop .6s var(--ease-bounce) .3s both;
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.contact-success h3 {
  font-size: 1.75rem;
}
.contact-success p { color: var(--ink-soft); }

.form-error-msg {
  font-size: 0.82rem;
  color: #FF6FAF;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    text-align: left;
    align-items: center;
  }
}

.footer-logo {
  font-family: var(--display); font-size: 1.3rem; font-weight: 800;
}

.footer-tagline {
  font-size: .65rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
  text-align: center;
}

.footer-nav {
  display: flex; gap: 1.5rem; justify-content: center;
}
@media (min-width: 720px) { .footer-nav { justify-content: flex-end; } }
.footer-nav a {
  font-size: .85rem; color: var(--ink-mute);
  transition: color .3s;
}
.footer-nav a:hover { color: var(--ink); }

.footer-copy {
  font-size: .8rem; color: var(--ink-mute);
  grid-column: 1 / -1; text-align: center;
}

/* =============================================================
   17. Card tilt effect
   ============================================================= */
.card {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft);
}
.card:hover { transition-duration: .15s; }

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-title { font-size: clamp(3.5rem, 9vw, 7.5rem); }
}

@media (min-width: 960px) {
  .process { margin-inline: calc(var(--gutter) * 1.5); }
}

@media (min-width: 1280px) {
  .hero-inner { padding-block: 8rem 6rem; }
}

/* =============================================================
   19. Carousel
   ============================================================= */
.showcase-carousel { overflow: hidden; }

.carousel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.carousel-track {
  display: flex;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  height: clamp(300px, 52vh, 580px);
  overflow: hidden;
  background: var(--bg-2);
}

.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.carousel-slide-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(13,13,15,.45) 0%,
      transparent 25%,
      transparent 60%,
      rgba(13,13,15,.7) 100%);
}

/* Progress bar */
.carousel-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.1); z-index: 10;
}
.carousel-progress-bar {
  display: block; height: 100%;
  background: var(--grad-brand);
  transform-origin: left; transform: scaleX(0);
}

/* Arrow buttons */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(13,13,15,.55);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .3s, background .3s, transform .35s var(--ease-bounce);
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.12);
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-prev { left: 1.25rem; }
.carousel-next { right: 1.25rem; }

/* Dots */
.carousel-dots {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: .45rem; align-items: center;
}
.carousel-dot {
  height: 8px; width: 8px; border-radius: 4px;
  background: rgba(255,255,255,.3);
  transition: width .4s var(--ease-out), background .3s;
  flex-shrink: 0;
}
.carousel-dot.is-active {
  width: 28px;
  background: var(--accent);
}

/* Counter */
.carousel-counter {
  position: absolute; bottom: 1.25rem; right: 1.5rem;
  z-index: 10;
  font-family: var(--display); font-size: .75rem; font-weight: 700;
  color: rgba(255,255,255,.5); letter-spacing: .12em;
}

/* =============================================================
   20. WhatsApp widget
   ============================================================= */
.wa-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}

@keyframes waPulse {
  0%, 60%, 100% {
    box-shadow: 0 6px 28px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.25);
  }
  70% {
    box-shadow: 0 6px 28px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.25),
                0 0 0 9px rgba(37,211,102,.12);
  }
  85% {
    box-shadow: 0 6px 28px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.25),
                0 0 0 18px rgba(37,211,102,.03);
  }
}

/* Trigger button */
.wa-trigger {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.25);
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease-out);
  flex-shrink: 0;
  animation: waPulse 4s ease-in-out 4s infinite;
}
.wa-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.3);
  animation: none;
}
.wa-trigger[aria-expanded="true"] {
  transform: rotate(90deg) scale(1.05);
  animation: none;
}
.wa-icon { width: 30px; height: 30px; }

/* Popup card */
.wa-popup {
  background: #1A1A24;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  width: 280px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);

  /* Hidden state */
  opacity: 0;
  transform: translateY(12px) scale(.96);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.wa-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.wa-popup-title {
  font-size: .8rem; font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.wa-popup-close {
  font-size: 1rem; color: var(--ink-mute);
  transition: color .2s, transform .2s;
  line-height: 1;
}
.wa-popup-close:hover { color: var(--ink); transform: rotate(90deg); }

.wa-popup-body {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .5rem;
}

/* Individual contact row */
.wa-contact {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem .85rem;
  border-radius: 10px;
  transition: background .2s;
}
.wa-contact:hover { background: rgba(37,211,102,.08); }

.wa-contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.wa-contact-icon svg { width: 22px; height: 22px; }

.wa-contact-info {
  display: flex; flex-direction: column; gap: .15rem;
}
.wa-contact-name {
  font-size: .8rem; font-weight: 600; color: var(--ink);
}
.wa-contact-num {
  font-size: .85rem; color: #25D366; font-weight: 500;
  letter-spacing: .03em;
}

/* =============================================================
   20. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { filter: blur(60px) saturate(140%); }
  .hero-scroll-hint { display: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   21. HERO — Mejoras (pitahayas, CTAs, métricas, entrada)
   ============================================================= */

/* Luces difusas ambientales — JS anima transform + opacity vía setTimeout */
.hero-ambient-light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 3s ease-in-out, opacity 2s ease-in-out;
}

/* ─── SPLASH SECTION ─────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #050816;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: opacity, transform;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.splash.is-exiting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  text-align: center;
}

@keyframes splashLogoIn {
  from { opacity: 0; transform: scale(0.72) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@keyframes splashWordIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Oculta WA widget durante el splash */
html.splash-active .wa-widget {
  opacity: 0;
  pointer-events: none;
}

.splash-logo-mark {
  width: clamp(160px, 22vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 48px rgba(236, 13, 115, 0.75))
          drop-shadow(0 0 20px rgba(252, 235, 67, 0.50));
  animation: splashLogoIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}

.splash-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #F5F8FF;
}

.splash-hay {
  display: inline-block;
  color: #F5F8FF;
  animation: splashWordIn 0.40s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}
.splash-up  {
  display: inline-block;
  color: var(--accent, #EC0D73);
  animation: splashWordIn 0.40s cubic-bezier(0.16, 1, 0.3, 1) 0.76s both;
}

/* Scroll-down line indicator */
.splash-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(236, 13, 115, 0.6), transparent);
  animation: splashLineAnim 2.2s ease-in-out infinite;
}

@keyframes splashLineAnim {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleY(0.5); transform-origin: top; }
  50%       { opacity: 0.9; transform: translateX(-50%) scaleY(1);   transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo-mark,
  .splash-hay,
  .splash-up { animation: none; opacity: 1; transform: none; }
  .splash-scroll-hint { animation: none; }
}

/* WebGL hero canvas */
#hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}
#hero-webgl.is-ready {
  opacity: 1;
}

/* Canvas pitahayas wireframe */
.hero-pitahayas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* Arrow icon dentro de botones */
.btn-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.38s var(--ease-bounce);
}
.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Shimmer/glint en btn-primary */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 28%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 72%
  );
  mix-blend-mode: overlay;
  transform: translateX(-130%);
  pointer-events: none;
  border-radius: inherit;
  transition: transform 0s;
}
.btn-primary:hover::after {
  transform: translateX(130%);
  transition: transform 0.62s var(--ease-soft);
}

/* =============================================================
   22. HERO METRICS — Strip entre hero y marquee
   ============================================================= */
.hero-metrics {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.hero-metrics-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem clamp(1.5rem, 4vw, 3rem);
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.hero-metric-val {
  display: flex;
  align-items: baseline;
  gap: 0.05rem;
  line-height: 1;
}

.hero-metric-count {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-metric-prefix,
.hero-metric-suffix {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-metric-label {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
}

.hero-metric-sep {
  width: 1px;
  height: 44px;
  background: var(--line);
  flex-shrink: 0;
}

@media (max-width: 539px) {
  .hero-metric-sep { display: none; }
  .hero-metric {
    width: 100%;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .hero-metric:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ambient-light { display: none; }
  .hero-pitahayas { display: none; }
  .btn-primary::after { display: none; }
}
