/* ===================================================================
   PROGRAMA PARTNERS · ENEB — Landing
   =================================================================== */

:root {
  --red: #E1322D;
  --red-dark: #B71F1B;
  --ink: #16130F;
  --ink-soft: #2A2622;
  --gray: #5C564F;
  --line: #E8E2DB;
  --cream: #FAF6F1;
  --white: #FFFFFF;

  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --wrap: 1160px;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(22, 19, 15, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--red); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow--light { color: #FF7A72; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(225, 50, 45, .8); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { height: 22px; width: auto; }
.nav__brand-tag {
  font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  letter-spacing: .14em; color: var(--ink); padding-left: 10px;
  border-left: 2px solid var(--line);
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-weight: 600; font-size: .95rem; color: var(--gray);
  position: relative; transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--red); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* CTA flotante — solo responsive (fuera del nav para escapar del backdrop-filter) */
.floating-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  box-shadow: 0 12px 30px -6px rgba(225, 50, 45, .9);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(225,50,45,.10), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--white));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.2vw, 4.3rem); font-weight: 900; margin-bottom: 22px; }
.hero__lead { font-size: 1.22rem; color: var(--gray); max-width: 30ch; margin-bottom: 32px; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero__facts li { font-size: .95rem; color: var(--gray); }
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }

/* ===================================================================
   VIDEO EMBED (placeholder)
   =================================================================== */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, #232323, #3a3a3a);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
}
.video-embed::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(225,50,45,.32), transparent 55%);
  opacity: .8; transition: opacity .4s var(--ease);
}
.video-embed:hover::before { opacity: 1; }
/* Con póster (primer frame del vídeo) */
.video-embed.has-poster { background-size: cover; background-position: center; background-repeat: no-repeat; }
.video-embed.has-poster::before {
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.55) 100%);
  opacity: 1;
}
.video-embed.has-poster:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.45) 100%); }
.video-embed__play {
  position: relative; z-index: 2;
  width: 78px; height: 78px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--red);
  box-shadow: 0 12px 30px -8px rgba(225,50,45,.9);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.video-embed__play::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.video-embed:hover .video-embed__play { transform: scale(1.08); background: var(--red-dark); }
.video-embed__tag {
  position: absolute; z-index: 2; left: 16px; bottom: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; color: #fff;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  padding: 7px 14px; border-radius: 999px;
}
.video-embed iframe, .video-embed video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-embed--dark { background: linear-gradient(135deg, #0e0e0e, #262626); }

.video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 60px; }
.single-video { max-width: 820px; margin: 0 auto; }

/* ===================================================================
   SECTIONS
   =================================================================== */
.section { padding: 100px 0; }
.section--light { background: var(--white); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: #EDE9E4; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; margin-bottom: 18px; }
.section__sub { font-size: 1.12rem; color: var(--gray); }
.section__sub--light { color: #B7AFA6; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--white); padding: 30px 22px; text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 4.2vw, 2rem); color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: .9rem; color: var(--gray); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 36px 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(225,50,45,.5); }
.pillar__step { font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--red); letter-spacing: .1em; }
.pillar h3 { font-size: 1.7rem; margin: 12px 0 10px; }
.pillar p { color: #B7AFA6; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__video { order: 2; }
.split__title { font-size: 1.9rem; margin-bottom: 22px; }
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 32px; color: var(--gray); }
.feature-list li strong { color: var(--ink); }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
}
.split__closing { margin-top: 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.section--dark .steps li strong { color: #fff; }
.section--dark .feature-list li strong { color: #fff; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps__n {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: var(--red);
  background: rgba(225,50,45,.14); border: 1px solid rgba(225,50,45,.3);
}
.steps li p { color: #B7AFA6; margin-top: 2px; }

/* ---------- Commission ---------- */
.commission { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.comm-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.comm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.comm-card--feat { background: var(--ink); border-color: var(--ink); color: #EDE9E4; transform: scale(1.04); }
.comm-card--feat:hover { transform: scale(1.04) translateY(-6px); }
.comm-card__pct { display: block; font-family: var(--font-head); font-weight: 900; font-size: 3rem; color: var(--red); line-height: 1; }
.comm-card--feat .comm-card__pct { color: #FF7A72; }
.comm-card__who { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 12px 0 8px; }
.comm-card p { font-size: .92rem; color: var(--gray); }
.comm-card--feat p { color: #B7AFA6; }

/* ---------- Example ---------- */
.example { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.example__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 26px; }
.example__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.example__grid > div { text-align: center; padding: 18px; border-radius: 12px; background: var(--cream); }
.example__hi { background: var(--red) !important; }
.example__hi .example__num, .example__hi .example__cap { color: #fff; }
.example__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.example__cap { display: block; font-size: .82rem; color: var(--gray); margin-top: 6px; }
.example__note { margin-top: 26px; text-align: center; font-size: 1.1rem; color: var(--gray); }
.example__note strong { color: var(--red); }

/* ===================================================================
   REGISTER / CTA
   =================================================================== */
.section--cta {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(225,50,45,.22), transparent 60%),
    var(--ink);
  color: #EDE9E4;
}
.register__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.register__copy h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 20px; }
.register__copy p { color: #B7AFA6; font-size: 1.1rem; margin-bottom: 28px; max-width: 42ch; }

.register__form { background: var(--white); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,50,45,.12);
}
.field input.invalid, .field textarea.invalid { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--gray); margin-bottom: 22px; }
.check input { margin-top: 3px; accent-color: var(--red); width: 17px; height: 17px; flex: 0 0 auto; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #1c8a3b; }
.form-status.err { color: var(--red); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: #0C0A08; color: #8B857D; padding: 60px 0 40px; }
.footer__inner { display: grid; gap: 24px; text-align: center; max-width: 720px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__logo { height: 26px; filter: brightness(0) invert(1); opacity: .85; }
.footer__brand p { font-family: var(--font-head); font-weight: 600; color: #C9C3BB; }
.footer__legal { font-size: .82rem; line-height: 1.7; }
.footer__copy { font-size: .82rem; color: #635E57; }

/* ===================================================================
   CALCULADORA
   =================================================================== */
.calc-cta { text-align: center; margin-top: 44px; }

.calc {
  margin-top: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.calc.is-open { opacity: 1; transform: none; }
.calc__head { text-align: center; margin-bottom: 34px; }
.calc__head h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.calc__head p { color: var(--gray); }

.calc__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: stretch; }

.calc__controls { display: grid; gap: 26px; align-content: start; }
.calc__field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: 12px; }
.calc__field label span { color: var(--gray); font-weight: 500; }

/* range */
.calc__range { display: flex; align-items: center; gap: 18px; }
.calc__range input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px; border-radius: 999px; background: var(--line);
  outline: none; cursor: pointer;
}
.calc__range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%; background: var(--red);
  border: 3px solid #fff; box-shadow: 0 3px 10px -2px rgba(225,50,45,.7); cursor: pointer;
  transition: transform .2s var(--ease);
}
.calc__range input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc__range input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--red);
  border: 3px solid #fff; box-shadow: 0 3px 10px -2px rgba(225,50,45,.7); cursor: pointer;
}
.calc__range output {
  flex: 0 0 auto; min-width: 52px; text-align: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--red);
  background: rgba(225,50,45,.1); border-radius: 10px; padding: 6px 10px;
}

/* segmented buttons */
.calc__segment { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__segment button {
  flex: 1 1 auto; min-width: 74px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: 11px 14px; border-radius: 11px; cursor: pointer;
  background: var(--cream); color: var(--gray);
  border: 1.5px solid var(--line);
  transition: all .2s var(--ease);
}
.calc__segment button:hover { border-color: var(--red); color: var(--ink); }
.calc__segment button.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 18px -8px rgba(225,50,45,.7); }

/* result panel */
.calc__result {
  background: var(--ink); color: #EDE9E4; border-radius: 14px;
  padding: 34px 30px; text-align: center;
  display: flex; flex-direction: column;
}
.calc__result-label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .06em; color: #B7AFA6; text-transform: uppercase; }
.calc__result-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.05; color: #FF7A72; margin: 10px 0 4px; }
.calc__result-period { font-size: .95rem; color: #B7AFA6; margin-bottom: 24px; }
.calc__breakdown { list-style: none; display: grid; gap: 10px; text-align: left; margin-top: auto; }
.calc__breakdown li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .92rem; color: #B7AFA6; }
.calc__breakdown li em { font-style: normal; opacity: .7; font-size: .85em; }
.calc__breakdown strong { font-family: var(--font-head); font-weight: 700; color: #fff; white-space: nowrap; }
.calc__disclaimer { font-size: .78rem; color: #8B857D; line-height: 1.6; margin-top: 20px; }

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .floating-cta { display: inline-flex; }
  .hero { padding: 120px 0 60px; }
  .hero__grid, .split, .split--reverse, .register__grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__video { order: 0; }
  .hero__lead { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pillars, .commission { grid-template-columns: 1fr; }
  .comm-card--feat { transform: none; }
  .comm-card--feat:hover { transform: translateY(-6px); }
  .example__grid { grid-template-columns: repeat(2, 1fr); }
  .calc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .video-row { grid-template-columns: 1fr; }
  .example { padding: 26px; }
  .example__grid { grid-template-columns: 1fr; }
  .register__form { padding: 26px; }
  .hero__facts { gap: 12px 20px; }
  .btn--lg { padding: 15px 26px; font-size: 1rem; }
  .calc { padding: 26px; }
  .calc__segment button { min-width: 64px; font-size: .85rem; padding: 10px 8px; }
  .stat { padding: 22px 10px; }
  .stat__label { font-size: .8rem; line-height: 1.35; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
}
