:root {
  --bg: #ffffff;
  --ink: #121216;
  --muted: #6a6a76;
  --line: #ececf1;
  --dot: #d6d6df;
  --accent: #ff7a2f;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e8;
  --teal: #2f8fa3;
  --lavender: #9b8fe6;
  --radius: 20px;
  --shadow: 0 18px 50px -24px rgba(18, 18, 22, .25);
  --font-display: "Fredoka", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
p { margin: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav-links { display: none; gap: 28px; font-weight: 500; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #26262e; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f7f7fa; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: #c2561a; font-weight: 600; font-size: 13px; letter-spacing: .01em;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 61px);
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: clamp(40px, 7vh, 96px) 16px 0;
  background-color: var(--bg);
}
.dots-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero::before {
  /* fade the dots toward the edges so the copy stays legible */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(255,255,255,.92), rgba(255,255,255,0) 70%),
    linear-gradient(to bottom, rgba(255,255,255,0) 70%, #fff 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto; text-align: center;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); max-width: 580px; margin: 0 auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Stage where the characters perform */
.stage {
  position: relative; z-index: 1;
  height: clamp(190px, 34vh, 360px);
  margin-top: 24px;
  overflow: visible;
}
.char {
  position: absolute; left: 50%; bottom: 0;
  height: 100%;
  transform: translateX(-50%);
  will-change: transform;
  visibility: hidden;
}
.char.on { visibility: visible; }
.bob { position: relative; height: 100%; }
.char img {
  height: 100%; width: auto; max-width: none;
  user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 12px 10px rgba(18,18,22,.10));
}
.char.flip img { transform: scaleX(-1); }
.shadow {
  position: absolute; left: 50%; bottom: -6px;
  width: 70%; height: 10%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(18,18,22,.18), rgba(18,18,22,0) 70%);
  border-radius: 50%;
}
.char.walking .bob { animation: walkbob .28s ease-in-out infinite; }
.char.idle .bob { animation: breathe 3.2s ease-in-out infinite; }
@keyframes walkbob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-4%) rotate(1.2deg); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-1%) scale(1.01, .99); }
}
.replay {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  font: 600 13px var(--font-body); color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.replay:hover { color: var(--ink); }

/* Sections */
.section { padding: clamp(64px, 10vh, 120px) clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.section-alt { max-width: none; background: #fafafc; }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 22px; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; }

.char-card { text-align: center; padding-top: 16px; }
.char-frame {
  height: 260px; display: grid; place-items: center;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 18px 18px;
  border-radius: 16px; margin-bottom: 8px;
}
.char-frame img { height: 220px; width: auto; transition: transform .25s ease; }
.char-card:hover .char-frame img { transform: translateY(-4px); }
.char-card[data-char="aguila"] .icon { color: var(--teal); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--dot); }
.steps h3 { font-size: 21px; margin: 12px 0 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; }

.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; color: var(--muted); font-size: 15px; display: grid; gap: 10px; flex: 1; }
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.price { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--ink) !important; margin-top: 6px !important; }
.plan-featured { border-color: var(--accent); box-shadow: 0 24px 60px -30px rgba(255,122,47,.45); }
.tag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }

.cta-final { padding-top: 0; }
.cta-box {
  text-align: center; padding: clamp(48px, 8vw, 88px) 24px; border-radius: 28px;
  background: var(--ink); color: #fff;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.3px); background-size: 20px 20px;
}
.cta-box h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,.7); font-size: 17px; }
.cta-box .btn { background: var(--accent); border-color: var(--accent); }
.cta-box .btn:hover { background: #ff8a48; }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.08); }

.footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .char.walking .bob, .char.idle .bob { animation: none !important; }
}

/* Hero en video (hero-video.html) */
.stage-video { height: auto; aspect-ratio: 21 / 9; max-height: 46vh; width: min(100%, 1400px); margin-left: auto; margin-right: auto; }
.stage-video canvas { width: 100%; height: 100%; display: block; object-fit: contain; }

.clip-picker { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.clip-picker button { font: 600 12px var(--font-body); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.clip-picker button.active { background: var(--ink); color: #fff; }
