/* =========================================================================
   Webinar «No todos los duelos son iguales»: landing a código
   (templates/landing-webinar.php). Reutiliza tokens, botones y tarjetas de
   tfe-landing.css. Mobile first.
   ========================================================================= */

.wb-landing { background: var(--tfe-white); }
.wb-landing section { overflow-x: clip; }
.wb-center { text-align: center; }
.wb-landing .wb-h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; line-height: 1.2; margin: 0 0 14px; }
.wb-landing .wb-h2--light { color: var(--tfe-white); }
.wb-lead { font-size: 17px; max-width: 760px; margin-bottom: 26px; }
.wb-lead.wb-center { margin-left: auto; margin-right: auto; }
.wb-landing h3 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.wb-landing .tfe-eyebrow { color: var(--tfe-green-700); }

/* ---------- Hero ---------- */
.wb-hero { padding: 30px 0 40px; background: linear-gradient(180deg, var(--tfe-green-50) 0%, var(--tfe-white) 100%); }
.wb-hero__grid { display: grid; gap: 26px; }
.wb-landing h1.wb-hero__title { font-size: clamp(32px, 6.4vw, 52px); font-weight: 700; line-height: 1.08; color: var(--tfe-green-800); margin: 0 0 12px; }
.wb-hero__claim { font-family: var(--tfe-font-head); font-size: clamp(18px, 3vw, 22px); font-weight: 500; color: var(--tfe-ink); margin: 0 0 16px; }
.wb-landing ul.wb-hero__meta { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wb-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--tfe-green-100); background: var(--tfe-white); font-size: 14px; font-weight: 600; color: var(--tfe-green-800); }
.wb-chip--date { background: var(--tfe-green-800); border-color: var(--tfe-green-800); color: var(--tfe-white); }
.wb-chip--free { background: #fff4c2; border-color: #f2e39a; color: #6b5300; }
.wb-hero__intro { font-size: 17px; color: var(--tfe-ink); margin: 0 0 16px; }
.wb-landing ul.wb-hero__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.wb-hero__list li { position: relative; padding-left: 26px; font-size: 16px; }
.wb-hero__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--tfe-green-700); font-weight: 700; }
.wb-hero__list strong { color: var(--tfe-green-800); }
.wb-count { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 16px; padding: 8px 14px; border-radius: var(--tfe-radius-sm); background: var(--tfe-white); border: 1px dashed var(--tfe-green-500); font-family: var(--tfe-font-head); font-size: 15px; color: var(--tfe-green-800); }
.wb-count__label { font-weight: 600; color: var(--tfe-muted); }
.wb-count [data-wb-d], .wb-count [data-wb-h], .wb-count [data-wb-m] { font-size: 22px; font-weight: 700; }
.wb-hero__cta { margin: 0 0 8px; }
.wb-hero__note { font-size: 14px; color: var(--tfe-muted); margin: 0; }
.wb-hero__card { padding: 22px; align-self: start; border-top: 6px solid var(--tfe-green-700); scroll-margin-top: 90px; }
.wb-landing h2.wb-hero__card-title { font-size: 24px; margin: 0 0 6px; }
.wb-hero__card-text { font-size: 15px; color: var(--tfe-muted); margin: 0 0 16px; }

/* ---------- Formulario ---------- */
.wb-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wb-form__grid { display: grid; gap: 12px; }
.wb-form__field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wb-form__field label { font-size: 14px; font-weight: 600; color: var(--tfe-ink); }
.wb-form input[type="text"], .wb-form input[type="email"], .wb-form select { width: 100%; padding: 12px; border: 1px solid #cfd8d5; border-radius: var(--tfe-radius-sm); font: inherit; font-size: 16px; background: var(--tfe-white); }
.wb-form input:focus, .wb-form select:focus { outline: 2px solid var(--tfe-green-700); outline-offset: 1px; }
.wb-form .is-invalid { border-color: #b42318; }
.wb-form__consent { margin: 14px 0 12px; font-size: 14px; }
.wb-form__consent input { margin-right: 8px; }
.wb-form__consent--opt { margin-top: -4px; }
.wb-form__opt { font-weight: 400; opacity: .7; }
.wb-form__actions { margin: 0; }
.wb-form .tfe-btn--block { width: 100%; justify-content: center; }
.wb-form__legal { font-size: 12px; color: var(--tfe-muted); margin: 12px 0 0; }
.wb-form__msg { margin: 12px 0 0; font-size: 15px; min-height: 1em; }
.wb-form__msg.is-ok { color: var(--tfe-green-800); font-weight: 600; font-size: 16px; }
.wb-form__msg.is-error { color: #b42318; }
.wb-form.is-sending button { opacity: 0.6; pointer-events: none; }
.wb-form.is-sent .wb-form__grid, .wb-form.is-sent .wb-form__consent, .wb-form.is-sent .wb-form__actions, .wb-form.is-sent .wb-form__legal { display: none; }

/* ---------- Regalos ---------- */
.wb-grid { display: grid; gap: 16px; }
.wb-card { padding: 22px; position: relative; }
.wb-card--regalo { border-top: 4px solid #e9c65b; }
.wb-card__num { font-family: var(--tfe-font-head); font-size: 13px; font-weight: 700; color: var(--tfe-green-500); letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.wb-card p { margin: 0; color: var(--tfe-ink); }

/* ---------- Tipos ---------- */
.wb-landing ol.wb-tipos__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.wb-tipo { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--tfe-white); border: 1px solid var(--tfe-line); border-radius: var(--tfe-radius-sm); }
.wb-tipo__num { width: 44px; height: 44px; border-radius: 50%; background: var(--tfe-green-800); color: var(--tfe-white); font-family: var(--tfe-font-head); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.wb-tipo p { margin: 0; color: var(--tfe-ink); }

/* ---------- Agenda ---------- */
.wb-landing ul.wb-agenda__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.wb-agenda__list li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 14px; background: var(--tfe-white); border-radius: var(--tfe-radius-sm); box-shadow: var(--tfe-shadow); font-size: 16px; }
.wb-agenda__time { font-family: var(--tfe-font-head); font-weight: 700; color: var(--tfe-green-700); }

/* ---------- Quién ---------- */
.wb-quien__grid { display: grid; gap: 22px; align-items: center; }
.wb-quien__photo img { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--tfe-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.wb-quien__text { color: #e6f0ee; font-size: 17px; }
.wb-quien__ref { color: #b7d0ca; font-size: 13px; line-height: 1.5; margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.wb-faq__list { max-width: 820px; display: grid; gap: 10px; }
.wb-faq__item { background: var(--tfe-white); border: 1px solid var(--tfe-line); border-radius: var(--tfe-radius-sm); padding: 0 16px; }
.wb-faq__item summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--tfe-green-800); list-style: none; position: relative; padding-right: 28px; }
.wb-faq__item summary::-webkit-details-marker { display: none; }
.wb-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 20px; color: var(--tfe-green-500); }
.wb-faq__item[open] summary::after { content: "–"; }
.wb-faq__answer { padding: 0 0 14px; }
.wb-faq__answer p { margin: 0; }

/* ---------- Barra fija móvil ---------- */
.wb-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--tfe-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08); }
.wb-sticky[hidden] { display: none; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
	.wb-hero { padding: 48px 0 56px; }
	.wb-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
	.wb-hero__card { position: sticky; top: 24px; padding: 28px; }
	.wb-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.wb-landing ol.wb-tipos__list { grid-template-columns: repeat(2, 1fr); }
	.wb-quien__grid { grid-template-columns: 360px 1fr; gap: 40px; }
	.wb-sticky { display: none !important; }
}
