/* Layout: una sola columna pensada para quien escanea el QR desde el celular;
   en escritorio, el sorteo se abre en dos columnas (video | formulario).
   Paleta y tipografías de vyra360.com: Aleo para títulos, Neue Montreal para texto. */
@font-face { font-family: "NM"; font-weight: 300; font-display: swap; src: url("/techweek/assets/fonts/neue-montreal-light.woff2") format("woff2"); }
@font-face { font-family: "NM"; font-weight: 400; font-display: swap; src: url("/techweek/assets/fonts/neue-montreal-regular.woff2") format("woff2"); }
@font-face { font-family: "NM"; font-weight: 500 700; font-display: swap; src: url("/techweek/assets/fonts/neue-montreal-medium.woff2") format("woff2"); }
:root {
  --ink: #020617;        /* negro VYRA, fondo */
  --deep: #0a1730;       /* superficie */
  --navy: #122a48;       /* azul oscuro */
  --steel: #1e3a66;      /* azul medio, bordes */
  --mist: #e8f0f8;       /* blanco VYRA, texto */
  --mist-dim: #9db1ca;   /* texto secundario */
  --signal: #2e8ef5;     /* azul claro, acento */
  --signal-ink: #021226;
  --signal-soft: rgba(46, 142, 245, 0.14);
  --ok: #3ccf91;
  --danger: #ff7a7a;
  --wa: #25d366;

  --f-display: "Aleo", Georgia, "Times New Roman", serif;
  --f-text: "NM", "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 12px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font: 400 1rem/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 6.6vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); }
h1 em, h2 em { font-style: normal; color: var(--mist-dim); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.muted { color: var(--mist-dim); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 300; line-height: 1.5; color: var(--mist-dim); max-width: 56ch; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal);
}
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

/* Top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--steel) 60%, transparent); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand img { height: 28px; width: auto; }
.jump { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { color: var(--mist-dim); text-decoration: none; font-size: .88rem; padding: .4rem .6rem; border-radius: 999px; white-space: nowrap; }
.jump a:hover { color: var(--mist); background: var(--signal-soft); }
.jump a { transition: color .2s, background .2s, box-shadow .2s; }
.jump a[aria-current="true"] { color: var(--mist); background: var(--signal-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 55%, transparent); }
/* En celular el menú baja a una segunda fila y se desliza de costado */
@media (max-width: 600px) {
  .topbar__inner { flex-wrap: wrap; row-gap: .35rem; padding-block: .55rem .45rem; }
  .jump { order: 2; width: calc(100% + 1.2rem); margin-inline: -.6rem; padding-inline: .6rem; }
  .jump a { font-size: .85rem; padding: .38rem .7rem; }
}

/* Hero / sorteo */
.hero { position: relative; overflow: hidden; padding-block: 2.2rem 3.5rem; }
.hero__mark {
  position: absolute; width: min(720px, 130vw); aspect-ratio: 1; right: -18%; top: -12%;
  background: radial-gradient(circle at 50% 50%, var(--signal) 0%, var(--steel) 60%);
  -webkit-mask: url("/techweek/assets/img/vyra-iso.png") center / contain no-repeat;
  mask: url("/techweek/assets/img/vyra-iso.png") center / contain no-repeat;
  opacity: .16; pointer-events: none; animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid { position: relative; display: grid; gap: 2rem; }
.hero__copy { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
@media (min-width: 940px) {
  .hero { padding-block: 4rem 5rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: start; }
}

.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r); overflow: hidden; background: var(--deep); border: 1px solid var(--steel); margin-top: .6rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--vertical { aspect-ratio: 9 / 16; max-width: 360px; }
.video__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; color: var(--mist-dim); font: 500 .8rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.video__empty img { filter: invert(1); opacity: .5; }

/* Panels & forms */
.panel { background: linear-gradient(180deg, var(--navy), var(--deep)); border: 1px solid var(--steel); border-radius: calc(var(--r) + 6px); padding: clamp(1.2rem, 3.5vw, 1.8rem); min-width: 0; box-shadow: 0 30px 80px -40px rgba(46, 142, 245, .45); }
.gform { display: grid; gap: 1.05rem; }
.panel__head { display: grid; gap: .35rem; }
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 500; font-size: .93rem; padding: 0; }
.field legend { margin-bottom: .45rem; }
input:not([type=radio]):not([type=checkbox]), textarea {
  width: 100%; font: inherit; color: var(--mist); background: var(--ink);
  border: 1px solid var(--steel); border-radius: 10px; padding: .75rem .85rem; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.field.is-invalid input, .field.is-invalid .chips, .check.is-invalid span { border-color: var(--danger); }
.field.is-invalid > label, .field.is-invalid > legend { color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; border-radius: 10px; }
.chips--stack { flex-direction: column; }
.chip { position: relative; cursor: pointer; }
.chip input, .scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem .85rem; border: 1px solid var(--steel); border-radius: 999px; font-size: .9rem; color: var(--mist-dim); background: var(--ink); transition: all .15s; }
.chips--stack .chip span { border-radius: 10px; display: block; }
.chip input:checked + span { color: var(--mist); border-color: var(--signal); background: var(--signal-soft); }
.chip input:focus-visible + span, .scale input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.scale label { position: relative; }
.scale span { display: grid; place-items: center; height: 46px; border: 1px solid var(--steel); border-radius: 10px; background: var(--ink); font: 500 1rem var(--f-mono); color: var(--mist-dim); transition: all .15s; }
.scale input:checked + span { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 0 0 3px rgba(46, 142, 245, .3), 0 0 20px rgba(46, 142, 245, .5); }
.scale__ends { display: flex; justify-content: space-between; font-size: .78rem; }

.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .86rem; color: var(--mist-dim); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal); }

.form-error { color: var(--danger); font-size: .9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 600 1rem/1 var(--f-text); text-decoration: none; padding: .95rem 1.4rem; min-height: 50px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: #fff; color: var(--ink); box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .7); }
.btn--primary:hover, .btn--primary:focus-visible { background: #fff; color: var(--ink); box-shadow: 0 0 0 4px rgba(46, 142, 245, .28), 0 0 32px rgba(46, 142, 245, .55); outline: none; }
.btn--primary:active { background: var(--signal); color: #fff; box-shadow: 0 0 0 5px rgba(46, 142, 245, .35), 0 0 44px rgba(46, 142, 245, .8); }
.btn--primary[disabled] { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--mist); border-color: var(--steel); }
.btn--ghost:hover { border-color: var(--signal); }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #04210f; font-size: 1.05rem; padding-inline: 1.6rem; }
.btn--wa:hover { filter: brightness(1.06); }

.done { display: grid; gap: .8rem; justify-items: start; }
.done img { filter: invert(1); }
.done:focus { outline: none; }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--band { background: linear-gradient(180deg, var(--ink), var(--deep) 30%, var(--deep) 70%, var(--ink)); border-block: 1px solid color-mix(in srgb, var(--steel) 55%, transparent); }
.section__head { display: grid; gap: .8rem; margin-bottom: 2rem; max-width: 760px; }

/* Webinars */
.webinars { display: grid; gap: 1rem; }
@media (min-width: 860px) { .webinars { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; } .webinar--featured { grid-row: span 2; } }
.webinar { position: relative; display: grid; gap: .9rem; align-content: start; padding: 1.4rem; border-radius: calc(var(--r) + 4px); border: 1px solid var(--steel); background: var(--deep); min-width: 0; }
.webinar--featured { background: radial-gradient(120% 80% at 100% 0%, rgba(46, 142, 245, .28), transparent 60%), linear-gradient(180deg, var(--navy), var(--deep)); border-color: color-mix(in srgb, var(--signal) 60%, var(--steel)); padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.webinar--featured h3 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.webinar__top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.tag { font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist-dim); }
.badge { --c: 232, 240, 248; display: inline-flex; align-items: center; gap: .5rem; font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--c)); background: rgba(var(--c), .1); border: 1px solid rgba(var(--c), .45); padding: .42rem .7rem .42rem .6rem; border-radius: 999px; box-shadow: 0 0 18px rgba(var(--c), .25); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 0 0 rgba(var(--c), .7); animation: badge-pulse 2s ease-out infinite; }
@keyframes badge-pulse { 70% { box-shadow: 0 0 0 7px rgba(var(--c), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--c), 0); } }
.badge--live { --c: 60, 207, 145; }   /* verde: el más próximo, activo */
.badge--soon { --c: 245, 185, 66; }   /* ámbar: próximos */
.webinar__badges { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.badge--rec { --c: 245, 185, 66; text-decoration: none; }   /* ámbar: grabación (sin pulso) */
.badge--rec::before { animation: none; }
a.badge--rec:hover { background: rgba(var(--c), .2); }
.webinar p { color: var(--mist-dim); }
.when { display: grid; gap: .35rem; font-family: var(--f-mono); font-size: .86rem; font-variant-numeric: tabular-nums; padding: .8rem .9rem; border-radius: 10px; background: color-mix(in srgb, var(--ink) 70%, transparent); border: 1px solid color-mix(in srgb, var(--steel) 70%, transparent); }
.when div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.when div > span:first-child { color: var(--mist-dim); }
.webinar .btn { justify-self: start; margin-top: .3rem; }
.webinar .btn[aria-disabled="true"] { background: transparent; color: var(--mist-dim); border-color: var(--steel); cursor: default; }

/* Recurso */
.recurso { display: grid; gap: 2rem; }
.recurso__copy { display: grid; gap: 1rem; align-content: start; min-width: 0; }
@media (min-width: 900px) { .recurso { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; align-items: center; } }
.ticks { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }

/* Contacto */
.contacto { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 860px) { .contacto { grid-template-columns: 1fr auto; } }

.footer { border-top: 1px solid color-mix(in srgb, var(--steel) 55%, transparent); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .88rem; }

.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #04210f; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }

/* Modal */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(1.2rem, 4vw, 1.8rem); border: 1px solid var(--steel); border-radius: 18px; background: linear-gradient(180deg, var(--navy), var(--deep)); color: var(--mist); overflow: auto; }
.modal::backdrop { background: rgba(2, 6, 23, .78); backdrop-filter: blur(4px); }
.modal__close { position: sticky; top: 0; float: right; margin: -.4rem -.4rem 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--steel); background: var(--ink); color: var(--mist); font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 1; }
.cal { display: flex; flex-wrap: wrap; gap: .5rem; }
.gform__fields { display: grid; gap: 1.05rem; }
.modal .when { margin-top: .4rem; }
.desc { display: grid; gap: .7rem; font-size: .93rem; color: var(--mist-dim); padding-bottom: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--steel) 70%, transparent); }
.desc ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.desc strong { color: var(--mist); font-weight: 600; }
.field small { font-size: .8rem; }
select { width: 100%; font: inherit; color: var(--mist); background: var(--ink); border: 1px solid var(--steel); border-radius: 10px; padding: .75rem .85rem; min-height: 48px; }
select:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.field.is-invalid select { border-color: var(--danger); }
.cal a { font-size: .9rem; }

/* ---------- Contenido sumado de la maqueta ---------- */
/* Números en el hero */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .4rem 0 0; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; padding-top: .8rem; border-top: 1px solid var(--steel); min-width: 0; }
.stats dd { margin: 0; font: 500 clamp(1.6rem, 5vw, 2.2rem)/1 var(--f-text); letter-spacing: -.03em; color: var(--mist); font-variant-numeric: tabular-nums; }
.stats dt { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.video__play { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--signal); display: grid; place-items: center; color: var(--mist); }

/* Recurso: capítulos y tapa del ebook */
.chapters { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.6rem; }
.chapters li { display: flex; flex-direction: column; gap: .35rem; padding-top: .8rem; border-top: 1px solid var(--steel); }
.chapters__n { font: 500 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
@media (max-width: 420px) { .chapters { grid-template-columns: 1fr; } }
.panel--book { padding-top: 0; overflow: hidden; }
.cover { position: relative; overflow: hidden; margin: 0 calc(-1 * clamp(1.2rem, 3.5vw, 1.8rem)) 1.4rem; padding: 1.4rem clamp(1.2rem, 3.5vw, 1.8rem) 1.6rem; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; background: radial-gradient(120% 120% at 100% 0%, rgba(46, 142, 245, .35), transparent 55%), var(--ink); border-bottom: 1px solid var(--steel); }
.cover img { position: relative; z-index: 1; height: 22px; width: auto; align-self: flex-start; }
.cover__mark { position: absolute; width: 240px; aspect-ratio: 1; right: -70px; top: -60px; background: var(--mist); -webkit-mask: url("/techweek/assets/img/vyra-iso.png") center / contain no-repeat; mask: url("/techweek/assets/img/vyra-iso.png") center / contain no-repeat; opacity: .09; }
.cover__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .5rem; }
.cover__k { font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist-dim); }
.cover__t { font: 700 clamp(1.6rem, 3.4vw, 2rem)/1.05 var(--f-display); letter-spacing: -.015em; }
.cover__t span { color: var(--mist-dim); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* Quiénes somos */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1.6rem 1.4rem; margin: 0 0 2.6rem; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { display: flex; flex-direction: column; gap: .45rem; padding-top: 1rem; border-top: 1px solid var(--steel); }
.facts div:last-child { border-top-color: var(--signal); }
.facts dd { order: -1; margin: 0; font: 500 clamp(1.9rem, 6vw, 2.9rem)/1 var(--f-text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts dt { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.facts p { font-size: .92rem; font-weight: 300; color: var(--mist-dim); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1rem; }
.pillar { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border: 1px solid var(--steel); border-radius: calc(var(--r) + 4px); background: var(--deep); }
.pillar__k { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.pillar h3 { font-size: 1.3rem; }
.pillar p:last-child { font-weight: 300; color: var(--mist-dim); }
.utn { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 1.2rem 1.5rem; border-left: 3px solid var(--signal); background: var(--signal-soft); border-radius: 0 var(--r) var(--r) 0; }
.utn { padding: 1.4rem 1.6rem; }
.utn p { max-width: none; text-wrap: pretty; color: var(--mist-dim); font-weight: 300; font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.5; }
.utn strong { color: var(--mist); font-weight: 500; }

/* Contacto */
.section--contact { background: radial-gradient(90% 120% at 100% 100%, rgba(46, 142, 245, .18), transparent 60%), var(--ink); border-top: 1px solid color-mix(in srgb, var(--steel) 55%, transparent); }
.contacto__copy { display: grid; gap: .8rem; }

/* ---------- Animaciones al hacer scroll ---------- */
section[id] { scroll-margin-top: var(--head, 72px); }
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
/* Al llegar a una sección desde el menú, su título se ilumina un instante */
.section__head.is-target h2, .hero__copy.is-target h1 { animation: arrive 1.2s ease-out; }
@keyframes arrive { 0% { text-shadow: 0 0 0 transparent; } 30% { text-shadow: 0 0 28px rgba(46, 142, 245, .55); } 100% { text-shadow: 0 0 0 transparent; } }
.webinar, .pillar { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
@media (hover: hover) {
  .webinar:hover, .pillar:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--signal) 70%, var(--steel)); box-shadow: 0 18px 40px -24px rgba(46, 142, 245, .55); }
}

/* ---------- Intro de Vyra ---------- */
.vintro { display: none; }
html.intro .vintro {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(60% 50% at 50% 45%, rgba(30, 58, 102, .55), transparent 70%), var(--ink);
  transition: opacity .65s ease, visibility .65s;
  animation: vintro-failsafe .5s 4s forwards; /* si el JS no corre, se va sola */
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
@keyframes vintro-failsafe { to { opacity: 0; visibility: hidden; } }
.vintro canvas { position: absolute; inset: 0; }
.vintro__center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; transition: transform .65s cubic-bezier(.6, 0, .2, 1), opacity .5s ease; }
.vintro__mark { position: relative; width: clamp(96px, 26vw, 132px); aspect-ratio: 1; margin-bottom: .6rem; animation: vintro-glow 1.1s .85s ease-out both; }
.vintro__mark::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; border: 1px solid rgba(46, 142, 245, .22); border-top-color: var(--signal); border-right-color: rgba(46, 142, 245, .55); animation: vintro-spin 1.3s linear infinite, vintro-fade .5s ease both; }
.vintro__mark::after { content: ""; position: absolute; inset: -40%; border-radius: 50%; border: 1px dashed rgba(232, 240, 248, .08); animation: vintro-spin 9s linear infinite reverse; }
.vintro .q, .vintro__scan {
  position: absolute; inset: 0;
  -webkit-mask: url("/techweek/assets/img/vyra-iso.png") center / 128% no-repeat; mask: url("/techweek/assets/img/vyra-iso.png") center / 128% no-repeat;
}
.vintro .q { background: linear-gradient(135deg, #e8f0f8 0%, #8fc0fb 45%, var(--signal) 100%); opacity: 0; animation: vintro-assemble .85s cubic-bezier(.2, .85, .25, 1) forwards; }
.vintro .q1 { clip-path: inset(0 50% 50% 0); --fx: -70px; --fy: -70px; --fr: -40deg; }
.vintro .q2 { clip-path: inset(0 0 50% 50%); --fx: 70px; --fy: -70px; --fr: 40deg; animation-delay: .07s; }
.vintro .q3 { clip-path: inset(50% 50% 0 0); --fx: -70px; --fy: 70px; --fr: 40deg; animation-delay: .14s; }
.vintro .q4 { clip-path: inset(50% 0 0 50%); --fx: 70px; --fy: 70px; --fr: -40deg; animation-delay: .21s; }
@keyframes vintro-assemble {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.6); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.vintro__scan { background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%) 130% 0 / 260% 100% no-repeat; animation: vintro-scan .8s 1s ease-in-out forwards; }
@keyframes vintro-scan { to { background-position: -30% 0; } }
@keyframes vintro-glow { 0% { filter: drop-shadow(0 0 0 transparent); } 45% { filter: drop-shadow(0 0 22px rgba(46, 142, 245, .9)); } 100% { filter: drop-shadow(0 0 10px rgba(46, 142, 245, .45)); } }
@keyframes vintro-spin { to { transform: rotate(360deg); } }
@keyframes vintro-fade { from { opacity: 0; } }
.vintro__logo { height: 28px; width: auto; opacity: 0; animation: vintro-up .6s .55s ease-out forwards; }
.vintro__line { display: flex; align-items: center; gap: .5rem; min-height: 1.2em; width: min(290px, 86vw); justify-content: flex-start; white-space: nowrap; font: 400 .78rem/1 var(--f-mono); letter-spacing: .08em; color: var(--mist-dim); opacity: 0; animation: vintro-up .5s .3s ease-out forwards; }
.vintro__prompt { color: var(--signal); }
.vintro__caret { width: .5em; height: 1em; background: var(--signal); animation: vintro-blink .9s steps(1) infinite; }
@keyframes vintro-blink { 50% { opacity: 0; } }
.vintro__load { display: flex; align-items: center; gap: .7rem; width: min(290px, 86vw); opacity: 0; animation: vintro-up .5s .4s ease-out forwards; }
.intro__bar { flex: 1; width: auto; height: 2px; background: rgba(232, 240, 248, .12); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--signal), #e8f0f8); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--signal); }
.intro__pct { font: 500 .72rem/1 var(--f-mono); color: var(--mist); font-variant-numeric: tabular-nums; min-width: 4ch; }
@keyframes vintro-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vintro__skip { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 240, 248, .35); opacity: 0; animation: vintro-fade .5s 1s forwards; }
.vintro.is-out { opacity: 0; visibility: hidden; }
.vintro.is-out .vintro__center { transform: scale(1.35); opacity: 0; }
html.intro .wa-float { opacity: 0; }

/* Encabezado del evento: fecha y lugar */
.eyebrow--event { flex-wrap: wrap; row-gap: .35rem; }
.eyebrow__sep { color: var(--mist-dim); }
@media (max-width: 440px) {
  .eyebrow__sep { display: none; }
  .eyebrow--event span:last-child { flex-basis: 100%; padding-left: 1rem; color: var(--mist-dim); }
}
.hero__copy .lede strong { color: var(--mist); font-weight: 500; }

/* Sorteo: premio y bases */
.prize { display: grid; gap: 1rem; margin-top: .4rem; }
.prize__title { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.prize__steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: .55rem; }
.prize__steps li { counter-increment: paso; position: relative; padding: .85rem 1rem .85rem 3.1rem; border: 1px solid var(--steel); border-radius: var(--r); background: color-mix(in srgb, var(--deep) 80%, transparent); color: var(--mist-dim); font-weight: 300; line-height: 1.45; }
.prize__steps li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 1rem; top: .9rem; font: 500 .8rem/1 var(--f-mono); color: var(--signal); }
.prize__steps strong { color: var(--mist); font-weight: 500; }
.rules { display: grid; gap: .55rem; padding: 1rem 1.1rem; border-left: 3px solid var(--signal); border-radius: 0 var(--r) var(--r) 0; background: var(--signal-soft); color: var(--mist-dim); font-weight: 300; }
.rules__k { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.rules ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.rules strong { color: var(--mist); font-weight: 500; }
.rules__date { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; padding-top: .5rem; border-top: 1px solid color-mix(in srgb, var(--signal) 25%, transparent); }
.rules__date span { font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.req-hint { margin: -.3rem 0 0; padding: .7rem .85rem; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent); background: var(--signal-soft); color: var(--mist); font-size: .88rem; line-height: 1.45; }
.rules__date em { flex-basis: 100%; font-style: normal; color: var(--mist-dim); }
/* En celular, atajo al formulario (en escritorio el formulario ya está al lado) */
.hero__jump { justify-self: start; }
@media (min-width: 940px) { .hero__jump { display: none; } }
#sorteo-panel { scroll-margin-top: var(--head, 72px); }

/* El globito de WhatsApp no tapa el pie de página en celular */
@media (max-width: 600px) { .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }

/* Textos del sorteo y aviso de privacidad */
.hero__kicker { font: 700 clamp(1.15rem, 2.4vw, 1.45rem)/1.2 var(--f-display); color: var(--signal); margin-top: -.3rem; }
.prize__intro { color: var(--mist-dim); font-weight: 300; max-width: 60ch; }
.rules__ig { font-size: .92rem; }
.rules__ig a { color: var(--mist); font-weight: 500; }
.small { font-size: .85rem; }
.privacy-note { margin: -.3rem 0 0; text-align: center; font-size: .8rem; color: var(--mist-dim); }
.privacy-note a { color: var(--mist-dim); text-decoration: underline; text-underline-offset: 2px; }
.privacy-note a:hover { color: var(--mist); }
.badge--past { --c: 157, 177, 202; }   /* gris: ya pasó */
.badge--past::before { animation: none; }
.webinar--past { opacity: .62; }
.webinar--past:hover { transform: none; box-shadow: none; }

/* ---------- Legibilidad ----------
   Tamaño mínimo cómodo, texto en Regular (la Light se veía finita sobre fondo
   oscuro) y etiquetas de código un poco más grandes y menos espaciadas. */
:root { --mist-dim: #b6c6da; }
body { text-rendering: optimizeLegibility; }

/* Texto corrido: Regular en vez de Light */
.lede, .facts p, .pillar p:last-child, .utn p, .prize__steps li, .rules, .prize__intro { font-weight: 400; }

/* Etiquetas en mayúsculas (estilo código) */
.eyebrow { font-size: .8rem; letter-spacing: .1em; }
.tag, .stats dt, .chapters__n, .cover__k, .facts dt, .pillar__k, .rules__k, .rules__date span { font-size: .78rem; letter-spacing: .08em; line-height: 1.35; }
.badge { font-size: .76rem; letter-spacing: .08em; }
.video__empty { font-size: .85rem; }
.prize__steps li::before { font-size: .85rem; }

/* Formularios */
.field > label, .field > legend { font-size: 1rem; }
.chip span { font-size: .95rem; }
.field small { font-size: .88rem; line-height: 1.45; }
.scale__ends { font-size: .85rem; }
.check { font-size: .92rem; }
/* Casilla de aceptación sin tildar: se marca en rojo y tiembla un poco */
.check.is-invalid span { color: var(--danger); }
.check.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 3px; }
.check.is-invalid { animation: nudge .35s ease-in-out; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .check.is-invalid { animation: none; } }
.form-error { font-size: .95rem; }
.req-hint { font-size: .95rem; }
.privacy-note { font-size: .88rem; }
.small { font-size: .92rem; }

/* Webinars, datos y pie */
.when { font-size: .92rem; }
.desc { font-size: 1rem; }
.facts p { font-size: 1rem; }
.rules__ig { font-size: 1rem; }
.cal a { font-size: .95rem; }
.footer__inner { font-size: .95rem; }
.jump a { font-size: .92rem; }
/* Menú deslizable: degradé en el borde donde hay más secciones */
.jump.fade-r { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.jump.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%); mask-image: linear-gradient(to right, transparent, #000 18%); }
.jump.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
/* Contacto: botón de WhatsApp propio */
.contacto__wa { justify-self: start; margin-top: .4rem; }
@media (max-width: 600px) { .jump a { font-size: .9rem; } }

/* Intro */
.vintro__line { font-size: .86rem; }
.intro__pct { font-size: .8rem; }
.vintro__skip { font-size: .74rem; color: rgba(232, 240, 248, .5); }

/* ---------- Quiénes somos: mapa de nodos con Vyra al centro ----------
   Basado en el mapa de la presentación "IA360 en breve". */
:root { --sel: #e8489a; --sel-soft: rgba(232, 72, 154, .25); }
.nmap { position: relative; scroll-margin-top: var(--head, 72px); height: clamp(560px, 56vw, 700px); border: 1px solid var(--steel); border-radius: calc(var(--r) + 6px); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 57, 99, .55), transparent 75%), var(--ink); }
.nsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nmap__hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; padding: .4rem .8rem; border-radius: 999px; background: rgba(2, 6, 23, .7);
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; color: var(--mist-dim); white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.nmap.has-panel .nmap__hint { opacity: 0; }

/* líneas */
.nsvg .lnk { fill: none; stroke: rgba(75, 140, 238, .55); stroke-width: 2.2; }
.nsvg .lnk.flow { stroke-dasharray: 3 11; stroke-linecap: round; stroke-width: 3; stroke: rgba(111, 168, 255, .85); animation: nflow 2.4s linear infinite; }
.nsvg .lnk.base { stroke: rgba(75, 140, 238, .22); stroke-width: 1.6; }
.nsvg .lnk.c { stroke: rgba(75, 140, 238, .45); stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .7s cubic-bezier(.22, .85, .26, 1), opacity .35s ease; }
.nsvg .lnk.c.open { stroke-dashoffset: 0; opacity: 1; }
.nsvg .xl { fill: none; stroke: var(--sel); stroke-width: 2.4; stroke-dasharray: 4 9; stroke-linecap: round; opacity: 0; pointer-events: none; transition: opacity .35s ease, stroke-width .3s; animation: nflow 2.8s linear infinite; }
.nsvg.showx .xl.vis { opacity: .55; }
.nsvg .xl.vis.on { opacity: 1; stroke-width: 3.4; stroke-dasharray: 9 7; }
@keyframes nflow { to { stroke-dashoffset: -40; } }

/* nodos */
.nsvg .node { cursor: pointer; outline: none; }
.nsvg .pop { transform-box: fill-box; transform-origin: center; }
.nmap.on .nsvg .node.area .pop, .nmap.on .nsvg .node.hub .pop { animation: nnodein .7s cubic-bezier(.2, .85, .26, 1) both; animation-delay: calc(.15s + var(--n, 0) * .09s); }
@keyframes nnodein { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
.nsvg .ring { fill: rgba(2, 6, 23, .94); stroke: #4b8cee; stroke-width: 2.4; transition: fill .3s, stroke .3s, stroke-width .3s; }
.nsvg .halo { fill: none; stroke: rgba(75, 140, 238, 0); stroke-width: 10; transition: stroke .3s; }
.nsvg .node.area .ring { filter: drop-shadow(0 0 12px rgba(75, 140, 238, .45)); }
.nsvg .node.area.open .ring { fill: rgba(30, 58, 102, .92); }
.nsvg .node:hover .ring, .nsvg .node:focus-visible .ring { stroke: #8db8ff; stroke-width: 3.2; }
.nsvg .node:hover .halo, .nsvg .node:focus-visible .halo { stroke: rgba(75, 140, 238, .25); }
.nsvg .node.sel .ring { stroke: var(--sel); stroke-width: 3.4; filter: drop-shadow(0 0 14px rgba(232, 72, 154, .55)); }
.nsvg .node.sel .halo { stroke: var(--sel-soft); }
.nsvg text { pointer-events: none; text-anchor: middle; }
.nsvg .alabel { font: 700 20px var(--f-display); fill: #fff; }
.nsvg .asub { font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; fill: #8fb8f5; }
.nsvg .tgl { fill: #4b8cee; stroke: var(--ink); stroke-width: 3; }
.nsvg .tglt { font: 700 16px var(--f-text); fill: var(--ink); }
.nsvg .node.area.open .tgl { fill: var(--sel); }
.nsvg .node.area.open .tglt { fill: #fff; }
.nsvg .plabel { font: 500 16px var(--f-text); fill: #eaf0f7; paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; }
.nsvg .plabel.big { font: 700 21px var(--f-display); fill: #fff; }
.nsvg .pdot { fill: #4b8cee; opacity: .9; }
.nsvg .node.child { transition: transform .75s cubic-bezier(.22, .85, .26, 1), opacity .4s ease; }
.nsvg .node.child:not(.open) { opacity: 0; pointer-events: none; }
.nsvg .node.child .ring { stroke-width: 2; }
.nsvg .node.person .ring { stroke-width: 2.6; }
.nsvg.focus .node:not(.hl), .nsvg.focus .lnk:not(.hl) { opacity: .2; }
.nsvg.focus .node.child:not(.open) { opacity: 0; }
.nsvg .orbit { fill: none; stroke: rgba(111, 168, 255, .4); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
.nsvg .orbit.a { animation: nspin 70s linear infinite; }
.nsvg .orbit.b { animation: nspin 110s linear infinite reverse; stroke: rgba(232, 72, 154, .35); }
@keyframes nspin { to { transform: rotate(360deg); } }
.nsvg .hubring { fill: url(#nhub); stroke: #4b8cee; stroke-width: 2.6; filter: drop-shadow(0 0 22px rgba(75, 140, 238, .6)); }
.nsvg .node.hub.sel .hubring { stroke: var(--sel); filter: drop-shadow(0 0 22px rgba(232, 72, 154, .55)); }
.nsvg .hlabel { font: 700 26px var(--f-display); fill: #fff; }
.nsvg .hsub { font: 500 13px var(--f-mono); letter-spacing: .2em; fill: #8fb8f5; }
.nsvg .pulse { fill: none; stroke: rgba(75, 140, 238, .5); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: npulse 3.2s ease-out infinite; }
@keyframes npulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.55); opacity: 0; } }
/* en celular el mapa se dibuja en vertical y con letras más grandes */
.nsvg.compact .alabel { font-size: 28px; }
.nsvg.compact .asub { font-size: 14.5px; }
.nsvg.compact .tglt { font-size: 20px; }
.nsvg.compact .plabel { font-size: 25px; stroke-width: 7px; }
.nsvg.compact .plabel.big { font-size: 31px; }
.nsvg.compact .hlabel { font-size: 34px; }
.nsvg.compact .hsub { font-size: 17px; }

/* panel de detalle: a la derecha en escritorio, desde abajo en celular */
.npanel { position: absolute; right: 14px; top: 14px; bottom: 14px; width: min(380px, 40%); z-index: 3; overflow: auto; overscroll-behavior: contain;
  padding: 1.3rem 1.3rem 1.5rem; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .14); color: var(--mist);
  background: rgba(2, 6, 23, .88); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  transform: translateX(112%); opacity: 0; visibility: hidden; transition: transform .5s cubic-bezier(.22, .85, .26, 1), opacity .3s ease, visibility .5s; }
.npanel.on { transform: none; opacity: 1; visibility: visible; }
.npanel h3 { font-size: 1.4rem; margin: .5rem 0 .7rem; padding-right: 2rem; }
.npanel p { margin: 0; color: var(--mist-dim); line-height: 1.55; }
.npanel p + p { margin-top: .6rem; }
.npanel .ncrumb { font: 500 .76rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8fb8f5; padding-right: 2.4rem; }
.npanel .nsec { margin-top: 1.1rem; display: grid; gap: .45rem; }
.npanel .nlbl { font: 500 .76rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.npanel .nx { position: absolute; right: .8rem; top: .8rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--steel); background: rgba(255, 255, 255, .06); color: var(--mist); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.npanel .nx:hover { background: var(--sel); border-color: var(--sel); }
.nchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.nchips span { border: 1px solid rgba(75, 140, 238, .55); color: var(--mist); font-size: .88rem; padding: .3rem .7rem; border-radius: 999px; }
.ngo { display: block; width: 100%; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; color: var(--mist);
  font: inherit; padding: .65rem .8rem; cursor: pointer; transition: background .2s, border-color .2s; }
.ngo:hover, .ngo:focus-visible { background: rgba(75, 140, 238, .18); border-color: rgba(75, 140, 238, .6); }
.ngo b { display: block; font-weight: 500; font-size: .98rem; line-height: 1.3; }
.ngo span { display: block; font-size: .88rem; line-height: 1.4; color: var(--mist-dim); margin-top: .15rem; }
.ngo.x2 b::before { content: "\2194  "; color: var(--sel); }
.nperson { display: flex; align-items: center; gap: .9rem; margin: .6rem 0 .2rem; }
.nperson img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid #4b8cee; flex: none; }
.nperson h3 { margin: 0; padding-right: 1.6rem; }
.nperson .nrole { color: #8fb8f5; font-size: .92rem; margin-top: .2rem; }
.nquote { margin: 1rem 0 0; padding: .9rem 1rem; border-left: 3px solid var(--signal); border-radius: 0 10px 10px 0; background: var(--signal-soft); }
.nquote p { color: var(--mist); font-size: .95rem; }
.nquote cite { display: block; margin-top: .5rem; font-style: normal; font-size: .85rem; color: #8fb8f5; }

.nbar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-top: .9rem; }
.nlegend { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; font-size: .9rem; color: var(--mist-dim); }
.nlegend i { display: inline-block; vertical-align: middle; margin-right: .45rem; }
.nlegend .d1 { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #4b8cee; }
.nlegend .d2 { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #4b8cee; background: rgba(75, 140, 238, .25); }
.nlegend .d3 { width: 22px; height: 0; border-top: 2px dashed var(--sel); }
.nctl { display: flex; flex-wrap: wrap; gap: .5rem; }
.nctl button { background: rgba(255, 255, 255, .06); color: var(--mist); border: 1px solid var(--steel); border-radius: 999px; padding: .55rem 1rem; font: 500 .92rem/1 var(--f-text); cursor: pointer; transition: background .2s, border-color .2s; }
.nctl button:hover { border-color: var(--signal); }
.nctl button[aria-pressed="true"] { background: var(--sel); border-color: var(--sel); color: #fff; }

@media (max-width: 760px) {
  .nmap { height: min(600px, 78vh); }
  .npanel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 68vh; z-index: 60; border-radius: 18px 18px 0 0;
    padding: 1.4rem max(1.1rem, env(safe-area-inset-right, 0px)) calc(1.4rem + env(safe-area-inset-bottom, 0px)) max(1.1rem, env(safe-area-inset-left, 0px));
    transform: translateY(105%); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .7); }
  .npanel { max-height: 56vh; }
  .npanel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
  .nctl button { padding: .5rem .85rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nsvg .lnk.flow, .nsvg .xl, .nsvg .orbit, .nsvg .pulse { animation: none !important; }
}
/* Mapa de Nosotros: subtítulos de las áreas más grandes (va al final para ganarle a las reglas del mapa) */
.nsvg .asub { font-size: 13.5px; }
.nsvg.compact .asub { font: 500 27px var(--f-text); letter-spacing: 0; text-transform: none; fill: #a9cbf8; }
.nsvg.compact .alabel { font-size: 30px; }
/* Aviso cuando la persona llega desde /recurso sin haber pedido la guía */
#form-recurso { scroll-margin-top: calc(var(--head, 72px) + 12px); }
.recurso__aviso { margin: 0 0 1rem; padding: .75rem .9rem; border: 1px solid var(--signal); border-radius: var(--r); background: var(--signal-soft); color: var(--mist); font-size: 1rem; line-height: 1.4; }
/* En pantallas angostas el cartel del mapa usa una frase más corta para no cortarse */
.nmap__hint .hint-short { display: none; }
@media (max-width: 380px) { .nmap__hint .hint-full { display: none; } .nmap__hint .hint-short { display: inline; } }
/* Video propio del sorteo (vertical, sin sonido, en loop) */
.video--file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--deep); }
.video--file.video--vertical { width: min(100%, 340px); margin-inline: auto; }
.video__toggle { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(232, 240, 248, .35); background: rgba(2, 6, 23, .6); color: var(--mist); display: grid; place-items: center; cursor: pointer; opacity: .8; transition: opacity .2s; }
.video__toggle:hover, .video__toggle:focus-visible { opacity: 1; }
.video__toggle .i-pausa { display: none; }
.video--file.is-playing .video__toggle .i-pausa { display: inline; }
.video--file.is-playing .video__toggle .i-play { display: none; }
/* Fechas de los webinars: la hora no se corta; en celular va debajo del día */
.when__hora { white-space: nowrap; }
@media (max-width: 600px) { .when__hora { display: block; } .when__sep { display: none; } .when { gap: .8rem; } .when div { row-gap: .25rem; } }
/* Video de la demo: en celular solo el video (entre la info y el formulario);
   en notebook, franja a lo ancho debajo de las dos columnas, con el texto al lado */
.demo { min-width: 0; }
.demo__copy { display: none; }
@media (min-width: 940px) {
  .hero__copy { grid-column: 1; grid-row: 1; }
  #sorteo-panel { grid-column: 2; grid-row: 1; }
  .demo { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 320px minmax(0, 460px); justify-content: center; align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--steel); border-radius: calc(var(--r) + 6px); background: radial-gradient(70% 90% at 25% 50%, rgba(46, 142, 245, .16), transparent 70%), linear-gradient(180deg, var(--navy), var(--deep)); }
  .demo .video, .demo .video--file.video--vertical { width: 100%; margin: 0; }
  .demo__copy { display: grid; gap: 1rem; justify-items: start; }
  .demo__title { font: 700 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--f-display); margin: 0; }
  .demo__copy .muted { font-size: 1.08rem; line-height: 1.55; margin: 0; }
}
/* Sorteo cerrado: el aviso es corto, así que en notebook el video va debajo, en la columna derecha */
@media (min-width: 940px) {
  .hero__grid.is-closed { grid-template-rows: auto 1fr; }
  .hero__grid.is-closed .hero__copy { grid-row: 1 / span 2; }
  .hero__grid.is-closed .demo { grid-column: 2; grid-row: 2; align-self: start; grid-template-columns: minmax(0, 300px); justify-content: center; gap: 1.5rem; }
}
