/* ============================================================
   ORIGEN FITNESS — VSL Funnel
   Paleta: amanecer sobre el mar (sol / playa / bioenergética)
   Editá los valores de :root para cambiar toda la estética.
   ============================================================ */

:root {
  --bg:        #0A0806;
  --page:      #0C0A09;
  --page-2:    #110E0B;
  --card:      #16120E;
  --line:      rgba(245, 184, 65, .14);
  --line-soft: rgba(255, 255, 255, .07);

  --text:      #F7F1E8;
  --muted:     #A2968A;
  --muted-2:   #7C7168;

  --gold:      #F5B841;
  --gold-2:    #FFD98A;
  --gold-3:    #E08A2B;
  --glow:      rgba(245, 184, 65, .34);
  --glow-hi:   rgba(245, 184, 65, .62);

  --radius:    26px;
  --radius-sm: 16px;
  --maxw:      1000px;

  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-h: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-b: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* ============================================================
   ANIMACIONES BASE
   ============================================================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 26px var(--glow),    0 12px 34px rgba(0,0,0,.45); }
  50%      { box-shadow: 0 0 60px var(--glow-hi), 0 12px 34px rgba(0,0,0,.45); }
}

@keyframes sweep {
  0%       { transform: translateX(-130%) skewX(-18deg); }
  58%, 100%{ transform: translateX(130%)  skewX(-18deg); }
}

@keyframes ring {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: .5; }
  100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}

@keyframes sunDrift {
  0%, 100% { transform: translate(0, 0) scale(1);          opacity: .92; }
  50%      { transform: translate(1.5%, 2%) scale(1.07);   opacity: 1; }
}

@keyframes waveDrift {
  from { background-position: 0 bottom; }
  to   { background-position: 1200px bottom; }
}

@keyframes shimmer {
  to { background-position: 220% 0; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Entrada escalonada del hero */
.anim { opacity: 0; animation: rise .85s var(--ease) forwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .17s }
.d3 { animation-delay: .29s } .d4 { animation-delay: .41s }
.d5 { animation-delay: .55s } .d6 { animation-delay: .70s }
.d7 { animation-delay: .85s }

/* Aparición al scrollear */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.s1 { transition-delay: .08s } .reveal.s2 { transition-delay: .16s }
.reveal.s3 { transition-delay: .24s } .reveal.s4 { transition-delay: .32s }

/* ============================================================
   MARCO CON GLOW
   ============================================================ */

.frame {
  position: relative;
  min-height: 100vh;
  padding: 26px;
  background: var(--bg);
}

/* Sol que respira */
.frame::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1300px 820px at 50% 4%,
      rgba(247, 185, 74, .55) 0%,
      rgba(201, 122, 33, .30) 26%,
      rgba(58, 32, 12, .78) 56%,
      rgba(12, 9, 6, 0) 80%),
    radial-gradient(900px 620px at 92% 72%, rgba(255, 217, 138, .10), transparent 62%);
  animation: sunDrift 14s ease-in-out infinite;
}

/* Olas que se desplazan */
.frame::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='300'><g fill='none' stroke='%23FFD98A' stroke-width='1'><path d='M0 200 C 200 150, 400 250, 600 200 S 1000 150, 1200 200'/><path d='M0 240 C 200 190, 400 290, 600 240 S 1000 190, 1200 240'/><path d='M0 280 C 200 230, 400 330, 600 280 S 1000 230, 1200 280'/></g></svg>");
  background-repeat: repeat-x;
  background-position: 0 bottom;
  animation: waveDrift 26s linear infinite;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--page) 0%, var(--page-2) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}

/* ---------- Barra superior ---------- */

.topbar {
  color: #241704;
  text-align: center;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 9px 16px;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 22%, var(--gold) 44%, var(--gold-3) 70%, var(--gold) 100%);
  background-size: 220% 100%;
  animation: shimmer 6s linear infinite;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  text-align: center;
  padding: 42px 34px 56px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--text);
}

.logo svg { flex: none; animation: floaty 5s ease-in-out infinite; }

h1 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(29px, 4.6vw, 48px);
  line-height: 1.14;
  letter-spacing: -.018em;
  margin: 0;
}

.uline { position: relative; white-space: nowrap; }

.uline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 3px;
  border-radius: 3px;
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 0 18px var(--glow-hi);
  animation: draw 1s .5s var(--ease) backwards;
}

.sub {
  font-family: var(--font-h);
  font-weight: 400;
  font-size: clamp(17px, 2.3vw, 25px);
  line-height: 1.38;
  color: #E6DCCE;
  margin: 22px 0 0;
}

/* ---------- Video VSL ---------- */

.vsl {
  --poster: linear-gradient(145deg, #1B1611 0%, #241A11 45%, #120E0A 100%);
  position: relative;
  margin: 36px auto 0;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #12100C;
  background-image: var(--poster);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 26px 70px rgba(0,0,0,.6);
}

.vsl:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 34px 84px rgba(0,0,0,.66), 0 0 60px rgba(245,184,65,.16); }

.vsl::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,8,6,.18) 0%, rgba(10,8,6,.05) 45%, rgba(10,8,6,.55) 100%);
}

.vsl.playing { cursor: default; transform: none; }
.vsl.playing::after, .vsl.playing .vsl-play, .vsl.playing .vsl-label { display: none; }

.vsl iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 3;
}

.vsl-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px; height: 57px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .95);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}

/* Anillo pulsante alrededor del play */
.vsl-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 57px;
  border-radius: 13px;
  border: 2px solid rgba(255,255,255,.7);
  animation: ring 2.4s ease-out infinite;
  pointer-events: none;
}

.vsl:hover .vsl-play { transform: translate(-50%, -50%) scale(1.09); background: #fff; }

.vsl-play::before {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 18px solid #16120E;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.vsl-label {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  z-index: 2;
  text-align: center;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247, 241, 232, .62);
}

/* ---------- Checkmarks ---------- */

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  margin: 28px auto 0;
  max-width: 760px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 15px;
}

.check svg { flex: none; }

/* ---------- Botón ---------- */

.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 20px 48px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 20px);
  color: #231604;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 52%, var(--gold-3) 100%);
  animation: breathe 3s ease-in-out infinite;
  transition: transform .18s var(--ease);
}

/* Brillo que barre el botón */
.cta::after {
  content: "";
  position: absolute;
  top: -50%; bottom: -50%; left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

.cta:hover  { transform: translateY(-3px) scale(1.02); }
.cta:active { transform: translateY(-1px) scale(1); }

.cta-note {
  margin-top: 13px;
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ============================================================
   SECCIONES
   ============================================================ */

section {
  padding: 58px 34px;
  border-top: 1px solid var(--line-soft);
}

.eyebrow {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  text-align: center;
}

h2 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 35px);
  line-height: 1.22;
  letter-spacing: -.015em;
  text-align: center;
  margin: 0 0 26px;
}

/* Lista corta */

.list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-family: var(--font-h);
  font-weight: 500;
}

.list li:last-child { border-bottom: 0; }
.list li svg { flex: none; margin-top: 5px; }

/* Garantía */

.guarantee {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, rgba(245,184,65,.10), rgba(245,184,65,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 38px 32px;
}

.guarantee .seal {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  animation: floaty 4.5s ease-in-out infinite;
}

.guarantee h2 { margin-bottom: 14px; }
.guarantee p  { color: var(--muted); margin: 0 0 14px; font-size: 16.5px; }
.guarantee p:last-child { margin-bottom: 0; }
.guarantee b  { color: var(--text); }

/* Cierre */

.close { text-align: center; }

.notfor {
  max-width: 560px;
  margin: 34px auto 0;
  padding: 22px 26px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--muted);
  font-size: 15.5px;
}

.notfor b { color: var(--text); display: block; margin-bottom: 8px; font-family: var(--font-h); }
.notfor ul { margin: 0; padding-left: 20px; }
.notfor li { margin-bottom: 5px; }

footer {
  text-align: center;
  padding: 34px;
  color: var(--muted-2);
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
}

footer a { color: var(--muted); }

/* ---------- CTA fija en mobile ---------- */

.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 8, 6, .93);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(130%);
  transition: transform .34s var(--ease);
  display: none;
}

.sticky.on { transform: translateY(0); }
.sticky .cta { margin: 0; width: 100%; padding: 16px 20px; font-size: 16px; }

/* ============================================================
   PÁGINA DE AGENDA
   ============================================================ */

.booking { max-width: 900px; margin: 0 auto; }

.calendly-inline-widget {
  min-width: 320px;
  height: 740px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 780px;
  margin: 0 auto 40px;
}

.step {
  text-align: center;
  padding: 20px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color .3s, transform .3s var(--ease);
}

.step:hover { border-color: var(--line); transform: translateY(-3px); }

.step b {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #231604;
  font-family: var(--font-h);
  font-size: 14px;
}

.step p { margin: 0; font-size: 15px; color: var(--muted); }

.back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}

.back:hover { color: var(--gold); }

.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .frame { padding: 10px; }
  .page { border-radius: 18px; }
  .hero { padding: 32px 20px 44px; }
  section { padding: 46px 20px; }
  .checks { gap: 10px 22px; }
  .check { font-size: 14px; }
  .cta { width: 100%; padding: 17px 24px; }
  .sticky { display: block; }
  .calendly-inline-widget { height: 1000px; }
  .guarantee { padding: 30px 22px; }
  h1 .uline { white-space: normal; }
  .uline::after { display: none; }
  h1 .uline { background: linear-gradient(180deg, transparent 78%, rgba(245,184,65,.42) 78%); }
}

/* ---------- Accesibilidad: sin movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .anim   { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
