.congress-story-hero { color:white; background:radial-gradient(ellipse at 80% 40%,#244a68,#0b2137 72%); scroll-margin-top:7rem; }
.congress-hero-grid { display:grid; grid-template-columns:1.2fr minmax(0,1fr); align-items:center; gap:clamp(1rem,5vw,5rem); padding-block:clamp(2rem,7vw,6rem); }
.congress-story-hero h1 { margin:.25em 0; font-size:clamp(2.5rem,6vw,5.35rem); line-height:1.02; color:white; }
.congress-story-hero .crumb a,.congress-hero-lead { color:#e7f1fa; }
.congress-story-hero .eyebrow { color:#ffbcca; }
.congress-date-art { position:relative; isolation:isolate; overflow:hidden; min-height:clamp(14rem,32vw,25rem); margin:0; border:1px solid #a7c7df77; border-radius:1.4rem; display:grid; place-items:center; background:#163852; }
.congress-art-rings { position:absolute; inset:-15%; z-index:-1; transform:translateY(var(--art-shift,0px)); background:repeating-radial-gradient(ellipse at 50% 50%,transparent 0 18px,#86afce44 19px 20px,transparent 21px 32px),linear-gradient(125deg,#1c4d70,#101c32 68%,#862037); }
.congress-date-content { display:grid; justify-items:center; gap:.45rem; padding:.8rem; text-align:center; }
.congress-date-content strong { color:white; font-size:clamp(4rem,11vw,9rem); letter-spacing:-.06em; line-height:1; }
.congress-date-content strong span { color:#f78da4; padding-inline:.09em; }
.congress-date-content > span { color:#eff7ff; font-weight:750; letter-spacing:.06em; }
.congress-chapters { position:sticky; top:0; z-index:8; background:#fff; border-bottom:1px solid #cbdce8; box-shadow:0 4px 10px #10233912; }
.congress-chapter-links { display:flex; align-items:center; gap:.45rem; overflow:auto; }
.congress-chapter-links a { flex:none; padding:.7rem .6rem; color:#183c59; font-weight:750; text-decoration:none; }
.congress-chapter-links a[aria-current],.congress-chapter-links a:hover { color:#a21b35; }
.congress-progress { height:3px; background:#a21b35; transform-origin:left; transform:scaleX(var(--story-progress,0)); }
.congress-story { max-width:1150px; padding-bottom:3rem; }
.congress-chapter { padding-block:clamp(2rem,6vw,4.5rem); scroll-margin-top:8rem; border-bottom:1px solid #d6e4ee; }
.congress-chapter h2 { margin:.2em 0 .45em; font-size:clamp(1.75rem,4vw,3rem); }
.congress-chapter > p:not(.eyebrow) { max-width:68ch; }
.congress-mode-track { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(min(84%,17rem),1fr); gap:.8rem; overflow-x:auto; scroll-snap-type:x mandatory; padding:.3rem .1rem .8rem; }
.congress-mode-track article { scroll-snap-align:start; border:1px solid #cddce7; border-radius:.85rem; background:#f1f6fa; padding:1rem; }
.congress-mode-track h3 { margin:.7rem 0 .3rem; }
.congress-mode-track p { margin:0; }
.congress-slider-controls { display:flex; gap:.5rem; margin:.75rem 0; }
.mode-art { display:grid; place-items:center; position:relative; width:100%; height:90px; border-radius:.55rem; color:#eaf5ff; background:linear-gradient(120deg,#183957,#2c648a); overflow:hidden; }
.mode-art::before,.mode-art::after { content:""; position:absolute; display:block; }
.mode-paper::before { width:39px; height:52px; border:2px solid currentColor; border-radius:4px; transform:rotate(-10deg); }
.mode-paper::after { width:21px; height:24px; transform:rotate(-10deg); background:repeating-linear-gradient(transparent 0 5px,#c9e6fa 5px 7px); }
.mode-dialogue::before,.mode-dialogue::after { width:44px; height:33px; border:2px solid currentColor; border-radius:14px 14px 14px 2px; transform:translate(-10px,-8px); }
.mode-dialogue::after { transform:translate(11px,9px); border-color:#ffacbd; border-radius:14px 14px 2px 14px; }
.mode-book::before,.mode-book::after { width:29px; height:43px; border:2px solid currentColor; transform:translateX(-15px) skewY(9deg); border-radius:4px 1px 1px 4px; }
.mode-book::after { transform:translateX(15px) skewY(-9deg); border-radius:1px 4px 4px 1px; }
.congress-dates { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.65rem; }
.congress-dates > div { border-left:3px solid #a21b35; background:#f3f7fb; }
.congress-story .congress-carousel { margin-block:1rem; }
.congress-registration { padding-inline:clamp(1rem,4vw,2.5rem); border-radius:1.1rem; background:#102b44; color:white; }
.congress-registration h2 { color:white; }
@media(max-width:700px) { .congress-hero-grid { grid-template-columns:minmax(0,1fr); } .congress-chapter { scroll-margin-top:6rem; } }
.home-congress-feature { padding-block:clamp(1.2rem,4vw,3rem); background:#f5eeee; }
.home-congress-poster { display:block; border-radius:1rem; overflow:hidden; box-shadow:0 12px 30px #2d121826; }
.congress-poster { display:block; width:100%; height:auto; }
.home-congress-actions { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:1rem; margin-top:1rem; }
.home-congress-actions h2 { margin:0; font-size:clamp(1.15rem,2.5vw,1.65rem); }
.home-congress-actions .actions { margin:0; }
.congress-story-hero { background:linear-gradient(130deg,#222225,#0c0c0e); }
.congress-hero-grid { grid-template-columns:minmax(0,1fr); gap:1.4rem; padding-block:clamp(1.5rem,4vw,3rem); }
.congress-story-hero h1 { font-size:clamp(2rem,5vw,4.25rem); }
.congress-poster-frame { margin:0 0 clamp(1rem,3vw,1.6rem); overflow:hidden; border-radius:.9rem; background:#19191a; box-shadow:0 8px 20px #170c101d; }
.congress-story-hero .congress-poster { transform:translateY(calc(var(--art-shift,0px) * .2)) scale(1.015); }
.congress-story-hero .congress-poster-frame { margin:0; }
.congress-chapters { top:var(--congress-header,0px); }
.congress-chapter { scroll-margin-top:calc(var(--congress-header,0px) + 4.5rem); }
.congress-next { margin-top:1.15rem; }
.congress-registration { background:#18181b; }
.congress-diffusion .congreso-cartel { max-width:24rem; margin:1.25rem 0; }
@media (max-width:600px) { .home-congress-actions .actions { gap:.45rem; } }
.congress-presentation-page { height:100dvh; overflow:hidden; background:#f7f7f8; color:#17171a; }
.congress-presentation-page > header,.congress-presentation-page > .topline { display:none; }
.congress-presentation { position:relative; width:100%; height:100dvh; min-height:0; overflow:hidden; container-type:size; --poster-shift:0px; }
.scene-track { display:flex; width:100%; height:100%; overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
.scene-track::-webkit-scrollbar { display:none; }
.poster-scene { position:relative; isolation:isolate; flex:0 0 100%; width:100%; height:100%; overflow:hidden; scroll-snap-align:start; scroll-snap-stop:always; display:grid; place-items:center; }
.poster-scene .congress-poster { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; transform:translateY(calc(-1 * var(--poster-shift))); }
.scene-top,.scene-controls { position:absolute; z-index:2; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:.4rem; color:white; }
.scene-top { top:max(.55rem,env(safe-area-inset-top)); width:calc(100% - 1.3rem); justify-content:space-between; pointer-events:none; }
.scene-top a { pointer-events:auto; padding:.55rem .7rem; background:#17171bec; color:white; border:1px solid #ffffff55; border-radius:.55rem; font-size:.85rem; text-decoration:none; }
.scene-controls { bottom:calc((100cqh - min(100cqh,40cqw)) / 2 + var(--poster-shift) + .35rem); padding:0; background:none; border:0; }
.scene-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.scene-top a:hover { background:#942039; }
.scene-side-nav { position:absolute; z-index:2; inset:0; pointer-events:none; }
.scene-side-nav button { position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:clamp(44px,5.2vw,70px); aspect-ratio:1; padding:0; border:1px solid #ffffff80; border-radius:50%; color:white; background:#111116b8; box-shadow:0 6px 20px #0006; backdrop-filter:blur(8px); pointer-events:auto; cursor:pointer; transition:background .2s,border-color .2s; }
.scene-side-nav button span { font-size:clamp(2rem,4vw,3.25rem); line-height:.65; transform:translateY(-.06em); }
.scene-side-nav button:first-child { left:max(.55rem,env(safe-area-inset-left)); }
.scene-side-nav button:last-child { right:max(.55rem,env(safe-area-inset-right)); }
.scene-side-nav button:not([aria-disabled="true"]):hover { background:#9c2039eb; border-color:white; }
.scene-side-nav button:focus-visible { outline:3px solid white; outline-offset:3px; }
.scene-side-nav button[aria-disabled="true"] { opacity:.46; cursor:default; }
@media(prefers-reduced-motion:reduce) { .scene-side-nav button { transition:none; } }
.scene-pagination { text-align:center; }
.scene-status { font-size:.78rem; }
.scene-dots { display:flex; justify-content:center; }
.scene-dots a { position:relative; display:block; width:24px; height:24px; }
.scene-dots a::before { content:""; position:absolute; inset:7px; border-radius:50%; background:#fff; box-shadow:0 0 0 1px #17171a99,0 1px 4px #0007; }
.scene-dots a[aria-current]::before { background:#d92043; box-shadow:0 0 0 1px white,0 1px 4px #0007; }
.scene-action { position:absolute; z-index:1; bottom:4.3rem; left:50%; width:max-content; max-width:calc(100% - 1rem); transform:translateX(-50%); }
.scene-action .btn { box-shadow:0 6px 22px #0008; }
.scene-readable { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.scene-dialog { max-width:min(48rem,calc(100% - 2rem)); max-height:calc(100dvh - 2rem); padding:clamp(1rem,4vw,2rem); border:1px solid #d0d9e2; border-radius:1rem; color:#162c43; background:white; }
.scene-dialog::backdrop { background:#09090cba; }
.scene-dialog form { display:flex; justify-content:flex-end; }
@media(max-width:700px) and (orientation:portrait) {
  .congress-presentation { --poster-shift:12vh; }
  .scene-readable { top:57%; width:calc(100% - 2rem); height:auto; clip-path:none; text-align:center; }
  .scene-readable h1,.scene-readable h2 { color:#17171a; font-size:clamp(1.35rem,6vw,2rem); margin:0; }
  .scene-readable p { margin:.5rem 0; color:#45454a; font-size:.9rem; }
}

@media(max-width:700px) and (orientation:portrait) {
  .scene-side-nav button { top:calc(50% - var(--poster-shift)); }
}

/* Align the controls to the visible image, even on panoramic screens. */
.congress-presentation {
  --poster-width:min(calc(100cqw - 2rem), 78rem, 175cqh);
  --poster-height:calc(var(--poster-width) * .4);
}
.poster-scene .congress-poster {
  inset:50% auto auto 50%;
  width:var(--poster-width);
  height:auto;
  transform:translate(-50%,calc(-50% - var(--poster-shift)));
  border-radius:.8rem;
  box-shadow:0 14px 48px #23121723;
}
.scene-top { top:max(1rem,env(safe-area-inset-top)); width:var(--poster-width); gap:.65rem; }
.scene-top a { display:inline-flex; align-items:center; min-height:48px; padding:.55rem .95rem; font-size:clamp(.95rem,1.4vw,1.16rem); font-weight:750; }
.scene-side-nav button:first-child { left:calc((100cqw - var(--poster-width)) / 2 + .5rem); }
.scene-side-nav button:last-child { right:calc((100cqw - var(--poster-width)) / 2 + .5rem); }
.scene-controls { bottom:calc((100cqh - var(--poster-height)) / 2 + var(--poster-shift) + .45rem); }
.scene-action { bottom:clamp(.85rem,calc((100cqh - var(--poster-height)) / 2 - 4rem),14rem); }
.scene-action .btn { min-height:48px; padding:.62rem 1rem; font-size:clamp(.95rem,1.5vw,1.15rem); box-shadow:0 6px 20px #72132335; }
@media(max-width:700px) and (orientation:portrait) {
  .congress-presentation { --poster-width:calc(100cqw - 1rem); }
  .scene-top { top:max(.55rem,env(safe-area-inset-top)); }
  .scene-top a { padding:.5rem .65rem; }
  .scene-action { bottom:max(1rem,env(safe-area-inset-bottom)); }
}
.congress-mode-grid {
  grid-auto-flow:row;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:visible;
  scroll-snap-type:none;
  margin-block:1rem;
}
@media(max-width:720px) {
  .congress-mode-grid { grid-template-columns:minmax(0,1fr); }
}

.congress-themes { background:#faf9f9; }
.congress-theme-hero { background:#17171a; color:#f5f3f4; }
.congress-theme-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); align-items:center; gap:clamp(1.2rem,4vw,3rem); padding-block:clamp(2rem,6vw,5rem); }
.congress-theme-hero h1 { color:white; margin:.15em 0 .3em; font-size:clamp(2.6rem,6vw,5rem); line-height:1.03; }
.congress-theme-hero .crumb a { color:white; }
.congress-theme-hero .eyebrow { color:#ffb7c5; }
.congress-theme-hero img { display:block; width:100%; height:auto; border:1px solid #ffffff40; border-radius:.85rem; }
.congress-theme-body { padding-block:clamp(1.5rem,4vw,3rem); }
.congress-theme-group { scroll-margin-top:6rem; margin-block:1rem 2.8rem; }
.congress-theme-intro { padding-left:1rem; border-left:4px solid #a51b35; margin-bottom:1rem; }
.congress-theme-intro h2 { margin:0; max-width:32ch; font-size:clamp(1.7rem,3.8vw,3rem); }
.congress-theme-intro p { margin:.45rem 0 0; color:#4f5158; max-width:68ch; }
.congress-topic-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap:.8rem; }
.congress-topic-grid li { margin:0; padding:clamp(1rem,2vw,1.4rem); background:white; border:1px solid #e5dadd; border-radius:.8rem; box-shadow:0 5px 18px #33111a08; }
.congress-topic-grid h3 { margin:0 0 .45rem; font-size:clamp(1.1rem,1.6vw,1.3rem); line-height:1.24; }
.congress-topic-grid p { margin:0; color:#4f5158; }
.congress-theme-next { padding-top:1.25rem; border-top:1px solid #e6dadd; }
@media(max-width:760px) { .congress-theme-hero-grid { grid-template-columns:minmax(0,1fr); } }
