/* Página de registro de los webinars como VSL (docs/PLAN-WEBINARS.md).
   Dos temas, uno por ponente, sacados de sus landings: Marc (curso-marc: claro, azul marino y verde,
   Poppins + Open Sans) y Javi (curso.javiecom.com: oscuro, verde neón, Bricolage + Figtree).
   Fuentes propias (la política de seguridad de organicecom.com no deja cargar Google Fonts). */
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/webinar-assets/fuente-poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(/webinar-assets/fuente-poppins-800.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 300 800; font-display: swap; src: url(/webinar-assets/fuente-opensans.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url(/webinar-assets/fuente-bricolage.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url(/webinar-assets/fuente-figtree.woff2) format("woff2"); }

/* Marc (y por defecto) */
:root, body[data-ponente="marc"] {
  --bg: #ffffff; --bg2: #f3fbf7; --caja: #ffffff; --caja-b: #d6ede3; --linea: #e3f1ea; --linea2: #c9e4d7;
  --titulo: #1f476e; --fuerte: #0b2236; --texto: #3a4d5c; --suave: #5e7080;
  --btn: #179249; --btn-h: #1ebe5f; --on-btn: #ffffff; --acento: #179249;
  --pill-bg: #d5f2e6; --pill-t: #0f7352; --suave-bg: #f3fbf7;
  --vivo: #c0392b; --vivo-bg: #fdecea; --input: #ffffff; --error: #c0392b;
  --cab: #ffffff; --player: #0b2236; --sombra: 0 18px 40px rgba(31, 71, 110, .14);
  --display: "Poppins", system-ui, sans-serif; --cuerpo: "Open Sans", system-ui, sans-serif;
  color-scheme: light;
}
/* Javi */
body[data-ponente="javi"] {
  --bg: #07100b; --bg2: #0b1610; --caja: #0f1b14; --caja-b: #2a5a3b; --linea: #1b2c21; --linea2: #2e4636;
  --titulo: #f1f7f2; --fuerte: #f1f7f2; --texto: #c4d6ca; --suave: #8fa897;
  --btn: #19c26b; --btn-h: #3df28a; --on-btn: #04140a; --acento: #3df28a;
  --pill-bg: #3df28a; --pill-t: #04140a; --suave-bg: #12241a;
  --vivo: #ff8a7a; --vivo-bg: #2a1210; --input: #07100b; --error: #ff8a7a;
  --cab: #07100b; --player: #0f1b14; --sombra: 0 0 60px rgba(61, 242, 138, .16);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --cuerpo: "Figtree", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--texto); font: 17px/1.5 var(--cuerpo); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--acento); }
h1, h2, h3, p { margin: 0; }
h1, h2, .l-h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--titulo); text-wrap: balance; }
strong, b { color: var(--fuerte); }
section { padding: 44px 16px; }
.l-wrap { max-width: 1040px; margin: 0 auto; }
.l-estrecho { max-width: 720px; }
.l-alt { background: var(--bg2); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.l-acento { color: var(--acento); }
.l-h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }

/* Mientras carga, sin cabecera ni pie: solo «Cargando…». */
body.l-cargando .l-cab, body.l-cargando .l-pie { visibility: hidden; }

/* ── Cabecera ── */
.l-cab { padding: 12px 16px; border-bottom: 1px solid var(--linea); background: var(--cab); }
.l-cab .l-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.l-marca { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--titulo); }
.l-marca img { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; flex: none; }
body[data-ponente="javi"] .l-marca img { border: 2px solid var(--acento); }
.l-btn-nav { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--btn); color: var(--on-btn); font-weight: 700; font-size: 15px; text-decoration: none; }
.l-btn-nav:hover { background: var(--btn-h); }

/* ── Hero ── */
.l-hero { padding-top: 28px; }
.l-hero .l-wrap { display: flex; flex-direction: column; gap: 18px; }
.l-pill { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-t); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.l-pill.suave { background: var(--suave-bg); color: var(--acento); border: 1px solid var(--linea2); }
.l-pill.vivo { background: var(--vivo); color: #fff; }
.l-hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.06; letter-spacing: -.025em; }
body[data-ponente="javi"] .l-hero h1 { line-height: 1; }
.l-sub { font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; color: var(--texto); }

.l-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--player); border: 1px solid var(--caja-b); box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; color: #fff; }
.l-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.l-player > iframe, .l-player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.l-play { position: relative; width: 76px; height: 76px; border-radius: 999px; background: var(--btn); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2); transition: transform .15s; }
.l-player:hover .l-play { transform: scale(1.06); }
.l-play svg { width: 30px; height: 30px; margin-left: 4px; fill: var(--on-btn); }
.l-player-txt { position: relative; font-weight: 800; font-size: 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }

.l-cuando { padding: 16px 18px; border-radius: 16px; background: var(--suave-bg); border: 1px solid var(--linea2); display: flex; flex-direction: column; gap: 6px; }
.l-fecha { font-size: 19px; }
.l-fecha strong { color: var(--titulo); }
.l-horas { font-size: 14px; color: var(--suave); }
.l-cuenta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.l-cuenta div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: var(--caja); border: 1px solid var(--linea2); }
.l-cuenta b { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 34px); line-height: 1; color: var(--acento); font-variant-numeric: tabular-nums; }
.l-cuenta small { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
.l-vivo { margin-top: 6px; padding: 10px 14px; border-radius: 12px; background: var(--vivo-bg); color: var(--vivo); font-weight: 700; }

.l-cta { display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 0 20px; border-radius: 14px; background: var(--btn); color: var(--on-btn); font-weight: 800; font-size: 20px; text-align: center; text-decoration: none; box-shadow: 0 10px 28px rgba(23, 146, 73, .3); transition: background .15s; }
.l-cta:hover { background: var(--btn-h); }
.l-nota { margin-top: -6px; text-align: center; font-size: 14px; color: var(--suave); }

/* ── Registro ── */
.l-plaza { padding-top: 8px; }
.l-caja { border-radius: 20px; padding: 26px 20px; background: var(--caja); border: 2px solid var(--btn); box-shadow: var(--sombra); }
.l-caja h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; margin-bottom: 16px; }
.l-caja h1 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.l-caja p { margin-bottom: 10px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: var(--fuerte); }
input, select, textarea { width: 100%; min-height: 52px; font: inherit; font-size: 17px; color: var(--fuerte); background: var(--input); border: 1px solid var(--linea2); border-radius: 12px; padding: 10px 14px; }
input:focus, select:focus { outline: 2px solid var(--acento); outline-offset: 1px; border-color: var(--acento); }
.w-tel { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.w-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--suave); }
.w-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--btn); }
.w-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button, .w-boton { display: inline-block; width: 100%; min-height: 60px; padding: 14px 18px; border: 0; border-radius: 14px; background: var(--btn); color: var(--on-btn); font: inherit; font-weight: 800; font-size: 19px; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .w-boton:hover { background: var(--btn-h); }
button:disabled { opacity: .65; cursor: wait; }
.w-boton.secundario { min-height: 0; background: transparent; color: var(--titulo); border: 1px solid var(--linea2); font-size: 16px; font-weight: 700; padding: 12px 14px; }
.w-botones { display: grid; gap: 10px; margin: 16px 0; }
.w-error { min-height: 1em; margin: 0; color: var(--error); font-size: 15px; }
.w-error button { width: auto; min-height: 0; padding: 2px 8px; font-size: 15px; background: none; color: var(--acento); text-decoration: underline; }
.w-legal { margin-top: 14px !important; color: var(--suave); font-size: 12.5px; }
.w-enlace { word-break: break-all; font-size: 13px; color: var(--suave); }

/* ── Lo que vas a ver ── */
.l-puntos { list-style: none; counter-reset: p; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.l-puntos li { counter-increment: p; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: var(--caja); border: 1px solid var(--caja-b); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--fuerte); }
.l-puntos li::before { content: counter(p, decimal-leading-zero); flex: none; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: .9; color: var(--acento); }

/* ── Ponente ── */
.l-ponente .l-wrap { max-width: 960px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.l-fotos { flex: 1 1 280px; min-width: 0; display: flex; gap: 12px; justify-content: center; }
.l-foto { position: relative; flex: 1 1 0; min-width: 0; max-width: 340px; border-radius: 20px; overflow: hidden; background: var(--suave-bg); }
.l-foto img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.l-fotos.dos .l-foto img { aspect-ratio: 3 / 4; }
.l-foto span { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(7, 16, 11, .85); color: #c4d6ca; font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.l-foto:last-child span { color: #3df28a; }
.l-bio { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.l-bio .l-pill { align-self: flex-start; }
.l-bio p { font-size: 20px; font-weight: 600; }
.l-bio p + p { margin-top: 10px; }

/* ── Entrevistas ── */
.l-cab-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.l-cab-sec a { font-weight: 800; font-size: 15px; text-decoration: none; }
.l-ents { margin-top: 20px; display: grid; gap: 18px; }
@media (min-width: 720px) { .l-ents { grid-template-columns: repeat(3, 1fr); } }
.l-ent { display: flex; flex-direction: column; gap: 10px; color: var(--fuerte); text-decoration: none; }
.l-ent img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--linea2); }
.l-ent span { font-weight: 800; font-size: 17px; line-height: 1.25; }
/* En el móvil, en filas (miniatura a la izquierda): tres tarjetas a lo ancho ocupaban tres pantallas. */
@media (max-width: 719px) {
  .l-ents { gap: 14px; }
  .l-ent { flex-direction: row; align-items: center; gap: 12px; }
  .l-ent img { width: 44%; flex: none; }
  .l-ent span { font-size: 16px; }
}

/* ── Dudas ── */
.l-faq { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.l-faq details { padding: 16px 18px; border-radius: 14px; background: var(--caja); border: 1px solid var(--caja-b); }
.l-faq summary { cursor: pointer; font-weight: 800; font-size: 18px; color: var(--fuerte); }
.l-faq p { margin-top: 10px; color: var(--texto); }

/* ── Cierre ── */
.l-final .l-wrap { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.l-final p { font-size: 19px; font-weight: 600; }

/* ── Estados sin landing (cargando, cerrado, lista de espera) ── */
.l-sola { max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; }
.l-sola .l-caja { border-width: 1px; border-color: var(--linea2); }
.l-sola #w-cargando { margin: 0; color: var(--suave); }

/* ── Pie ── */
.l-pie { padding: 26px 16px 34px; border-top: 1px solid var(--linea); color: var(--suave); font-size: 12.5px; line-height: 1.5; }
.l-pie .l-wrap { display: flex; flex-direction: column; gap: 8px; }
.l-pie a { color: var(--suave); }
.l-firma { font-weight: 700; }

@media (min-width: 900px) {
  section { padding: 60px 16px; }
  .l-hero { padding-top: 40px; }
  .l-caja { padding: 32px 30px; }
}
