/* GEID 2027 · Colores del banner y tipografías locales. */
@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --navy: #12335b;
  --ink: #233e56;
  --text: #425469;
  --cyan: #0081a6;
  --mist: #f5f7fa;
  --line: #e2e7ef;
  --body-font: "Source Sans 3", "Segoe UI", sans-serif;
  --heading-font: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--body-font);
  font-size: 19px;
  line-height: 1.65;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 5px;
}

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

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

h1,
h2,
h3 {
  font-family: var(--heading-font);
  color: var(--navy);
  line-height: 1.35;
}

h1 {
  margin: 12px 0 30px;
  max-width: 970px;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -0.7px;
}

h2 {
  font-size: clamp(26px, 2.7vw, 34px);
  font-weight: 650;
  letter-spacing: -0.5px;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 18px;
  padding: 12px 20px;
  background: #fff;
  z-index: 30;
}

.skip-link:focus {
  top: 10px;
}

/* Menú ligero: marca independiente y enlaces amplios. */
.header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: block;
  flex-shrink: 0;
}

.brand img {
  width: 228px;
  max-height: 74px;
  object-fit: contain;
}

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

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 9px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: var(--cyan);
}

.desktop-nav .nav-download {
  margin-left: 8px;
  padding-inline: 18px;
  background: var(--navy);
  border-radius: 5px;
  color: #fff;
}

.desktop-nav .nav-download:hover {
  color: #fff;
  background: #20547b;
}

.mobile-menu {
  display: none;
}

/* Banner íntegro, sin recortes, y datos legibles en texto real. */
.hero {
  padding-top: 24px;
}

.banner {
  width: 100%;
  background: #f4f8fc;
}

.hero-details {
  padding-top: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--cyan);
}

.event-facts {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  margin: 0;
}

.event-facts > div {
  padding-left: 20px;
  border-left: 2px solid #c9d4e1;
}

.event-facts dt {
  font-size: 15px;
  font-weight: 650;
  color: #65758a;
  margin-bottom: 4px;
}

.event-facts dd {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

/* Una jornada: programa íntegro y jerarquía clara por bloques. */
.program-section {
  padding-block: 56px 70px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.button:hover {
  color: #fff;
  background: #20547b;
}

.schedule {
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.session {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}

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

.session-time {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.session-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}

.session.block {
  padding-block: 25px;
  background: var(--navy);
  border-bottom: 0;
}

.block .session-time {
  color: #fff;
}

.block .session-title {
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.1px;
}

.session.break {
  background: var(--mist);
}

.break .session-title {
  font-weight: 600;
}

.session.featured {
  border-left: 4px solid var(--cyan);
  padding-left: 24px;
  background: #f5f8fa;
}

.featured .session-title {
  font-weight: 650;
}

/* Sede: nombre confirmado en el documento y mapa del hospital. */
.venue-section {
  padding-block: 60px;
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.venue-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 54px;
}

.venue-copy h2 {
  margin-bottom: 22px;
}

.venue-name {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.map-link {
  display: inline-block;
  padding-block: 12px;
  margin-top: 15px;
  font-weight: 600;
}

.venue-grid iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8edf3;
}

footer {
  background: var(--navy);
  color: #fff;
  padding-block: 25px;
  font-size: 16px;
  line-height: 1.6;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 25px;
  text-decoration: none;
  box-shadow: 0 3px 10px #12335b18;
}

/* Tableta y menú nativo sin JavaScript. */
@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: flex;
    gap: 9px;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 10px 14px;
    min-height: 48px;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    inset: 96px 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px #12335b0d;
  }

  .mobile-menu nav a {
    color: var(--navy);
    padding: 12px;
    min-height: 48px;
    text-decoration: none;
    font-weight: 600;
  }

  .mobile-menu nav a:hover {
    background: var(--mist);
  }

  .venue-grid {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }

  .session {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding-inline: 22px;
  }

  .session.featured {
    padding-left: 18px;
  }
}

/* Móvil: horarios sobre el título, banner completo y datos en una columna. */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 92px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 80px;
    gap: 12px;
  }

  .brand img {
    width: 170px;
    max-height: 58px;
  }

  .mobile-menu nav {
    top: 80px;
    padding-inline: 18px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-details {
    padding-top: 26px;
    padding-bottom: 30px;
  }

  h1 {
    font-size: 25px;
    line-height: 1.45;
    letter-spacing: -0.4px;
    margin-bottom: 25px;
  }

  .event-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }

  .event-facts dd {
    font-size: 19px;
  }

  .program-section {
    padding-block: 38px 45px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 25px;
  }

  .button {
    width: 100%;
  }

  .session {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 20px;
  }

  .session.featured {
    padding-left: 16px;
  }

  .session-title {
    font-size: 19px;
  }

  .block .session-title {
    font-size: 17px;
    line-height: 1.6;
  }

  .venue-section {
    padding-block: 40px;
  }

  .venue-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .venue-name {
    font-size: 21px;
  }

  .venue-grid iframe {
    height: 280px;
  }

  .back-top {
    right: 12px;
    bottom: 12px;
  }
}

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

  .desktop-nav a {
    transition: none;
  }
}
