:root {
  --blue: #07517f;
  --deep: #073f68;
  --accent: #ec946a;
  --ink: #233e52;
  --muted: #566d7e;
  --pale: #f1f7fa;
  --line: #d8e5ed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}

body {
  margin: 0;
  background: white;
  color: var(--ink);
  font: 17px/1.65 system-ui,-apple-system,Segoe UI,Arial,sans-serif;
}

a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

a:focus-visible,summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(1160px,calc(100% - 40px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 2px 20px #123b6017;
}

.header-inner {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 120px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header nav a {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--deep);
  text-decoration: none;
}

.header nav a:hover {
  text-decoration: underline;
}

.menu-toggle,.menu-button {
  display: none;
}

.hero {
  padding-top: 40px;
}

.hero>.banner-desktop {
  width: 100%;
  height: auto;
  display: block;
}

.banner-mobile {
  display: none;
}

.banner-mobile h1 {
  font-size: 25px;
  line-height: 1.2;
  color: var(--deep);
  margin: 0 0 12px;
}

.banner-mobile p {
  font-weight: 700;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 10px;
}

.actions>.button {
  flex: 1;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #193d58;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  min-height: 62px;
  padding: 16px 22px;
  border-radius: 7px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 5px 13px #824e001a;
  overflow-wrap: anywhere;
}

.button:hover {
  background: #f5ab84;
}

.button.secondary {
  background: var(--deep);
  color: #fff;
}

.button.secondary:hover {
  background: var(--blue);
}

.section {
  padding-block: 75px;
}

.tint {
  background: var(--pale);
}

h2,h3 {
  color: var(--deep);
  line-height: 1.25;
}

h2 {
  margin: 0 0 26px;
  font-size: clamp(27px,3vw,38px);
}

h3 {
  font-size: 21px;
  margin: 27px 0 15px;
}

p {
  margin: 0 0 18px;
}

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

.intro {
  min-width: 0;
}

.intro>p:first-child {
  font-size: 23px;
  font-weight: 800;
  color: var(--deep);
}

.signature {
  font-weight: 600;
  color: var(--blue);
}

.signature strong+strong {
  margin-left: 25px;
}

.panel {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 5px 22px #123b600a;
  min-width: 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 25px;
  align-items: start;
}

.day-panel {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px #123b6010;
}

.day-heading {
  margin: 0;
  padding: 25px 26px;
  background: var(--deep);
  color: white;
  font-size: 23px;
}

.sessions {
  padding: 5px 26px;
}

.session {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.session:last-child {
  border: 0;
}

.session-time {
  display: inline-block;
  padding: 4px 10px;
  background: var(--pale);
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.session p {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
  border-left: 4px solid var(--accent);
  padding-left: 13px;
  overflow-wrap: anywhere;
}

.sessions>p {
  padding: 0 0 20px;
  font-size: 15px;
}

.program-notes {
  padding-top: 30px;
}

.notice {
  padding: 16px 19px;
  border-left: 4px solid var(--accent);
  background: #fff3eb;
  border-radius: 4px;
  font-weight: 650;
  line-height: 1.55;
}

.panel .notice {
  margin-top: 22px;
}

.document-details {
  margin-top: 25px;
}

.document-details summary {
  cursor: pointer;
  background: var(--deep);
  color: white;
  padding: 22px 25px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
}

.document-details[open] summary {
  border-radius: 10px 10px 0 0;
}

.document-details>.panel {
  border-radius: 0 0 10px 10px;
}

.panel h3 {
  padding-left: 13px;
  border-left: 4px solid var(--accent);
}

#comunicaciones .panel h2 {
  font-size: 24px;
}

.sponsors {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.sponsors>div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 155px;
  min-width: 0;
}

.sponsors img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}


.venue-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.venue-grid>div>p:first-child {
  font-size: 26px;
  font-weight: 750;
}

.venue-grid p {
  font-size: 19px;
}

.venue-grid iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px #123b6018;
}

.contact-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.website {
  margin-top: 35px;
}

.website h2 {
  font-size: 24px;
}

.back-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 29px;
  font-weight: 700;
  box-shadow: 0 5px 15px #123b6040;
}

.back-top:hover {
  background: var(--deep);
}

footer {
  background: var(--deep);
  padding: 25px 0;
}

footer>.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer img {
  object-fit: contain;
  max-height: 60px;
  max-width: 160px;
  background: #fff;
  border-radius: 5px;
  padding: 7px;
}

.pdf-copy {
  max-width: 960px;
  margin: 30px auto 0;
}

.pdf-copy h2 {
  font-size: 26px;
}

.pdf-copy p {
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

@media(min-width:701px) {
  .banner-mobile h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }
  .banner-mobile {
    display: block;
  }
  .banner-mobile>.event-mark,.banner-mobile>div>p {
    display: none;
  }
}

@media(max-width:1050px) {
  .header {
    position: relative;
  }
  .header-inner {
    min-height: 68px;
    padding-block: 12px;
  }
  .brand img {
    width: 95px;
    height: 44px;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 0;
    opacity: 0;
    width: 45px;
    height: 44px;
    z-index: 2;
    cursor: pointer;
    margin: 0;
  }
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: white;
    width: 45px;
    height: 44px;
    border-radius: 6px;
    font-size: 26px;
    cursor: pointer;
  }
  .menu-toggle:focus-visible+.menu-button {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
  }
  .header nav {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: min(300px,calc(100vw - 40px));
    background: white;
    box-shadow: 0 10px 24px #123b6033;
    border-radius: 8px;
    padding: 10px 18px;
    z-index: 30;
  }
  .menu-toggle:checked~nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header nav a {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  .header nav a:last-child {
    border: 0;
  }
  .section {
    padding-block: 55px;
  }
  .actions {
    gap: 12px;
  }
  .actions .button {
    font-size: 13px;
  }
}

@media(max-width:700px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .hero {
    padding-top: 24px;
  }
  .hero>.banner-desktop {
    display: none;
  }
  .banner-mobile {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0 25px;
  }
  .banner-mobile>div:last-child {
    flex: 1;
    min-width: 0;
  }
  .event-mark {
    width: 95px;
    flex: none;
    aspect-ratio: 630/422;
    overflow: hidden;
  }
  .event-mark img {
    display: block;
    width: 298.89%;
    max-width: none;
    height: auto;
  }
  .actions {
    flex-direction: column;
  }
  .actions .button {
    width: 100%;
    font-size: 14px;
    min-height: 55px;
  }
  .program-grid,.venue-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .section {
    padding-block: 42px;
  }
  .panel {
    padding: 23px;
  }
  .day-heading {
    font-size: 22px;
    padding: 23px;
  }
  .sessions {
    padding: 5px 23px;
  }
  .document-details summary {
    font-size: 16px;
  }
  .sponsors {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .sponsors>div {
    padding: 18px;
    height: 125px;
  }
  .sponsors img {
    height: 85px;
  }
  .venue-grid {
    gap: 25px;
  }
  .venue-grid iframe {
    height: 300px;
  }
  .back-top {
    bottom: 15px;
    right: 15px;
  }
  .pdf-copy h2 {
    font-size: 23px;
  }
  .banner-mobile h1 {
    font-size: 22px;
  }
}

@media(max-width:360px) {
  .event-mark {
    width: 75px;
  }
  .banner-mobile {
    gap: 12px;
  }
  .banner-mobile h1 {
    font-size: 20px;
  }
  .banner-mobile p {
    font-size: 13px;
  }
}

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

/* Lectura de la presentación y de las normas integradas. */
.intro-line {
  display: block;
  margin-bottom: 12px;
}

.intro-line:last-child {
  margin-bottom: 0;
}

.intro>p {
  max-width: none;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.signature-grid>span {
  display: block;
}

.signature strong+strong {
  margin-left: 0;
}

.reading-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 18px;
}

.reading-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.reading-group>summary {
  cursor: pointer;
  color: var(--deep);
  font-weight: 800;
  font-size: 21px;
  padding: 8px 0;
}

.reading-content {
  padding-top: 18px;
}

.reading-content>p,.document-details .panel>p {
  max-width: 85ch;
  line-height: 1.75;
}

.pdf-copy {
  margin: 0;
  max-width: none;
}

.pdf-copy h2 {
  margin-top: 30px;
}

.pdf-copy h2:first-child {
  margin-top: 0;
}

.document-details {
  scroll-margin-top: 100px;
}

.document-details .panel>h3 {
  margin-top: 30px;
}

.signature-grid+ .signature-grid {
  margin-top: -12px;
  font-size: 15px;
  color: var(--muted);
}

@media(max-width:700px) {
  .reading-group>summary {
    font-size: 18px;
  }
  .signature-grid {
    gap: 14px;
    font-size: 15px;
  }
  .signature-grid+ .signature-grid {
    font-size: 13px;
  }
  .reading-content>p,.document-details .panel>p {
    line-height: 1.7;
  }
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 25px;
  align-items: start;
}

.contact-panel h3 {
  margin-top: 0;
}

.contact-name {
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 5px;
  color: var(--deep);
}

.contact-person h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.contact-person+.contact-person {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-panel a {
  font-size: 16px;
}

.contact-panel>h3 {
  margin-bottom: 24px;
}

@media(max-width:700px) {
  .contacts-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
