/* GitHub Copilot Dev Days — tema "Studio" (rediseño completo) */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;

  --bg-deep: #070709;
  --bg-base: #0c0c10;
  --bg-raised: #12121a;
  --bg-card: #14141c;
  --bg-input: #0d1117;

  --border-subtle: #24242e;
  --border-default: #30303c;
  --border-strong: #3d3d4a;

  --text: #e8eaef;
  --text-muted: #9198a3;
  --text-dim: #6e7681;

  --accent: #a371f7;
  --accent-hover: #b87fff;
  --accent-muted: rgba(163, 113, 247, 0.22);

  --blue: #58a6ff;
  --blue-muted: rgba(88, 166, 255, 0.18);

  --green: #3fb950;
  --green-muted: rgba(63, 185, 80, 0.16);

  --amber: #d29922;

  --link-color: var(--blue);
  --link-hover: #79c0ff;

  --focus: #58a6ff;
  --header-h: 80px;

  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --layout-max: 1320px;
  --layout-pad-x: clamp(20px, 5vw, 56px);
  /* Ritmo vertical entre bloques (main grid, secciones) */
  --section-gap: 18px;
  --section-pad: clamp(16px, 2.4vw, 22px);
  --main-margin-y: clamp(14px, 2.5vw, 24px);
  --main-pad-bottom: clamp(28px, 4vw, 38px);
  --shadow-section: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 20px 56px rgba(0, 0, 0, 0.38);
  --header-shadow-y: 0 14px 48px rgba(0, 0, 0, 0.38);
  --surface-inset: rgba(255, 255, 255, 0.06);
  --cta-text-on-accent: #0c0c10;
  --nav-active-fg: #0a0a0e;
}

/* ——— Tema claro ——— */
html.theme-light {
  color-scheme: light;

  --bg-deep: #e8ecf3;
  --bg-base: #f0f4fa;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f6f8fc;

  --border-subtle: #d1d9e0;
  --border-default: #c1c9d1;
  --border-strong: #9aa4b2;

  --text: #1f2328;
  --text-muted: #59636e;
  --text-dim: #656d76;

  --accent: #8250df;
  --accent-hover: #6c3ac0;
  --accent-muted: rgba(130, 80, 223, 0.14);

  --blue: #0969da;
  --blue-muted: rgba(9, 105, 218, 0.12);

  --green: #1a7f37;
  --green-muted: rgba(26, 127, 55, 0.12);

  --amber: #9a6700;

  --link-color: #0969da;
  --link-hover: #0550ae;

  --focus: #0969da;

  --shadow-section: 0 6px 24px rgba(31, 35, 40, 0.07);
  --shadow-lift: 0 14px 40px rgba(31, 35, 40, 0.1);
  --header-shadow-y: 0 6px 28px rgba(31, 35, 40, 0.09);
  --surface-inset: rgba(255, 255, 255, 0.92);
  --cta-text-on-accent: #0c0c10;
  --nav-active-fg: #f6f8fc;
}

html.theme-light body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(130, 80, 223, 0.09), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(9, 105, 218, 0.07), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(26, 127, 55, 0.06), transparent);
}

html.theme-light ::selection {
  background: rgba(9, 105, 218, 0.22);
  color: var(--text);
}

/* Logo del header: asset blanco sobre transparente → visible en fondos claros */
html.theme-light .header-brand-logo {
  filter: brightness(0);
}

@media (hover: hover) and (pointer: fine) {
  html.theme-light .header-brand-logo-link:hover .header-brand-logo {
    filter: brightness(0) drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 40%, transparent));
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-base);
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(163, 113, 247, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(88, 166, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(63, 185, 80, 0.06), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: studio-ambient 36s ease-in-out infinite alternate;
  }
}

@keyframes studio-ambient {
  0% {
    opacity: 1;
    filter: saturate(1);
  }

  100% {
    opacity: 0.88;
    filter: saturate(1.15) hue-rotate(6deg);
  }
}

::selection {
  background: rgba(163, 113, 247, 0.35);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  min-height: var(--header-h);
  padding: 12px var(--layout-pad-x);
  border-bottom: 1px solid var(--border-default);
  background: rgba(18, 18, 26, 0.78);
  background: color-mix(in srgb, var(--bg-raised) 88%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 var(--surface-inset) inset,
    var(--header-shadow-y),
    0 0 80px color-mix(in srgb, var(--accent) 5%, transparent);
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 35%, transparent) 22%,
    color-mix(in srgb, var(--blue) 40%, transparent) 50%,
    color-mix(in srgb, var(--green) 25%, transparent) 78%,
    transparent 100%
  );
  opacity: 0.55;
}

.header-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  order: 1;
}

.header-brand-logo-link {
  flex-shrink: 0;
  display: flex;
  line-height: 0;
  text-decoration: none;
  border-radius: var(--r-md);
  color: inherit;
  background: var(--bg-input);
  box-shadow:
    0 0 0 1px var(--border-subtle),
    0 4px 16px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s var(--ease-out);
}

.header-brand-logo-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.header-brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--r-md);
  background: transparent;
  transition:
    transform 0.3s var(--ease-out),
    filter 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .header-brand-logo-link:hover {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent) 35%, var(--border-subtle)),
      0 8px 28px color-mix(in srgb, var(--accent) 22%, transparent);
  }

  .header-brand-logo-link:hover .header-brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 45%, transparent));
  }
}

.header-brand > div,
.header-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.header-title {
  font-family: var(--font-mono);
  font-size: clamp(11px, 2.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--text);
}

.header-title::first-letter {
  color: var(--green);
}

.header-subtitle {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-muted);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border-default));
}

.theme-toggle {
  order: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text-muted);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.2s var(--ease-spring);
}

.theme-toggle span {
  position: relative;
  top: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border-default));
    color: var(--accent-hover);
    background: var(--accent-muted);
    transform: scale(1.04);
  }
}

.theme-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--border-default));
  color: var(--blue);
  background: var(--blue-muted);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 20%, transparent);
}

.header-menu-toggle {
  display: none;
  order: 3;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text-muted);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header-menu-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--accent-hover);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .header-menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
  }
}

.header-menu-toggle:focus-visible,
a:focus-visible,
button:focus-visible,
.terminal-btn:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-nav a:focus-visible,
.terminal-btn:focus-visible {
  border-radius: var(--r-sm);
}

.event-image:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: var(--r-lg);
}

.site-nav {
  order: 4;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: min(960px, 100%);
  padding: 5px 6px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border-subtle));
  box-shadow:
    inset 0 1px 0 var(--surface-inset),
    0 6px 28px rgba(0, 0, 0, 0.22),
    0 0 40px color-mix(in srgb, var(--blue) 4%, transparent);
}

.site-nav[hidden] {
  display: none !important;
}

.site-nav a,
.terminal-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    transform 0.25s var(--ease-spring),
    box-shadow 0.25s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--text);
    background: linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 18%, transparent),
      color-mix(in srgb, var(--accent) 8%, transparent)
    );
    border-color: color-mix(in srgb, var(--accent) 38%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 15%, transparent);
  }
}

.site-nav a.active {
  color: var(--nav-active-fg);
  background: linear-gradient(135deg, #c4b5fd 0%, var(--accent) 42%, #7c3aed 55%, #58a6ff 100%);
  border-color: transparent;
  font-weight: 600;
  box-shadow:
    0 2px 14px rgba(163, 113, 247, 0.4),
    0 0 24px color-mix(in srgb, var(--blue) 18%, transparent);
}

html.theme-light .site-nav a.active {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.terminal-btn {
  cursor: pointer;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
}

@media (hover: hover) and (pointer: fine) {
  .terminal-btn:hover {
    color: var(--text);
    background: var(--accent-muted);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border-default));
    transform: translateY(-1px);
  }
}

/* ——— Layout ——— */
main {
  width: min(var(--layout-max), 100%);
  margin: var(--main-margin-y) auto;
  padding: 0 var(--layout-pad-x) var(--main-pad-bottom);
  display: grid;
  gap: var(--section-gap);
}

@media (prefers-reduced-motion: no-preference) {
  main > section {
    animation: section-rise 0.65s var(--ease-out) backwards;
  }

  main > section:nth-child(1) {
    animation-delay: 0.04s;
  }

  main > section:nth-child(2) {
    animation-delay: 0.1s;
  }

  main > section:nth-child(3) {
    animation-delay: 0.16s;
  }

  main > section:nth-child(4) {
    animation-delay: 0.22s;
  }

  main > section:nth-child(5) {
    animation-delay: 0.28s;
  }

  main > section:nth-child(n + 6) {
    animation-delay: 0.34s;
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border-default));
  background:
    radial-gradient(ellipse 100% 72% at 100% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
    radial-gradient(ellipse 85% 55% at -8% 102%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 52%),
    radial-gradient(ellipse 65% 42% at 50% 108%, color-mix(in srgb, var(--green) 9%, transparent), transparent 48%),
    var(--bg-card);
  padding: var(--section-pad);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    var(--shadow-section),
    0 0 48px color-mix(in srgb, var(--accent) 7%, transparent);
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  pointer-events: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 48%, var(--green) 100%);
  opacity: 0.95;
}

main > section:nth-child(3n + 1) {
  border-color: color-mix(in srgb, var(--accent) 16%, var(--border-default));
}

main > section:nth-child(3n + 2) {
  border-color: color-mix(in srgb, var(--blue) 18%, var(--border-default));
}

main > section:nth-child(3n) {
  border-color: color-mix(in srgb, var(--green) 14%, var(--border-default));
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

@media (hover: hover) and (pointer: fine) {
  section:hover {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--border-strong));
    transform: translateY(-3px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.07) inset,
      var(--shadow-lift),
      0 0 0 1px color-mix(in srgb, var(--blue) 24%, transparent),
      0 0 56px color-mix(in srgb, var(--accent) 16%, transparent),
      0 0 88px color-mix(in srgb, var(--green) 11%, transparent);
  }
}

section h2 {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-dim) 70%, var(--accent));
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.4;
  hyphens: auto;
}

section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 28rem);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 50%, var(--green) 100%);
  opacity: 0.88;
}

section h3 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 14px 0 8px;
  padding: 2px 0 2px 16px;
  color: color-mix(in srgb, var(--text) 92%, var(--blue));
  overflow-wrap: break-word;
  line-height: 1.38;
}

section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--blue) 52%, var(--green) 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
}

section p {
  margin-bottom: 10px;
  overflow-wrap: break-word;
  color: var(--text-muted);
}

section p:last-child {
  margin-bottom: 0;
}

section ul,
section ol {
  color: var(--text-muted);
}

section ul li::marker {
  color: var(--accent);
}

section ol li::marker {
  color: var(--blue);
  font-weight: 600;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link-color) 35%, transparent);
  text-underline-offset: 3px;
  overflow-wrap: break-word;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
  }
}

.session-title a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .session-title a:hover {
    color: var(--accent-hover);
  }
}

ul,
ol {
  padding-inline-start: 1.25em;
  margin-left: 0;
}

/* ——— Componentes ——— */
.ascii-divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin: 16px 0;
  opacity: 0.85;
}

.ascii-box {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border-default));
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    var(--bg-raised);
  padding: 16px 18px;
  margin-top: 4px;
  overflow-wrap: break-word;
  max-width: 100%;
  box-shadow:
    0 0 36px color-mix(in srgb, var(--blue) 5%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ascii-box:hover {
    border-color: color-mix(in srgb, var(--blue) 28%, var(--border-default));
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.2),
      0 0 40px color-mix(in srgb, var(--accent) 10%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.ascii-box-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.ascii-box ul {
  margin-top: 10px;
}

.block-note {
  margin-top: 15px;
}

.ascii-box p,
.ascii-box a {
  color: var(--text-muted);
}

.ascii-box a {
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a.register-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--border-default));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-input) 88%, var(--blue-muted)),
    var(--bg-input)
  );
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--link-color);
  text-align: center;
  max-width: 100%;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--blue) 8%, transparent);
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-spring);
}

a.register-cta:focus-visible {
  border-radius: var(--r-md);
}

@media (hover: hover) and (pointer: fine) {
  a.register-cta:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border-default));
    background: linear-gradient(
      165deg,
      var(--accent-muted),
      color-mix(in srgb, var(--bg-input) 70%, var(--accent-muted))
    );
    color: var(--link-hover);
    transform: translateY(-2px);
    box-shadow:
      0 8px 28px color-mix(in srgb, var(--accent) 18%, transparent),
      0 0 32px color-mix(in srgb, var(--blue) 12%, transparent);
  }
}

.session {
  position: relative;
  margin-top: 0;
  padding: 16px 16px 16px 24px;
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse 95% 80% at 100% 0%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 55%),
    var(--bg-raised);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border-subtle));
  transition:
    border-color 0.28s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.28s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .session:hover {
    border-color: color-mix(in srgb, var(--blue) 28%, var(--border-subtle));
    transform: translateX(3px);
    box-shadow: -4px 0 24px color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

.session::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, var(--accent) 0%, var(--blue) 50%, var(--green) 100%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}

.session + .session {
  margin-top: 10px;
}

.session-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: break-word;
}

.session-time,
.session-speaker,
.session-type {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.session-type {
  color: var(--text-muted);
}

.session-desc {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.session-desc p,
.session-desc li {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.session-desc ul,
.session-desc ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Cronograma / timeline del evento */
.event-timeline-section {
  margin-top: 0;
}

.timeline-intro {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.timeline-intro time {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
}

.event-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  position: relative;
}

.event-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 55%, var(--border-subtle)),
    color-mix(in srgb, var(--blue) 45%, var(--border-subtle)),
    color-mix(in srgb, var(--green) 50%, var(--border-subtle))
  );
  opacity: 0.85;
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--blue));
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  z-index: 1;
}

.timeline-item--break::before {
  background: var(--bg-raised);
  border-color: color-mix(in srgb, var(--amber) 55%, var(--border-default));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 28%, transparent);
}

.timeline-item--end::before {
  background: linear-gradient(145deg, var(--green), color-mix(in srgb, var(--green) 70%, var(--blue)));
}

.timeline-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 6px;
}

.timeline-time time {
  white-space: nowrap;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.timeline-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--link-color) 35%, transparent);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .timeline-title a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
  }
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* Destacado: web global GitHub Copilot Dev Days (recursos oficiales) */
.official-devdays-highlight {
  margin: 0;
  padding: 16px 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border-default));
  background:
    radial-gradient(ellipse 110% 100% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 52%),
    radial-gradient(ellipse 90% 80% at 0% 100%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 50%),
    var(--bg-raised);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 12px 40px color-mix(in srgb, var(--accent) 14%, transparent);
}

.official-devdays-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.official-devdays-text {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}

.official-devdays-text strong {
  color: var(--text);
  font-weight: 600;
}

a.official-devdays-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  color: var(--cta-text-on-accent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent));
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--border-strong));
  box-shadow:
    0 4px 20px color-mix(in srgb, var(--accent) 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
  transition:
    transform 0.25s var(--ease-spring),
    box-shadow 0.3s var(--ease-out),
    filter 0.2s var(--ease);
}

a.official-devdays-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  a.official-devdays-link:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
      0 8px 28px color-mix(in srgb, var(--accent) 38%, transparent),
      inset 0 1px 0 color-mix(in srgb, #fff 28%, transparent);
  }
}

html.theme-light a.official-devdays-link {
  color: #f6f8fc;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.speaker-grid {
  margin-top: 6px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.speaker-card {
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border-default));
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 100% 90% at 100% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 58%),
    radial-gradient(ellipse 80% 70% at 0% 100%, color-mix(in srgb, var(--green) 9%, transparent), transparent 52%),
    var(--bg-raised);
  padding: 18px;
  box-shadow: 0 0 36px color-mix(in srgb, var(--blue) 5%, transparent);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .speaker-card:hover {
    border-color: color-mix(in srgb, var(--blue) 38%, var(--border-default));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
    transform: translateY(-2px);
  }
}

.speaker-avatar {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border-default));
  margin-bottom: 12px;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.32),
    0 0 0 1px color-mix(in srgb, var(--blue) 12%, transparent);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .speaker-card:hover .speaker-avatar {
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.35),
      0 0 36px color-mix(in srgb, var(--accent) 15%, transparent);
  }
}

/* Franja de sesiones / rol: chips independientes (flex-wrap) */
.speaker-role {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin: 0 0 12px;
  max-width: 100%;
}

.speaker-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: color-mix(in srgb, var(--accent) 88%, var(--text));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 16%, transparent) 0%,
    color-mix(in srgb, var(--blue) 8%, transparent) 100%
  );
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border-default));
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent),
    0 1px 2px rgba(0, 0, 0, 0.12);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

html.theme-light .speaker-role-chip {
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent),
    0 1px 2px rgba(31, 35, 40, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .speaker-card:hover .speaker-role-chip {
    border-color: color-mix(in srgb, var(--blue) 35%, var(--border-default));
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent),
      0 2px 8px color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.speaker-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.speaker-topic {
  font-size: 0.9rem;
  color: var(--blue);
  margin-bottom: 8px;
  font-weight: 500;
}

.speaker-bio {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.speaker-links {
  margin-top: 14px;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.speaker-links a {
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Badges de lenguajes (Shields.io) */
.lang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin: 14px 0 0;
  padding: 0;
}

.lang-badges img {
  height: 28px;
  width: auto;
  display: block;
  vertical-align: middle;
}

footer {
  position: relative;
  margin-top: auto;
  padding: 24px var(--layout-pad-x) 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-default);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    var(--bg-deep);
}

footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(640px, 86%);
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 50%, transparent),
    var(--blue),
    color-mix(in srgb, var(--green) 70%, transparent),
    transparent
  );
  opacity: 0.65;
  pointer-events: none;
}

footer > div + div {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.9;
}

.event-image {
  display: block;
  width: min(720px, 100%);
  margin: 0 auto 18px;
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border-default));
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.48),
    0 0 0 1px color-mix(in srgb, var(--blue) 10%, transparent),
    0 0 60px color-mix(in srgb, var(--accent) 6%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.4s var(--ease-spring);
}

@media (hover: hover) and (pointer: fine) {
  .event-image:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-default));
    box-shadow:
      0 20px 56px rgba(0, 0, 0, 0.42),
      0 0 48px color-mix(in srgb, var(--accent) 18%, transparent),
      0 0 72px color-mix(in srgb, var(--blue) 12%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: scale(1.018) translateY(-2px);
  }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 9999;
  background: rgba(4, 4, 8, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  cursor: zoom-out;
}

@media (prefers-reduced-motion: no-preference) {
  .image-lightbox {
    animation: lightbox-fade 0.22s var(--ease-out) both;
  }
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.image-lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 88vh;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border-strong));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.65),
    0 0 80px color-mix(in srgb, var(--accent) 12%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

@media (prefers-reduced-motion: no-preference) {
  .image-lightbox img {
    animation: lightbox-pop 0.32s var(--ease-spring) both;
  }
}

@keyframes lightbox-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-open {
  overflow: hidden;
}

/* ——— Móvil: menú ——— */
body.mobile-nav header {
  padding: 12px 14px 14px;
  column-gap: 12px;
  row-gap: 10px;
}

body.mobile-nav .header-brand {
  flex: 1 1 auto;
  order: 1;
}

body.mobile-nav .theme-toggle {
  order: 2;
  margin-left: auto;
}

body.mobile-nav .header-menu-toggle {
  order: 3;
  margin-left: 0;
}

body.mobile-nav .header-brand-logo {
  width: 38px;
  height: 38px;
}

body.mobile-nav .header-menu-toggle {
  display: inline-flex;
}

body.mobile-nav .site-nav {
  order: 10;
  flex-basis: 100%;
  width: 100%;
  margin-left: 0;
  display: none;
  max-width: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px;
  border-radius: var(--r-lg);
}

body.mobile-nav header.menu-open .site-nav {
  display: flex;
}

body.mobile-nav .site-nav a,
body.mobile-nav .terminal-btn {
  text-align: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
}

body.mobile-nav .home-main {
  min-height: auto;
}

body.mobile-nav section {
  padding: 14px 16px;
}

body.mobile-nav .event-image {
  width: min(420px, 100%);
}

/* ——— Home ——— */
.home-main {
  min-height: auto;
  display: grid;
  align-content: start;
  justify-items: stretch;
}

.home-main > section,
.home-main > .ascii-divider {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.hero-center {
  text-align: center;
}

.hero-center > p {
  max-width: min(72ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(1.45rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(105deg, var(--text) 0%, #c4b5fd 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 8px;
}

.hero-event-date {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.4vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-muted) 85%, transparent), color-mix(in srgb, var(--blue-muted) 85%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border-default));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 8px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-event-date time {
  font-variant-numeric: tabular-nums;
}

.typing-line {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 16px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  color: var(--green);
  border-right: 2px solid var(--green);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(34, end) 1, blink-caret 0.85s step-end infinite;
}

.blink-cursor::after {
  content: "▍";
  margin-left: 4px;
  color: var(--accent);
  animation: blink-caret 0.75s step-end infinite;
}

.home-interactive {
  width: 100%;
}

.home-spotlight .spotlight-lead {
  color: var(--text-muted);
  margin-bottom: 4px;
  max-width: 62ch;
  line-height: 1.55;
}

.spotlight-brand {
  display: inline-block;
  margin-right: 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #e8eaef 0%, var(--accent) 38%, var(--blue) 72%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.spotlight-frame {
  position: relative;
  margin-top: 12px;
  border-radius: var(--r-lg);
  padding: 2px;
  overflow: hidden;
  isolation: isolate;
}

.spotlight-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--blue),
    var(--green),
    #c4b5fd,
    #58a6ff,
    var(--accent)
  );
  animation: spotlight-rotate 6s linear infinite;
  z-index: 0;
}

@keyframes spotlight-rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.spotlight-inner {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--r-lg) - 2px);
  background:
    radial-gradient(ellipse 85% 65% at 92% 18%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 75% 55% at 12% 88%, color-mix(in srgb, var(--green) 10%, transparent), transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 0%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 45%),
    var(--bg-card);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--border-subtle));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.spotlight-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.spotlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.spotlight-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border-default));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--bg-input) 92%, var(--accent-muted)),
    var(--bg-input)
  );
  animation: spotlight-chip 3s ease-in-out infinite;
}

.spotlight-chip:nth-child(2) {
  animation-delay: 0.4s;
}

.spotlight-chip:nth-child(3) {
  animation-delay: 0.8s;
}

.spotlight-chip:nth-child(4) {
  animation-delay: 1.2s;
}

.spotlight-chip:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes spotlight-chip {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--accent) 18%, var(--border-default));
    color: var(--text-muted);
    box-shadow: 0 0 0 transparent;
    transform: translateY(0);
  }

  35% {
    border-color: color-mix(in srgb, var(--blue) 55%, var(--border-default));
    color: var(--text);
    box-shadow:
      0 0 20px color-mix(in srgb, var(--accent) 35%, transparent),
      0 0 28px color-mix(in srgb, var(--blue) 18%, transparent);
    transform: translateY(-2px);
  }
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.5;
}

.spotlight-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: spotlight-dot 1.8s ease-in-out infinite;
}

@keyframes spotlight-dot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.55);
  }

  60% {
    transform: scale(1.2);
    box-shadow: 0 0 0 12px rgba(63, 185, 80, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0);
  }
}

.home-spotlight .spotlight-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #0c0c10;
  background: linear-gradient(135deg, #ddd6fe 0%, var(--accent) 48%, #7c3aed 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  animation: spotlight-cta-glow 2.4s ease-in-out infinite;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

@keyframes spotlight-cta-glow {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(163, 113, 247, 0.4);
  }

  50% {
    box-shadow: 0 6px 32px rgba(163, 113, 247, 0.65), 0 0 40px rgba(88, 166, 255, 0.2);
  }
}

@media (hover: hover) and (pointer: fine) {
  .home-spotlight .spotlight-cta:hover {
    color: #0c0c10;
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}

.home-spotlight .spotlight-cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.command-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.command-btn {
  cursor: pointer;
}

.terminal-output {
  margin-top: 12px;
  padding: 16px 18px;
  min-height: 64px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--green);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-input) 94%, var(--green-muted)),
    var(--bg-input)
  );
  border: 1px solid color-mix(in srgb, var(--green) 22%, var(--border-default));
  border-radius: var(--r-md);
  box-shadow:
    inset 0 1px 0 rgba(63, 185, 80, 0.08),
    0 0 32px color-mix(in srgb, var(--green) 5%, transparent);
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 34ch;
  }
}

@keyframes blink-caret {
  50% {
    border-right-color: transparent;
    opacity: 0.5;
  }
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  main {
    padding-inline: clamp(16px, 4vw, 28px);
  }
}

@media (max-width: 768px) {
  .header-title {
    letter-spacing: 0.02em;
  }

  body.mobile-nav .header-brand {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .speaker-grid {
    grid-template-columns: 1fr;
  }

  .speaker-avatar {
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .speaker-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  html,
  body {
    font-size: 15px;
  }

  main {
    margin: 16px auto;
    padding-bottom: 24px;
    gap: 14px;
  }

  section {
    padding: 16px;
    border-radius: var(--r-md);
  }

  section h2 {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  section h3 {
    font-size: 0.98rem;
    line-height: 1.42;
    margin-top: 14px;
  }

  .ascii-box {
    padding: 14px 14px;
  }

  .header-title {
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .header-subtitle {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  a.register-cta {
    display: block;
    width: 100%;
    padding: 14px 14px;
  }

  .home-spotlight .spotlight-cta {
    width: 100%;
  }

  .spotlight-inner {
    padding: 18px 16px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 7vw, 1.65rem);
  }

  .typing-line {
    white-space: normal;
    border-right-width: 0;
    animation: none;
    text-align: center;
  }

  .event-image {
    border-radius: var(--r-lg);
  }

  ul,
  ol {
    padding-inline-start: 1.15em;
  }
}

@media (max-width: 360px) {
  section {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}

@media print {
  body::before {
    display: none;
  }

  html,
  body {
    background: #fff;
    color: #111;
  }

  header,
  footer {
    position: static;
    display: block;
    background: #fff;
    color: #333;
    border-color: #ccc;
    box-shadow: none;
  }

  .header-menu-toggle {
    display: none !important;
  }

  .site-nav,
  .site-nav[hidden] {
    display: flex !important;
    flex-wrap: wrap;
    max-width: none;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  main,
  section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
  }

  section::before,
  .session::before,
  section h2::after,
  section h3::before,
  header::after,
  footer::before {
    display: none !important;
  }

  section h2 {
    border-bottom: 1px solid #ddd;
    color: #111;
  }

  section h2,
  .header-title,
  .session-title,
  .speaker-name {
    color: #111;
  }

  a {
    color: #0550ae;
  }

  .site-nav a,
  .terminal-btn {
    border: 1px solid #ccc;
    color: #111;
    background: #f6f6f6;
  }

  .hero-title {
    -webkit-text-fill-color: #111;
    color: #111;
    background: none;
  }

  .spotlight-brand {
    -webkit-text-fill-color: #111;
    color: #111;
    background: none;
  }

  .terminal-output {
    background: #f6f8fa;
    color: #24292f;
    border-color: #d0d7de;
  }

  .spotlight-frame::before {
    animation: none;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .spotlight-chip,
  .spotlight-pulse,
  .home-spotlight .spotlight-cta {
    animation: none;
  }

  .home-spotlight .spotlight-cta {
    color: #111;
    background: #eae6ff;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  aside.official-devdays-highlight,
  .official-devdays-highlight {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    background: #f6f8fa;
    color: #222;
  }

  .official-devdays-text,
  .official-devdays-text strong {
    color: #222;
  }

  .official-devdays-kicker {
    color: #553098;
  }

  a.official-devdays-link {
    color: #0550ae;
    background: #fff;
    border: 1px solid #333;
    box-shadow: none;
    text-shadow: none;
    filter: none;
  }
}
