/* ============================================================
   COMPANION HUB — El Método Shorts
   Identidad del libro: azul-noche + degradado cian->verde,
   acento violeta, estética dashboard/analytics.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&family=Archivo+Black&family=Space+Grotesk:wght@500;700&display=swap');

:root{
  --bg:#0a0e1a;
  --bg-2:#0f1424;
  --panel:#141b2e;
  --panel-2:#1a2238;
  --line:#26304a;
  --text:#e8edf7;
  --muted:#8b97b3;
  --cyan:#21d4fd;
  --green:#3ef0a0;
  --violet:#8b5cff;
  --grad:linear-gradient(100deg,#21d4fd 0%,#3ef0a0 100%);
  --grad-v:linear-gradient(100deg,#21d4fd 0%,#8b5cff 100%);
  --maxw:1080px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Archivo',system-ui,sans-serif;
  background:var(--bg);color:var(--text);line-height:1.6;
  -webkit-font-smoothing:antialiased;
  background-image:
    radial-gradient(900px 500px at 80% -10%,rgba(139,92,255,.16),transparent 60%),
    radial-gradient(800px 500px at 0% 0%,rgba(33,212,253,.12),transparent 55%);
  background-attachment:fixed;
}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ---------- Header ---------- */
header.site{position:sticky;top:0;z-index:20;background:rgba(10,14,26,.82);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;flex-direction:column;text-decoration:none;line-height:1}
.brand b{font-family:'Archivo Black',sans-serif;font-size:1.05rem;letter-spacing:.01em;text-transform:uppercase}
.brand b em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand span{font-size:.62rem;text-transform:uppercase;letter-spacing:.3em;color:var(--muted);margin-top:4px}
nav.top a{color:var(--muted);text-decoration:none;font-size:.85rem;font-weight:500;margin-left:22px;transition:.2s}
nav.top a:hover{color:var(--cyan)}
@media(max-width:680px){nav.top{display:none}}

/* ---------- Hero ---------- */
.hero{padding:84px 0 30px;text-align:center;position:relative}
.kicker{display:inline-block;font-size:.72rem;text-transform:uppercase;letter-spacing:.32em;color:var(--cyan);font-weight:600;margin-bottom:22px;font-family:'Space Grotesk'}
.hero h1{font-family:'Archivo Black',sans-serif;text-transform:uppercase;font-size:clamp(2.6rem,8vw,5.5rem);line-height:.92;letter-spacing:-.01em}
.hero h1 .g{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{max-width:560px;margin:24px auto 0;font-size:1.1rem;color:var(--muted)}
.rule{width:120px;height:3px;margin:26px auto 0;background:var(--grad-v);border-radius:3px}

/* ---------- Section divider ---------- */
.divider{display:flex;align-items:center;gap:16px;margin:64px 0 28px}
.divider::before,.divider::after{content:"";height:1px;background:var(--line);flex:1}
.divider span{font-family:'Space Grotesk';font-weight:700;text-transform:uppercase;letter-spacing:.2em;font-size:.8rem;color:var(--muted)}

/* ---------- Resource grid ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:18px}
.card{
  background:linear-gradient(180deg,var(--panel),var(--bg-2));
  border:1px solid var(--line);border-radius:16px;padding:24px 22px;
  text-decoration:none;color:var(--text);position:relative;overflow:hidden;
  min-height:178px;display:flex;flex-direction:column;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.card::before{content:"";position:absolute;inset:0;border-radius:16px;padding:1px;background:var(--grad);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:.2s}
.card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(33,212,253,.45)}
.card:hover::before{opacity:1}
.card .num{position:absolute;top:16px;right:18px;font-family:'Archivo Black';font-size:2.2rem;color:var(--line);line-height:1}
.card .ico{width:32px;height:32px;margin-bottom:14px;color:var(--cyan)}
.card h3{font-family:'Space Grotesk';font-weight:700;font-size:1.18rem;margin-bottom:6px;padding-right:30px}
.card p{font-size:.88rem;color:var(--muted);flex:1}
.card .go{margin-top:14px;font-size:.74rem;text-transform:uppercase;letter-spacing:.16em;font-weight:600;color:var(--green)}
.card .go::after{content:" →"}

/* ---------- Content pages ---------- */
.page{padding:48px 0 80px;max-width:760px}
.page .back{display:inline-block;margin-bottom:26px;color:var(--cyan);text-decoration:none;font-size:.85rem;font-weight:600}
.page h1{font-family:'Archivo Black';text-transform:uppercase;font-size:clamp(2rem,5vw,3.2rem);line-height:1;margin-bottom:10px}
.page h1 .g{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.page>p.intro{color:var(--muted);font-size:1.08rem;margin-bottom:10px}
.page h2{font-family:'Space Grotesk';font-weight:700;font-size:1.4rem;margin:40px 0 12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.page h3{font-family:'Space Grotesk';font-size:1.1rem;margin:24px 0 8px;color:var(--cyan)}
.page p,.page li{color:#cdd6e8}
.page ul,.page ol{margin:10px 0 18px 22px}
.page li{margin-bottom:7px}

/* snippet copiable */
.snippet{position:relative;background:#070b14;border:1px solid var(--line);border-radius:12px;padding:20px;margin:16px 0}
.snippet pre{white-space:pre-wrap;font-family:'Space Grotesk',monospace;font-size:.92rem;color:#d6e6f5;line-height:1.6}
.copy{position:absolute;top:12px;right:12px;background:var(--grad);color:#05121a;border:none;border-radius:7px;padding:7px 13px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;cursor:pointer;font-family:'Space Grotesk'}
.copy.done{background:var(--green)}

/* download button */
.dl{display:inline-flex;align-items:center;gap:10px;background:var(--grad);color:#05121a;text-decoration:none;padding:13px 20px;border-radius:10px;font-weight:700;font-size:.92rem;font-family:'Space Grotesk';margin:8px 10px 8px 0;transition:.18s}
.dl:hover{transform:translateY(-2px);box-shadow:0 12px 28px -12px rgba(62,240,160,.6)}
.dl svg{width:18px;height:18px}

/* table */
table{width:100%;border-collapse:collapse;margin:18px 0;font-size:.9rem}
th,td{text-align:left;padding:10px 12px;border:1px solid var(--line)}
th{background:var(--panel-2);font-family:'Space Grotesk';font-weight:700;color:var(--cyan)}
td .pos{color:var(--green);font-weight:600}

/* callout */
.note{background:var(--panel);border-left:3px solid var(--violet);padding:14px 18px;border-radius:0 10px 10px 0;margin:18px 0;font-size:.95rem;color:#cdd6e8}

/* stat chips (dashboard vibe) */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:26px 0}
.stat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px}
.stat .v{font-family:'Archivo Black';font-size:1.7rem;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.stat .l{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;margin-top:4px}

/* footer */
footer.site{border-top:1px solid var(--line);padding:30px 0;margin-top:40px}
footer.site .wrap{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;font-size:.8rem;color:var(--muted)}
footer.site a{color:var(--cyan);text-decoration:none}
.tagline{text-align:center;font-family:'Space Grotesk';font-weight:700;letter-spacing:.28em;text-transform:uppercase;font-size:.8rem;color:var(--muted);margin-top:8px}
.tagline b{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ============================================================
   Estilizado del formulario MailerLite (ID real #mlb2-42013326)
   para que combine con el libro: fondo oscuro, botón degradado.
   Sobrescribe los estilos propios del formulario con su mismo ID.
   ============================================================ */
#mlb2-42013326.ml-form-embedContainer .ml-form-embedWrapper{
  background-color:transparent!important;max-width:100%!important;width:100%!important;
}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody{padding:0!important}
/* el título/subtítulo internos los pone la puerta -> ocultos */
#mlb2-42013326.ml-form-embedContainer .ml-form-embedContent{display:none!important}

/* input email */
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-fieldRow input{
  background-color:#070b14!important;color:var(--text)!important;
  border-color:var(--line)!important;border-radius:10px!important;
  font-family:'Archivo',sans-serif!important;font-size:1rem!important;
  padding:14px 16px!important;
}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-fieldRow input::-webkit-input-placeholder{color:#5b6582!important}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-fieldRow input::-moz-placeholder{color:#5b6582!important}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-fieldRow input:-ms-input-placeholder{color:#5b6582!important}

/* texto del consentimiento (checkbox) */
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow .label-description,
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow .label-description p{
  color:var(--muted)!important;font-family:'Archivo',sans-serif!important;font-size:.8rem!important;line-height:1.5!important;
}
/* casilla: borde y marcado en cian */
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow .label-description::before{
  background-color:#070b14!important;border:1px solid var(--line)!important;border-radius:5px!important;
}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow input[type=checkbox]:checked~.label-description::before{
  background-color:var(--cyan)!important;border-color:var(--cyan)!important;
}

/* botón -> degradado del libro */
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-embedSubmit button{
  background:var(--grad)!important;background-color:transparent!important;color:#05121a!important;
  border:none!important;border-radius:10px!important;
  font-family:'Space Grotesk',sans-serif!important;font-weight:700!important;font-size:1rem!important;
  padding:14px!important;transition:.18s!important;
}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-embedSubmit button:hover{
  background:var(--grad)!important;transform:translateY(-2px)!important;
  box-shadow:0 12px 28px -12px rgba(62,240,160,.6)!important;
}
/* mensaje de éxito */
#mlb2-42013326.ml-form-embedContainer .ml-form-successBody .ml-form-successContent h4{color:var(--text)!important;font-family:'Space Grotesk',sans-serif!important}
#mlb2-42013326.ml-form-embedContainer .ml-form-successBody .ml-form-successContent p{color:var(--muted)!important}

/* alineación de la casilla de consentimiento */
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow{margin:14px 0 18px 0!important;float:none!important}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow label{display:flex!important;align-items:flex-start!important;gap:10px!important;text-align:left!important;padding-left:0!important;min-height:0!important}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow input[type=checkbox]{position:static!important;opacity:1!important;z-index:auto!important;margin:3px 0 0 0!important;width:16px!important;height:16px!important;flex:0 0 16px!important;accent-color:var(--cyan)!important}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow .label-description{position:static!important;padding:0!important}
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow .label-description::before,
#mlb2-42013326.ml-form-embedContainer .ml-form-embedBody .ml-form-checkboxRow .label-description::after{display:none!important}

/* ============================================================
   MÓVIL — afinado (la mayoría llega escaneando el QR)
   ============================================================ */
@media(max-width:600px){
  .wrap{padding:0 18px}
  .hero{padding:54px 0 24px}
  .hero h1{font-size:clamp(2.2rem,12vw,3rem)}
  .hero p.lead{font-size:1rem}
  .page{padding:34px 0 60px}
  .page h1{font-size:2rem}
  .page h2{font-size:1.25rem;margin-top:32px}
  .grid{grid-template-columns:1fr;gap:14px}
  .card{min-height:0;padding:22px 20px}
  .card .num{font-size:1.8rem}
  /* botones de descarga a ancho completo, fáciles de tocar */
  .dl{display:flex;width:100%;justify-content:center;margin:0 0 12px}
  /* tabla con scroll horizontal en vez de romper el layout */
  .page > table,.page table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .stats{grid-template-columns:repeat(2,1fr)}
  .divider{margin:42px 0 22px}
  /* puerta de registro */
  .gate{padding:18px}
  .gate-card{padding:30px 22px}
  .gate h1{font-size:1.7rem}
  /* checklist toca-fácil */
  .check-list li{padding:16px 16px}
}

/* área táctil mínima en enlaces de navegación cuando se ven */
@media(max-width:600px){
  header.site .wrap{height:58px}
  .brand b{font-size:.95rem}
}

/* ============================================================
   Refuerzo GENÉRICO para el formulario ml-embedded
   (funciona con cualquier ID que genere MailerLite).
   Asegura que el texto del consentimiento se lea sobre el fondo oscuro.
   ============================================================ */
.ml-embedded .ml-form-embedWrapper{background-color:transparent!important;max-width:100%!important;width:100%!important}
.ml-embedded .ml-form-embedBody{padding:0!important}
.ml-embedded .ml-form-embedContent{display:none!important}

/* input */
.ml-embedded .ml-form-fieldRow input{
  background-color:#070b14!important;color:#e8edf7!important;border-color:#26304a!important;
  border-radius:10px!important;font-family:'Archivo',sans-serif!important;font-size:1rem!important;padding:14px 16px!important;
}
.ml-embedded .ml-form-fieldRow input::placeholder{color:#5b6582!important}

/* TEXTO DEL CONSENTIMIENTO -> claro y legible */
.ml-embedded .ml-form-checkboxRow,
.ml-embedded .ml-form-checkboxRow label,
.ml-embedded .ml-form-checkboxRow .label-description,
.ml-embedded .ml-form-checkboxRow .label-description p,
.ml-embedded .ml-form-embedPermissions,
.ml-embedded .ml-form-embedPermissions p,
.ml-embedded .ml-form-embedPermissions .label-description,
.ml-embedded .ml-form-embedPermissions .label-description p{
  color:#cdd6e8!important;
}
.ml-embedded .ml-form-checkboxRow .label-description a,
.ml-embedded .ml-form-embedPermissions a{color:#21d4fd!important}

/* alineación de la casilla */
.ml-embedded .ml-form-checkboxRow label{display:flex!important;align-items:flex-start!important;gap:10px!important;text-align:left!important;padding-left:0!important;min-height:0!important}
.ml-embedded .ml-form-checkboxRow input[type=checkbox]{position:static!important;opacity:1!important;z-index:auto!important;margin:3px 0 0 0!important;width:16px!important;height:16px!important;flex:0 0 16px!important;accent-color:#21d4fd!important}
.ml-embedded .ml-form-checkboxRow .label-description::before,
.ml-embedded .ml-form-checkboxRow .label-description::after{display:none!important}

/* botón */
.ml-embedded .ml-form-embedSubmit button{
  background:linear-gradient(100deg,#21d4fd 0%,#3ef0a0 100%)!important;background-color:transparent!important;
  color:#05121a!important;border:none!important;border-radius:10px!important;
  font-family:'Space Grotesk',sans-serif!important;font-weight:700!important;font-size:1rem!important;padding:14px!important;
}
.ml-embedded .ml-form-embedSubmit button:hover{transform:translateY(-2px)!important;box-shadow:0 12px 28px -12px rgba(62,240,160,.6)!important}

/* mensaje de éxito */
.ml-embedded .ml-form-successContent h4{color:#e8edf7!important;font-family:'Space Grotesk',sans-serif!important}
.ml-embedded .ml-form-successContent p{color:#8b97b3!important}
