:root{--paper:#b8b5ad;--ink:#202c3d;--orange:#d84c00;--cream:#f5f2eb;--line:rgba(32,44,61,.18)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);font-family:Manrope,Arial,sans-serif}.congress-page{flex:1 0 auto;overflow:hidden;background:linear-gradient(135deg,#c4c1b9 0 32%,#aaa8a1 32% 36%,#bbb8b0 36% 100%)}.congress-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(290px,.82fr);gap:clamp(2rem,7vw,7rem);align-items:center;max-width:1240px;margin:auto;padding:clamp(3rem,8vw,7rem) clamp(1.25rem,5vw,5rem) clamp(4rem,10vw,8rem)}.hero-copy{position:relative;z-index:1}.kicker{margin:0 0 1rem;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:800;color:var(--cream)}.edition{margin:0;color:var(--cream);font-size:clamp(1rem,2vw,1.5rem);font-weight:800;letter-spacing:.05em}.hero-copy h1{margin:-.2rem 0 0;font-family:Syne,sans-serif;font-size:clamp(4.5rem,12vw,10.5rem);letter-spacing:-.09em;line-height:.85;color:var(--orange)}.hero-copy h1 span{display:block;margin-left:48%;font-size:.34em;letter-spacing:-.05em;color:var(--cream)}.motto{margin:2rem 0 1.5rem;color:var(--cream);font-size:clamp(1.4rem,3vw,2.7rem);font-weight:800;text-transform:uppercase;letter-spacing:-.04em}.verse{max-width:550px;color:var(--cream);font-size:clamp(.95rem,1.6vw,1.3rem);line-height:1.6}.verse strong{display:block;margin-top:.45rem;text-align:right}.dates{margin-top:2.2rem;font-size:clamp(1rem,2vw,1.5rem);font-weight:800;color:var(--cream)}.dates span{color:var(--orange);font-size:1.45em}.dates b{margin:0 .4rem;color:var(--ink)}.poster-wrap{position:relative;margin:0;z-index:1;transform:rotate(2deg);box-shadow:20px 28px 55px rgba(32,44,61,.24)}.poster-wrap img{width:100%;height:auto}.schedule-section{position:relative;background:var(--cream);padding:clamp(4rem,9vw,8rem) max(1.25rem,5vw);clip-path:polygon(0 5%,100% 0,100% 100%,0 100%)}.section-heading{max-width:1100px;margin:0 auto 3rem}.section-heading .kicker{color:var(--orange)}h2{margin:.2rem 0;font-family:Syne,sans-serif;font-size:clamp(2.7rem,6vw,5.5rem);line-height:1;letter-spacing:-.07em;color:var(--ink)}.section-heading>p:last-child{margin:1rem 0 0;color:#687080}.schedule-grid{max-width:1100px;margin:auto;display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:1.25rem}.day-card{padding:1.7rem;border:1px solid var(--line);border-radius:2px;background:rgba(255,255,255,.66)}.day-card.featured{background:var(--ink);color:var(--cream);box-shadow:0 18px 35px rgba(32,44,61,.16)}.day-card header{display:flex;align-items:baseline;justify-content:space-between;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid currentColor}.day-card header span{text-transform:uppercase;font-size:.85rem;font-weight:800;letter-spacing:.12em;color:var(--orange)}.day-card header strong{font-family:Syne,sans-serif;font-size:3.5rem;line-height:.8}.day-card ul{display:grid;gap:.9rem;list-style:none;padding:0;margin:0}.day-card li{display:grid;grid-template-columns:minmax(100px,.9fr) 1.5fr;gap:.5rem;font-size:.85rem;line-height:1.4}.day-card time{font-weight:800;color:var(--orange)}.day-card b{font-weight:800}.day-card em{font-style:normal;color:#687080}.featured .day-card em,.featured em{color:#d8dce0}.day-card small{display:block;margin-top:.35rem}@media(max-width:850px){.congress-hero{grid-template-columns:1fr;padding-top:3rem}.poster-wrap{max-width:540px;width:90%;margin:0 auto}.hero-copy h1{font-size:clamp(4.2rem,18vw,8rem)}.schedule-grid{grid-template-columns:1fr}.schedule-section{clip-path:polygon(0 2%,100% 0,100% 100%,0 100%)}}@media(max-width:520px){.hero-copy h1 span{margin-left:42%}.day-card li{grid-template-columns:105px 1fr;font-size:.8rem}}
:root{--layout-note:two-columns}.congress-hero{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);gap:clamp(1.5rem,4vw,4rem);align-items:start;max-width:1400px;padding:clamp(1.5rem,4vw,4rem) clamp(1.25rem,5vw,5rem) 2rem}.poster-wrap{position:sticky;top:2rem;transform:rotate(2deg)}.schedule-section{padding:clamp(1.35rem,3vw,2.5rem) clamp(1rem,2.5vw,2.5rem);clip-path:none;border-radius:2px}.section-heading{margin:0 auto 1.5rem}.section-heading h2{font-size:clamp(2.2rem,4vw,4rem)}.section-heading>p:last-child{margin:.45rem 0 0;font-size:.85rem}.schedule-grid{grid-template-columns:1fr;gap:.65rem}.day-card{padding:.8rem 1rem;border:0;border-radius:12px;background:rgba(255,255,255,.72)}.day-card.featured{background:rgba(255,255,255,.72);color:var(--ink);box-shadow:none}.day-card header{padding-bottom:.4rem;margin-bottom:.45rem;border-bottom:0}.day-card header span{font-size:1.2rem;letter-spacing:-.03em}.day-card header strong{font-size:2rem;color:var(--ink)}.day-card ul{gap:.28rem}.day-card li{grid-template-columns:112px 1fr;gap:.4rem;font-size:calc(.85rem + 1pt);line-height:1.4}.day-card time{color:var(--ink);font-weight:800}.day-card em,.featured em{color:#687080}.day-card b{font-style:italic}.day-card small{margin-top:.18rem}.schedule-section .kicker{font-size:.62rem}@media(max-width:850px){.congress-hero{grid-template-columns:1fr}.poster-wrap{position:relative;top:auto}}
/* Adaptación del congreso sin alterar la composición de escritorio. */
.congress-header {
  flex: 0 0 auto;
}

.congress-header .nav {
  flex-direction: row;
  align-items: center;
}


@media (max-width: 640px) {
  .congress-header .nav {
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .congress-page .congress-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2rem clamp(1rem, 4vw, 2.5rem);
  }

  .congress-page .poster-wrap {
    position: relative;
    top: auto;
    width: 90%;
    max-width: 540px;
    margin: 0 auto;
  }

  .congress-page .schedule-section {
    width: 100%;
    max-width: 680px;
    min-width: 0;
    margin: 0 auto;
  }

  .congress-page .day-card {
    display: block;
    min-width: 0;
  }

  .congress-page .day-card ul {
    gap: .65rem;
  }

  .congress-page .day-card li {
    grid-template-columns: 8em minmax(0, 1fr);
    gap: .75rem;
    overflow-wrap: anywhere;
  }

  .congress-page .day-card time {
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .congress-page .congress-hero {
    gap: 2rem;
    padding: 1.5rem 1rem 2rem;
  }

  .congress-page .schedule-section {
    padding: 1.25rem .75rem;
  }

  .congress-page .section-heading {
    margin-bottom: 1.25rem;
  }

  .congress-page .day-card {
    padding: 1rem .85rem;
  }

  .congress-page .day-card ul {
    gap: .9rem;
  }

  .congress-page .day-card li {
    grid-template-columns: minmax(0, 1fr);
    gap: .2rem;
    line-height: 1.5;
  }
}

.congress-intro { width: min(100%, 420px); min-width: 0; justify-self: center; }
.congress-plenaries { min-width: 0; }
@media (min-width: 761px) {
  .congress-plenaries:has(> .congress-document:nth-of-type(3)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
  .congress-plenaries:has(> .congress-document:nth-of-type(3)) > .congress-teachings-title { grid-column: 1 / -1; margin-bottom: 0; }
  .congress-plenaries:has(> .congress-document:nth-of-type(3)) > .congress-document { min-width: 0; margin-top: 0; }
  .congress-plenaries:has(> .congress-document:nth-of-type(3)) > .congress-document:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
}
.congress-teachings-title { margin: 0 0 .65rem; color: var(--ink); font-family: 'Space Grotesk', Manrope, sans-serif; font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.congress-plenaries > .congress-document:first-child { margin-top: 0; }
.congress-document { margin-top: .65rem; padding: .65rem; border-radius: 2px; background: var(--cream); }
.congress-document-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.congress-document-heading h3 { margin: 0; font-size: 1rem; color: var(--ink); }
.congress-pdf-viewer { overflow: hidden; border: 0; border-radius: 2px; background: #4b4e50; color: #e5e5e5; }
.congress-pdf-stage { display: flex; align-items: flex-start; justify-content: center; height: 220px; padding: 12px; overflow-y: auto; scrollbar-gutter: stable; }
.congress-pdf-stage canvas { flex-shrink: 0; margin-inline: auto; }
.congress-pdf-stage { justify-content: flex-start; overflow: auto; }
.congress-pdf-controls { flex-wrap: wrap; gap: .35rem; }
.congress-pdf-stage canvas { max-width: none; }
.congress-pdf-stage canvas[hidden] { display: none; }
.congress-pdf-stage p { padding: 1rem; font-size: .85rem; text-align: center; }
.congress-pdf-controls { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .2rem; background: var(--ink); color: var(--cream); font-size: .7rem; font-variant-numeric: tabular-nums; }
.congress-pdf-controls[hidden] { display: none; }
.congress-pdf-controls button { width: 36px; height: 32px; border: 0; border-radius: 2px; background: transparent; color: inherit; cursor: pointer; }
.congress-pdf-controls button:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.congress-pdf-controls button:disabled { opacity: .35; cursor: default; }
.congress-pdf-controls button:focus-visible { outline: 2px solid var(--orange); }
.congress-document-open { display: inline-block; margin-top: .35rem; color: var(--ink); font-size: .75rem; text-decoration: underline; }
.congress-page .congress-hero > .schedule-section { grid-column: 1 / -1; width: 100%; max-width: none; margin: 1.25rem 0 2rem; }
@media (min-width: 1025px) { .congress-page .schedule-grid { grid-template-columns: 1fr 1.35fr 1fr; max-width: none; align-items: start; } }
@media (max-width: 520px) { .congress-document { padding: .5rem; } .congress-pdf-stage { height: 200px; } }
.congress-page .congress-intro .poster-wrap { width: min(75%, 330px); max-width: none; margin: 0 auto; }
@media (min-width: 1025px) {
  .congress-intro { width: 100%; }
  .congress-plenaries { padding-top: 2rem; }
}
.congress-story { margin-top: 3rem; padding: .2rem 0 .2rem .8rem; border-left: 3px solid var(--orange); }
.congress-story-kicker { margin: 0 0 .4rem; color: var(--orange); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.congress-story h1 { margin: 0 0 .5rem; color: var(--ink); font-family: Syne, sans-serif; font-size: clamp(1.85rem, 2.5vw, 2.4rem); line-height: 1.04; letter-spacing: -.055em; }
.congress-story p { margin-top: 0; margin-bottom: .6rem; font-size: .95rem; line-height: 1.45; }
.congress-story-lead { font-weight: 700; }
.congress-program-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .45rem .75rem; border-radius: 7px; background: var(--ink); color: var(--cream); font-size: .78rem; font-weight: 800; text-decoration: none; }
.congress-program-link:hover, .congress-program-link:focus-visible { background: var(--orange); color: #fff; }
@media (min-width: 1025px) { .congress-page .congress-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 3vw, 3rem); padding-top: 0; padding-bottom: 0; } .congress-page .schedule-section { margin-top: 1.25rem; } }
@media (max-width: 1024px) { .congress-intro { width: min(100%, 540px); } .congress-page .congress-intro .poster-wrap { width: min(75%, 360px); margin: 0 auto; } .congress-story { max-width: 460px; margin: 3rem auto 0; } }
@media (max-width: 520px) { .congress-page .congress-intro .poster-wrap { width: min(78%, 290px); } .congress-story { padding-left: .8rem; } .congress-story h1 { font-size: 1.7rem; } .congress-story p { font-size: .83rem; } }
