:root{
  --bg:#06060a;
  --panel:#0d0d14;
  --text:#f2f2f6;
  --muted:#b6b6c8;
  --line:rgba(255,255,255,.10);
  --accent:#7c3aed; /* purple */
  --accent2:#a78bfa;
  --light:#f4f4f6;
  --darkText:#0b0b10;
  --radius:18px;
  --shadow: 0 20px 70px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

.container{
  width:min(1120px, calc(100% - 48px));
  margin:0 auto;
}

.bg-glow{
  position:fixed;
  inset:-40%;
  background:
    radial-gradient(closest-side at 70% 20%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(closest-side at 20% 60%, rgba(167,139,250,.12), transparent 55%);
  filter: blur(40px);
  pointer-events:none;
  z-index:-1;
}

.section{
  padding:90px 0;
}

.section--light{
  background:var(--light);
  color:var(--darkText);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(6,6,10,.55);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  gap:16px;
}

.badge{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:var(--muted);
}
.dot{
  width:8px;height:8px;border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 18px rgba(124,58,237,.6);
}

.topbar__cta{
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
}

.hero{
  padding-top:70px;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:36px;
  align-items:start;
}

.h1{
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.05;
  margin:0 0 16px;
  letter-spacing:-.02em;
}
.h2{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height:1.1;
  margin:0 0 14px;
  letter-spacing:-.02em;
}
.h3{
  margin:0 0 8px;
  font-size:18px;
}
.sub{
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
  margin:0 0 22px;
  max-width:58ch;
}
.accent{ color: var(--accent2); }

.hero__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.02em;
  border-radius:999px;
  padding:14px 18px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background:var(--accent);
  color:white;
  box-shadow: 0 10px 35px rgba(124,58,237,.35);
}
.btn--primary:hover{ filter: brightness(1.05); }

.btn--ghost{
  border:1px solid var(--line);
  color:var(--text);
  background: transparent;
}
.btn--ghost:hover{ background: rgba(255,255,255,.06); }

.btn--full{ width:100%; }

.microproof{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.microproof__item{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px 14px;
  min-width:160px;
}
.microproof__num{
  font-weight:900;
  font-size:16px;
}
.microproof__txt{
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.tile__media--clean{
  height:120px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(
    135deg,
    rgba(124,58,237,.12),
    rgba(255,255,255,.02)
  );
}

.video-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.video-card__top{
  display:flex;
  justify-content:space-between;
  padding:14px 14px 10px;
}

.text-block{
  max-width: 78ch;
  margin: 32px auto 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(11,11,16,.78);
}

.text-block p{
  margin-bottom: 16px;
}

.pill{
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(124,58,237,.18);
  border:1px solid rgba(124,58,237,.35);
}
.pill--muted{
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:var(--muted);
}

.video-wrap{
  position:relative;
  width:100%;
  aspect-ratio: 16/9;
  background:#000;
}
.video-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.video-card__bottom{
  padding:14px;
  border-top:1px solid var(--line);
}
.video-note{
  color:var(--muted);
  font-size:13px;
  margin-bottom:12px;
}

.center{ text-align:center; }
.lead{
  margin:0 auto;
  max-width:72ch;
  font-size:16px;
  line-height:1.6;
  color: rgba(11,11,16,.75);
}
.lead--dark{
  color:var(--muted);
}

.problem-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  background:white;
  border:1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.triple{
  margin-top:28px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.tile{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
}
.tile__media{
  height:120px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  margin-bottom:12px;
}
.footnote{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
}

.process__grid{
  margin-top:26px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}
.phase{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
}
.phase__kicker{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  color:var(--accent2);
  margin-bottom:8px;
  letter-spacing:.08em;
}

.who{
  margin-top:26px;
  display:flex;
  flex-direction: column;
  gap:18px;
  align-items: center;
}
.who__card{
  background:white;
  border:1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  width: 740px;
}
.avatar{
  width:700px;
  height:500px;
  border-radius:18px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border:1px solid rgba(0,0,0,.10);
  margin-bottom:12px;
}

/* Avatar Javi */
.avatar--javi{
  background-image: url("../img/hero/_DA12705.JPEG");
}

.avatar--alt{
  background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(124,58,237,.25));
}
.list{
  margin:12px 0 0;
  padding-left:18px;
  color: rgba(11,11,16,.78);
  line-height:1.6;
}

.proof-grid{
  margin-top:26px;
  display:flex;
  flex-direction: column;
  gap:12px;
}
.proof{
  height:140px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-weight:700;
}

.includes{
  margin:26px auto 0;
  max-width:820px;
  background:white;
  border:1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
}
.checklist{
  list-style:none;
  padding:0;
  margin:0 0 18px;
}
.checklist li{
  padding:10px 0 10px 34px;
  position:relative;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.checklist li:last-child{ border-bottom:none; }
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0; top:10px;
  width:22px;height:22px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(124,58,237,.18);
  border:1px solid rgba(124,58,237,.35);
  color: #4c1d95;
  font-weight:900;
}

.calendly-card{
  margin-top:22px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: var(--shadow);
}

.footer{
  padding:32px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.footer__links a{
  color:var(--muted);
  text-decoration:none;
  margin-left:14px;
}
.footer__links a:hover{ color:var(--text); }

/* Sticky CTA */
.sticky-cta{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
  padding:12px 14px;
  border-radius:999px;
  background:var(--accent);
  color:white;
  text-decoration:none;
  font-weight:900;
  box-shadow: 0 18px 50px rgba(124,58,237,.35);
  display:inline-flex;                 /* ✅ evita comportamientos raros */
  align-items:center;
  justify-content:center;
  white-space:nowrap;                 /* ✅ no salta de línea */
  transition: opacity .2s ease, transform .2s ease;
}

.sticky-cta.is-hidden{
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
  filter: blur(0);
}

/* Lead magnet hero center */
.sub--center{ margin-left:auto; margin-right:auto; }

/* Modules */
.modules{
  margin-top:28px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}

.module{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:20px;
  text-align:center;
}

.module__icon{
  width:70px;
  height:70px;
  margin:0 auto 14px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--accent2);
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.22);
}

.module__icon svg{
  width:34px;
  height:34px;
}

/* Footer social */
.footer__inner--compact{ justify-content:flex-start; }
.footer__left{ display:flex; align-items:center; gap:16px; }

.social{
  display:flex;
  gap:10px;
  align-items:center;
}

.social a{
  width:38px;
  height:38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  color: var(--muted);
  transition: all .2s ease;
}

.social a:hover{
  background: var(--accent);
  color:white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124,58,237,.35);
}

.social svg{
  width:18px;
  height:18px;
}

.hero__actions--center{
  justify-content:center;
}

/* ========= FORCE OVERRIDE: PROCESO ========= */
#proceso .process__head{
  text-align:center !important;
  max-width:72ch !important;
  margin:0 auto 18px !important;
}

#proceso .process__grid{
  margin-top:34px !important;
  gap:20px !important;
  grid-template-columns: repeat(2, 1fr) !important;
}

#proceso .phase{
  position:relative !important;
  padding:22px !important;
  border-radius:20px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:
    radial-gradient(1200px 240px at 20% -20%, rgba(124,58,237,.18), transparent 60%),
    rgba(255,255,255,.03) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.35) !important;
  transition: transform .18s ease, border-color .18s ease, filter .18s ease !important;
}

@media (hover:hover){
  #proceso .phase:hover{
    transform: translateY(-2px) !important;
    border-color: rgba(167,139,250,.28) !important;
    filter: brightness(1.03) !important;
  }
}

#proceso .phase__kicker{
  display:inline-flex !important;
  align-items:center !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  border:1px solid rgba(124,58,237,.35) !important;
  background: rgba(124,58,237,.14) !important;
  color: var(--accent2) !important;
  font-size:11px !important;
  letter-spacing:.12em !important;
  margin-bottom:12px !important;
}

#proceso .phase .h3{
  font-size:20px !important;
  margin-bottom:10px !important;
}

#proceso .phase p{
  margin:0 !important;
  color: rgba(242,242,246,.78) !important;
  line-height:1.65 !important;
  font-size:15.5px !important;
}

/* =========================================
   RESPONSIVE (GLOBAL)
========================================= */

img, video, iframe{ max-width:100%; height:auto; }

/* Tablet */
@media (max-width: 980px){
  .section{ padding:70px 0; }
  .container{ width:min(1120px, calc(100% - 32px)); }

  .hero{ padding-top:52px; }
  .hero__grid{
    grid-template-columns: 1fr;
    gap:22px;
    align-items: stretch;
  }

  .video-card__bottom{ padding:12px; }
  .btn{ padding:13px 16px; }

  .problem-grid{ grid-template-columns:1fr; }
  .triple{ grid-template-columns:1fr; }
  .process__grid{ grid-template-columns:1fr; }
  .proof-grid{ grid-template-columns:1fr 1fr; }

  .text-block{
    font-size:18px;
    line-height:1.7;
    margin:22px auto 0;
    padding:0 2px;
  }

  .who__card{
    width:100%;
    max-width:760px;
  }
  .avatar{
    width:100%;
    height:420px;
  }

  #incluye{ margin-top:0 !important; }

  .modules{ grid-template-columns:1fr; }
}

/* Móvil */
@media (max-width: 560px){
  .section{ padding:56px 0; }
  .container{ width:min(1120px, calc(100% - 24px)); }

  .h1{
    font-size: clamp(28px, 9vw, 40px);
    line-height:1.08;
    letter-spacing:-0.02em;
  }
  .h2{
    font-size: clamp(22px, 7.2vw, 30px);
    line-height:1.12;
  }
  .sub{
    font-size:15px;
    line-height:1.55;
    max-width:52ch;
  }

  .hero__actions{ gap:10px; }
  .btn--primary{ width:100%; }
  .btn--ghost{ width:100%; }

  .text-block{
    font-size:16px;
    line-height:1.7;
  }

  .tile, .phase{ padding:16px; }
  .avatar{ height:320px; border-radius:16px; }

  .footer__left{
    gap:12px;
    flex-wrap:wrap;
  }
  .social a{
    width:34px;
    height:34px;
  }

  /* ✅ Sticky CTA NO full-width en móvil */
  .sticky-cta{
    padding: 10px 12px;     /* antes 12px 14px */
    font-size: 14px;        /* más compacto */
    border-radius: 999px;
    right: 12px;
    bottom: 12px;
    box-shadow: 0 14px 40px rgba(124,58,237,.30);
  }


}

/* Proceso móvil (mantiene tu override) */
@media (max-width: 560px){
  #proceso .process__grid{ grid-template-columns: 1fr !important; }
  #proceso .phase{ padding:18px !important; border-radius:18px !important; }
}

#calendly,
#calendly .container{
  overflow: visible !important;
}

/* Calendly: el iframe va a 100% del padre, así que el padre debe tener altura */
.calendly-wrap{
  width: 100%;
  height: 760px;          /* desktop */
  overflow: visible;
}

/* asegura que el widget rellena el wrapper */
.calendly-inline-widget{
  width: 100% !important;
  height: 100% !important;  /* clave: 100% del wrapper */
  min-width: 0 !important;
}

/* tablet */
@media (max-width: 980px){
  .calendly-wrap{ height: 820px; }
}

/* móvil */
@media (max-width: 560px){
  .calendly-wrap{ height: 880px; }
}

/* ===== Calendly FIX (override del iframe global height:auto) ===== */

.calendly-inline-widget{
  width: 100% !important;
  min-width: 0 !important;
  height: 760px !important;     /* escritorio */
  display: block !important;
  overflow: hidden !important;
}

/* El iframe que inyecta Calendly debe llenar el contenedor */
.calendly-inline-widget iframe{
  width: 100% !important;
  height: 100% !important;      /* pisa el height:auto global */
  max-width: 100% !important;
  display: block !important;
}

/* Tablet */
@media (max-width: 980px){
  .calendly-inline-widget{ height: 820px !important; }
}

/* Móvil */
@media (max-width: 560px){
  .calendly-inline-widget{ height: 920px !important; }
}

