/* ===== WordsWorth course banner (popup + shortcode). Same format as the BOO26 Halloween banner. ===== */
.wa-cb {
  --cb-maroon: #881515; --cb-gold: #ffc94a; --cb-night: #2a0d10;
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px;
  width: 100%; aspect-ratio: 2.6 / 1; min-height: fit-content; max-height: 520px;
  background: var(--cb-night); color: #fff; font-family: 'Encode Sans', sans-serif;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 26px 4% 26px 5%; box-sizing: border-box;
}
.wa-cb * { box-sizing: border-box; }
.wa-cb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.wa-cb::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(42, 8, 12, .82) 0%, rgba(42, 8, 12, .55) 40%, rgba(42, 8, 12, 0) 62%); }
.wa-cb-text { position: relative; z-index: 2; max-width: 52%; }
.wa-cb-kicker { display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cb-night); background: var(--cb-gold); border-radius: 6px; padding: 4px 10px; }
.wa-cb-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.04;
  margin: 0 0 12px; color: #fff; text-shadow: 0 3px 0 var(--cb-maroon), 0 0 24px rgba(255, 201, 74, .35); }
.wa-cb-title em { font-style: normal; color: var(--cb-gold); }
.wa-cb-sub { font-size: clamp(14px, 1.4vw, 18px); font-weight: 500; line-height: 1.45; margin: 0 0 16px; color: #fbeee6; }
.wa-cb-sub b { color: #fff; }
.wa-cb-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wa-cb-cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px;
  background: var(--cb-gold); color: var(--cb-night); padding: 12px 22px; border-radius: 8px; transition: transform .15s ease, background .15s ease; }
.wa-cb-cta:hover, .wa-cb-cta:focus-visible { background: #fff; color: var(--cb-night); transform: translateY(-2px); }
.wa-cb-alt { color: #fff; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.wa-cb-alt:hover, .wa-cb-alt:focus-visible { color: var(--cb-gold); }
.wa-cb-short { display: none; }

/* the paper plane: glides across with a gentle hover, the text fades in behind it with a soft (feathered) edge,
   and it leaves a short trail of sparkles (no script = text simply shows) */
.wa-cb-plane { position: absolute; z-index: 3; left: 0; top: 0; width: 130px; height: auto; transform: translate(-260px, 0);
  transform-origin: 60% 50%; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); will-change: transform; }
.wa-cb.is-ready .wa-cb-reveal { -webkit-mask-image: linear-gradient(90deg, #000 var(--rv, -120px), transparent calc(var(--rv, -120px) + 110px));
  mask-image: linear-gradient(90deg, #000 var(--rv, -120px), transparent calc(var(--rv, -120px) + 110px)); }
.wa-cb-spark { position: absolute; z-index: 2; left: 0; top: 0; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #ffe08a; box-shadow: 0 0 8px 2px rgba(255, 201, 74, .8); pointer-events: none; animation: wa-cb-spark 1.1s ease-out forwards; }
.wa-cb-spark.w { background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .7); }
@keyframes wa-cb-spark { from { opacity: .95; transform: scale(1); } to { opacity: 0; transform: translate(-14px, 22px) scale(.3); } }

/* tablet */
@media (max-width: 1119px) {
  .wa-cb { aspect-ratio: 2.1 / 1; }
  .wa-cb-text { max-width: 58%; }
}
/* small tablet: a taller banner so the text always fits */
@media (max-width: 767px) {
  .wa-cb { aspect-ratio: 1.55 / 1; }
  .wa-cb-text { max-width: 66%; }
}
/* phone: portrait video, text in the sky at the top, couple below */
@media (max-width: 600px) {
  .wa-cb { aspect-ratio: 10 / 16; max-height: none; min-height: fit-content; border-radius: 16px;
    justify-content: flex-start; align-items: center; text-align: center; padding: 24px 18px 0; }
  .wa-cb-bg { object-position: 50% 100%; }
  .wa-cb::before { background: linear-gradient(180deg, rgba(42, 8, 12, .82) 0%, rgba(42, 8, 12, .5) 40%, rgba(42, 8, 12, 0) 58%); }
  .wa-cb-text { max-width: 100%; }
  .wa-cb-long { display: none; }
  .wa-cb-short { display: inline; }
  .wa-cb-sub { margin-bottom: 14px; }
  .wa-cb-btns { justify-content: center; }
  .wa-cb-plane { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-cb-plane, .wa-cb-spark { display: none; }
}

/* ===== home-page popup ===== */
.wa-cb-modal { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(30, 8, 10, .8); }
.wa-cb-modal.is-open { display: flex; animation: wa-cb-fade .35s ease both; }
@keyframes wa-cb-fade { from { opacity: 0; } to { opacity: 1; } }
.wa-cb-modal-box { position: relative; width: min(940px, 100%); }
.wa-cb-modal .wa-cb { box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.wa-cb-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 40px; height: 40px; border-radius: 8px; border: 0;
  background: rgba(255, 255, 255, .92); color: #2a0d10; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.wa-cb-close:hover, .wa-cb-close:focus-visible { background: #ffc94a; color: #2a0d10; }
@media (max-width: 600px) {
  .wa-cb-modal-box { width: min(380px, 100%, calc((100vh - 32px) * .625)); width: min(380px, 100%, calc((100dvh - 32px) * .625)); }
}

/* ===== sign-up form on /nuestro-curso/ ===== */
.wa-su{display:grid;gap:14px;max-width:640px;margin:0 auto;background:#fff;border:1px solid #e3ddd6;border-radius:16px;padding:22px;font-family:'Encode Sans',sans-serif;color:#1b1a19;text-align:left}
.wa-su label{display:block;font-size:15px;font-weight:600;margin-bottom:5px;color:#1b1a19}
.wa-su label small{font-weight:400;color:#6b635d}
.wa-su input[type=text],.wa-su input[type=tel],.wa-su input[type=email],.wa-su select{font:inherit;font-size:16px;width:100%;box-sizing:border-box;padding:12px;border:1px solid #cfc7bf;border-radius:10px;background:#fff;color:#1b1a19}
.wa-su input:focus,.wa-su select:focus{outline:2px solid #881515;outline-offset:1px;border-color:#881515}
.wa-su-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.wa-su-row[hidden],.wa-su-ref[hidden],.wa-su-fam[hidden],.wa-su-self[hidden]{display:none}
.wa-su .wa-su-chk{display:flex;gap:10px;align-items:flex-start;font-weight:500;font-size:15px}
.wa-su .wa-su-chk input{margin-top:4px;width:18px;height:18px;flex:0 0 auto;accent-color:#881515}
.wa-su-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.wa-su button.wa-su-go{justify-self:start;border:0;border-radius:10px;background:#881515;color:#fff;font:inherit;font-weight:700;font-size:17px;padding:14px 26px;cursor:pointer}
.wa-su button.wa-su-go:hover,.wa-su button.wa-su-go:focus{background:#6e1010;color:#fff}
.wa-su-small{margin:0;font-size:14px;color:#6b635d}
@media (max-width:600px){.wa-su{padding:16px}.wa-su-row{grid-template-columns:minmax(0,1fr)}.wa-su button.wa-su-go{justify-self:stretch}}

/* links to a section on /nuestro-curso/ stop below the fixed site header */
#unidades, #inscripcion { scroll-margin-top: 130px; }
@media (max-width: 479px) { #unidades, #inscripcion { scroll-margin-top: 200px; } }

/* [wa_curso_banner no_phone="1"]: not shown on phones (portrait or landscape) */
@media (max-width: 767px) { .wa-cb.wa-cb-nophone { display: none; } }
