/* @section: design-system
   Placeholder tokens: replace colors and font stack for the user's project before publishing. */
:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --text: #172033;
  --muted: #5d6b82;
  --border: #d9e0ea;
  --primary: #1769e0;
  --primary-strong: #0f4fb2;
  --accent: #13a38b;
  --danger: #c43b4d;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--primary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.section {
  padding: var(--space-7) var(--space-4);
}

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: var(--space-5);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.card,
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.card,
.stat {
  padding: var(--space-5);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: var(--space-3);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-strong);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.input,
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 0.9rem;
}

.muted {
  color: var(--muted);
}

@media (max-width: 720px) {
  .section {
    padding: var(--space-5) var(--space-3);
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .panel,
  .card,
  .stat {
    box-shadow: none;
  }
}

/* AfroFuturo workshop visual system */
:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --purple: #4c0a67;
  --purple-2: #6b1484;
  --orange: #f36b16;
  --gold: #f2b518;
  --green: #369b3b;
  --ink: #28152f;
  --muted: #625469;
  --line: #e7d9e5;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { background: var(--cream); color: var(--ink); line-height: 1.5; }
a { color: var(--purple); text-underline-offset: .18em; }
a:hover { color: var(--orange); }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10; padding: .75rem 1rem; background: white; color: var(--purple); }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1160px, calc(100% - 2.5rem)); min-height: 96px; margin-inline: auto; display: flex; align-items: center; gap: 1rem; }
.brand-logo { width: 68px; height: 75px; object-fit: contain; }
.brand-lockup { flex: 1; }
.brand-name { margin: 0; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: .9; letter-spacing: -.07em; }
.brand-name span { color: var(--purple); }
.brand-name em { color: var(--orange); font-style: normal; }
.brand-lockup > p:last-child { max-width: 360px; margin: .35rem 0 0; font-size: .72rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.header-stamp { display: grid; place-content: center; width: 58px; height: 58px; border: 3px solid var(--purple); border-radius: 50%; color: var(--purple); text-align: center; font-weight: 900; line-height: .8; transform: rotate(7deg); }
.header-stamp small { font-size: .55rem; text-transform: uppercase; }
.hero { min-height: 570px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: 2.5rem; position: relative; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--purple); text-transform: uppercase; letter-spacing: .11em; font-size: .68rem; font-weight: 900; margin: 0 0 .65rem; }
h1 { margin: 0 0 1.2rem; color: var(--purple); font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: .95; letter-spacing: -.07em; }
h1 span { color: var(--orange); }
h1 strong { color: var(--purple); font-size: .82em; font-style: italic; }
.hero-lead { max-width: 560px; margin-bottom: 1.2rem; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 999px; padding: .72rem 1.2rem; cursor: pointer; font-weight: 900; font-size: .83rem; }
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 0 #ca4f0c; }
.button-primary:hover { background: #df5d0d; color: white; transform: translateY(1px); }
.button-light { background: var(--paper); color: var(--purple); border: 1px solid #d7bdd8; }
.button-quiet { background: transparent; color: var(--muted); padding-inline: .55rem; font-size: .72rem; }
.text-link { font-size: .82rem; font-weight: 800; }
.hero-visual { min-width: 0; min-height: 490px; position: relative; display: grid; place-items: center; isolation: isolate; padding: 1.2rem 1.7rem; }
.paint-swipe { position: absolute; border-radius: 46% 54% 42% 58% / 48% 42% 58% 52%; transform: rotate(-5deg); }
.paint-swipe.purple { inset: 30px 8px 70px 0; background: var(--purple); z-index: -1; }
.paint-swipe.orange { inset: 105px 0 15px 55px; background: var(--orange); transform: rotate(8deg); z-index: -1; }
.sunburst { position: absolute; right: 2px; top: -3px; color: var(--gold); font-size: 3.6rem; line-height: 1; transform: rotate(18deg); z-index: 2; }
.event-flyer-card { position: relative; width: min(100%, 360px); min-width: 0; margin: 0; padding: .5rem; border: 1px solid #dfcce6; border-radius: 21px; background: var(--paper); box-shadow: 0 15px 30px rgba(76,10,103,.16); transform: rotate(-1deg); }
.event-flyer-frame { display: block; overflow: hidden; border-radius: 15px; background: var(--cream); line-height: 0; }
.event-flyer-frame img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.event-flyer-caption { display: block; margin: 0; padding: .55rem .25rem .2rem; color: var(--purple); font-size: .72rem; font-weight: 800; line-height: 1.25; text-align: center; }
.session-strip { background: var(--purple); color: white; }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { display: flex; gap: .65rem; align-items: center; padding: .85rem 1rem; border-right: 1px solid rgba(255,255,255,.24); }
.strip-item:last-child { border-right: 0; }
.strip-icon { color: var(--gold); font-size: 1.45rem; }
.strip-item b, .strip-item span { display: block; }
.strip-item b { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.strip-item span:last-child { font-size: .75rem; opacity: .82; }
.participant { margin-top: 2rem; padding: 1.3rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 16px; }
.participant h2 { margin: 0 0 .4rem; color: var(--purple); font-size: 1.5rem; }
.participant > p:not(.eyebrow) { margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.participant-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.participant label { font-size: .8rem; font-weight: 800; }
.participant input { margin-top: .35rem; background: var(--cream); border-color: var(--line); }
.orientation { padding-block: 3.6rem 2.2rem; }
.section-heading h2 { margin: 0; color: var(--purple); font-size: clamp(2rem, 4vw, 3.5rem); line-height: .98; letter-spacing: -.06em; }
.section-heading h2 span { color: var(--orange); }
.route-map { display: flex; align-items: center; justify-content: space-between; gap: .45rem; margin-top: 2.5rem; }
.route-node { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .2rem; border: 0; background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-size: .78rem; font-weight: 800; line-height: 1.1; }
.route-node i { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #f0e3ef; color: var(--purple); font-style: normal; font-weight: 900; }
.route-node.active, .route-node:hover { color: var(--purple); }
.route-node.active i, .route-node:hover i { background: var(--orange); color: white; }
.route-line { height: 3px; flex: 1; min-width: 10px; background: var(--gold); border-radius: 3px; }
.facilitator-note { margin-top: 1.6rem; padding: .8rem 1rem; border-left: 5px solid var(--green); background: #edf8e9; color: #315d33; font-size: .78rem; }
.workshop { display: grid; gap: 1rem; }
.station { display: none; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: 0 14px 32px rgba(76,10,103,.08); }
.station.active { display: block; animation: appear .25s ease-out; }
@keyframes appear { from { opacity: .1; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.station-top { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; color: white; background: var(--purple); }
.station-number { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); font-size: 1.15rem; font-weight: 900; }
.station-top .eyebrow { margin: 0 0 .2rem; color: var(--gold); }
.station-top h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 2.1rem); line-height: 1.05; letter-spacing: -.04em; }
.station-mark { margin-left: auto; color: var(--gold); font-size: 2.6rem; }
.station-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; padding: 1.6rem; }
.lesson { padding: .25rem .5rem .25rem .25rem; }
.big-quote { margin: 0 0 1rem; color: var(--purple); font-size: 1.55rem; line-height: 1.05; letter-spacing: -.04em; }
.big-quote strong { color: var(--orange); }
.lesson > p:not(.big-quote) { color: var(--muted); font-size: .9rem; }
.source-chip { display: grid; gap: .2rem; margin-top: 1.4rem; padding: .8rem .9rem; border-left: 4px solid var(--green); background: #f0f8ea; color: #35543b; font-size: .72rem; }
.source-chip b { color: var(--green); }
.activity { padding: 1.2rem; border-radius: 18px; background: #fff3e2; border: 1px dashed #e1a951; }
.activity-label { color: var(--orange); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.activity label { display: block; margin-top: .75rem; color: var(--ink); font-size: .78rem; font-weight: 800; }
.activity input:not([type="checkbox"]), .activity textarea { display: block; width: 100%; margin-top: .28rem; padding: .65rem .7rem; border: 1px solid #dfc99e; border-radius: 8px; background: #fffdf8; color: var(--ink); resize: vertical; }
.activity input:not([type="checkbox"]):focus, .activity textarea:focus { border-color: var(--orange); }
fieldset { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem .7rem; margin: .4rem 0 0; padding: 0; border: 0; }
legend { font-size: .78rem; font-weight: 800; }
.check { display: flex !important; align-items: center; gap: .4rem; margin-top: 0 !important; font-weight: 600 !important; }
.check input { accent-color: var(--purple); }
.protocol { display: grid; gap: .45rem; margin-top: .5rem; }
.protocol label { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: .45rem; margin-top: 0; }
.protocol label > span { display: grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: white; font-weight: 900; }
.protocol input { margin-top: 0 !important; }
.mini-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.takeaway { margin: 1rem 0 0; padding: .65rem .7rem; border-top: 1px solid #e5c78c; color: var(--purple); font-size: .76rem; font-weight: 800; }
.takeaway span { color: var(--green); font-size: 1.1rem; margin-right: .3rem; }
.closing { padding-block: 2.7rem; }
.closing-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.3rem; align-items: center; padding: 1.5rem; border: 2px solid var(--purple); border-radius: 24px; background: var(--paper); }
.closing-icon { display: grid; place-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: white; font-size: 1.7rem; font-weight: 900; }
.closing-card h2 { margin: 0 0 .3rem; color: var(--purple); font-size: 1.7rem; line-height: 1; letter-spacing: -.04em; }
.closing-card p { margin: 0; color: var(--muted); font-size: .83rem; }
.closing-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.save-status { grid-column: 2; color: var(--green) !important; min-height: 1.2em; }
.closing-card .pdf-help { grid-column: 1 / -1; font-size: .76rem; padding: .75rem 0 0; border-top: 1px solid var(--line); }
.sources { padding-bottom: 2rem; }
.sources details { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.55); color: var(--muted); font-size: .78rem; }
.sources summary { color: var(--purple); cursor: pointer; font-weight: 900; }
.site-footer { padding-block: 1.6rem; background: var(--purple); color: white; }
.site-footer .wrap { display: flex; align-items: center; gap: .8rem; }
.site-footer img { width: 42px; height: 46px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.site-footer p { margin: 0; font-size: .72rem; }
.footer-note { margin-left: auto !important; opacity: .75; }

/* Un único documento semántico para vista previa y para impresión. */
.pdf-report, .pdf-view-actions { display: none; }
.pdf-report {
  position: relative; width: 210mm; max-width: 100%; margin: 0 auto;
  padding: 12mm 13mm 10mm; background: #fff; color: #25162c;
  font-family: Arial, "Segoe UI", sans-serif; font-size: 10pt; line-height: 1.35;
  overflow-wrap: anywhere; color-scheme: light;
}
.pdf-brand { display: flex; align-items: center; justify-content: center; gap: 3mm; margin-bottom: 5mm; }
.pdf-brand img { width: 12mm; height: 13.2mm; object-fit: contain; flex-shrink: 0; }
.pdf-brand p { margin: 0; }
.pdf-brand-name { font-size: 20pt; line-height: .9; font-weight: 900; letter-spacing: -1.1pt; }
.pdf-brand-name span { color: #4c0a67; }
.pdf-brand-name em { color: #ed7310; font-style: italic; }
.pdf-brand .pdf-brand-tagline { font-size: 5.8pt; line-height: 1.2; text-align: center; margin-top: 2mm; text-transform: uppercase; font-weight: 700; }
.pdf-header h1 { font-family: Arial, sans-serif; color: #4c0a67; font-size: 26pt; letter-spacing: -.8pt; line-height: 1.05; text-align: center; margin: 0 0 2mm; }
.pdf-subtitle { color: #4c0a67; text-align: center; font-size: 12.5pt; font-weight: 700; margin: 0 0 5mm; }
.pdf-meta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2mm 5mm; padding: 3mm 1mm 4mm; }
.pdf-meta p { margin: 0; font-size: 9pt; }
.pdf-meta b { color: #4c0a67; }
.pdf-person { grid-column: 1 / -1; }
.pdf-block { display: grid; grid-template-columns: 11mm minmax(0, 1fr); gap: 3mm; margin: 0 0 2.5mm; padding: 3mm 3.5mm; border: .25mm solid #efcc87; border-radius: 4mm; background: #fff; break-inside: avoid; }
.pdf-number { display: grid; place-items: center; width: 10mm; height: 10mm; border-radius: 50%; background: #f28a00; color: #fff; font-size: 13pt; font-weight: 800; line-height: 1; }
.pdf-block h2 { color: #4c0a67; font-size: 11pt; line-height: 1.2; margin: 0 0 2mm; font-weight: 800; }
.pdf-block h2::after { content: ""; display: block; width: 13mm; height: .65mm; background: #f4bd31; margin-top: 1mm; }
.pdf-block p { font-size: 9.2pt; line-height: 1.35; margin: 0 0 .7mm; }
.pdf-block p:last-child { margin-bottom: 0; }
.pdf-block b { font-weight: 700; }
.pdf-block [data-print] { white-space: pre-wrap; overflow-wrap: anywhere; }
.pdf-empty { color: #827489; font-style: italic; }
.pdf-commitment { display: flex; align-items: center; gap: 4mm; padding: 3mm 1mm; color: #278c38; break-inside: avoid; }
.pdf-commitment > span { display: grid; place-items: center; width: 10mm; height: 10mm; border: .3mm solid #278c38; border-radius: 50%; font-size: 16pt; }
.pdf-commitment p { font-size: 12pt; font-weight: 800; margin: 0; }
.pdf-footer { text-align: center; margin-top: 3mm; padding-top: 3mm; border-top: .25mm solid #58aa60; font-size: 7pt; line-height: 1.3; break-inside: avoid; }
.pdf-decoration { position: absolute; pointer-events: none; width: 14mm; height: 14mm; border: 1.1mm solid #f1bb34; border-radius: 50%; box-shadow: 0 0 0 2mm #fff, 0 0 0 2.8mm #81905b, 0 0 0 4.5mm #fff, 0 0 0 5.3mm #6b1484; }
.pdf-decoration-top { left: -9mm; top: -9mm; }
.pdf-decoration-bottom { right: -9mm; bottom: -9mm; }
body.pdf-view { background: #e9e4ed; }
body.pdf-view > .site-header, body.pdf-view > main, body.pdf-view > .site-footer, body.pdf-view > .skip-link { display: none; }
body.pdf-view .pdf-report { display: block; margin-block: 1.5rem; box-shadow: 0 5px 25px #39234422; }
body.pdf-view .pdf-view-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem; padding: 1rem; }
.pdf-view-actions p { width: 100%; text-align: center; margin: 0; color: var(--muted); font-size: .8rem; }
.pdf-block-long { break-inside: auto; }
@media (max-width: 760px) {
  .wrap, .header-inner { width: min(100% - 1.2rem, 1160px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2rem 1.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.3rem); }
  .hero-visual { width: 100%; max-width: 420px; justify-self: center; min-height: 0; padding: 1rem 1.5rem; }
  .event-flyer-card { width: min(100%, 310px); }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); }
  .strip-item:last-child { border-bottom: 0; }
  .route-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; align-items: start; }
  .route-line { display: none; }
  .route-node { display: grid; justify-items: center; text-align: center; font-size: .64rem; }
  .route-node i { width: 36px; height: 36px; flex-basis: 36px; }
  .station-grid { grid-template-columns: 1fr; }
  .station-top { padding: 1rem; }
  .station-grid { padding: 1rem; }
  .closing-card { grid-template-columns: auto 1fr; }
  .closing-actions { grid-column: 1 / -1; }
  .save-status { grid-column: 1 / -1; }
  .footer-note { display: none; }
  .participant-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.pdf-view .pdf-report { padding: 8mm 5mm; }
  body.pdf-view .pdf-header h1 { font-size: 22pt; }
  body.pdf-view .pdf-decoration { display: none; }
}
/* Medir al ancho impreso incluso cuando el informe está oculto. */
body .pdf-report.pdf-measuring {
  display: block; position: absolute; visibility: hidden;
  width: 194mm; max-width: none; margin: 0; padding: 3mm 5mm 4mm;
}
@page { size: A4 portrait; margin: 8mm; }
@media print {
  html, body, body.pdf-view { margin: 0; padding: 0; background: #fff; }
  body > .site-header, body > main, body > .site-footer, body > .skip-link, .pdf-view-actions { display: none !important; }
  .pdf-report, body.pdf-view .pdf-report { display: block; width: 100%; max-width: none; margin: 0; padding: 3mm 5mm 4mm; box-shadow: none; }
  .pdf-report, .pdf-report * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-header { break-inside: avoid; }
  body.pdf-view .pdf-header h1 { font-size: 26pt; }
  .pdf-report .pdf-decoration { display: block; }
  .pdf-block-long { display: block; break-inside: auto; }
  .pdf-block-long .pdf-number { margin-bottom: 2mm; }
  .pdf-block-long p { orphans: 3; widows: 3; }
}
