@import url("/paleta-coinedu-2026.css?v=1");
@import url("/logos-transmision-2026.css?v=1");
:root {
  color-scheme: light;
  --wine: #741629;
  --deep-wine: #3a0b15;
  --plum: #4c1020;
  --bronze: #88581c;
  --gold: #f1c984;
  --sand: #f9f3e9;
  --paper: #fffdf8;
  --ink: #261a1d;
  --muted: #665157;
  --edge: #e8dacf;
  --heading: 'Playfair Display', Georgia, serif;
  --body: Montserrat, system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 500 16px/1.55 var(--body);
}

a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, iframe:focus-visible {
  outline: 3px solid #985f21;
  outline-offset: 4px;
}
.hero a:focus-visible, .top a:focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }

.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip {
  position: absolute;
  inset: 0 auto auto 1rem;
  z-index: 4;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  background: white;
  color: var(--ink);
}
.skip:focus { transform: none; }

.top {
  background: var(--deep-wine);
  color: var(--paper);
  border-bottom: 1px solid #f1c98431;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .97rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span:last-child { color: var(--gold); }
.brand-icon {
  flex: 0 0 11px;
  height: 11px;
  margin-right: 3px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}
.bar nav { display: flex; gap: clamp(12px, 3vw, 32px); font-size: .8rem; font-weight: 700; }
.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.bar nav a:hover, .bar nav a[aria-current] { color: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 87% 95%, #a03945 0%, transparent 53%),
    linear-gradient(120deg, var(--deep-wine), #551326 66%, #6c1a30);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background: repeating-linear-gradient(135deg, transparent 0 8px, #f1c98414 8px 9px, transparent 9px 17px);
  mask-image: linear-gradient(100deg, transparent 45%, black);
}
.hero > .wrap { padding-block: 20px clamp(36px, 5vw, 67px); }
.eyebrow {
  margin-bottom: 15px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 {
  font: 600 clamp(2.4rem, 5.5vw, 5rem)/1.02 var(--heading);
  letter-spacing: -.038em;
  text-wrap: balance;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #f9dfbb;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.crumb:hover { text-decoration: underline; }
.detail-hero > .wrap { padding-block: 16px clamp(30px, 4vw, 58px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(24px, 5.4vw, 76px);
  margin-top: 16px;
}
.detail-hero h1 {
  font-size: clamp(2.3rem, 4.65vw, 4.2rem);
  line-height: 1.03;
  text-wrap: initial;
}
.speaker-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: clamp(18px, 2.2vw, 29px);
}
.speaker { font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 800; }
.affiliation { margin-top: 2px; color: #f2d5cc; font-size: .76rem; }
.stage-schedule {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin-top: 19px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}
.stage-schedule:hover { text-decoration: underline; }
.stage-schedule small { display: block; margin-top: 1px; color: #f2d5cc; font-size: .72rem; font-weight: 600; }
.stage-schedule .icon-down { flex-shrink: 0; }
.primary {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin-top: 23px;
  padding: 10px 18px;
  border-radius: 7px;
  color: var(--deep-wine);
  background: var(--gold);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}
.primary:hover { background: #ffe2ac; }
.portrait {
  flex: 0 0 59px;
  width: 59px;
  aspect-ratio: 1;
  padding: 3px;
  border: 1px solid #f7cb8399;
  border-radius: 50%;
}
.headshot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #e3c6ba;
  object-fit: cover;
  object-position: center 38%;
}

.listing > .listing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.33fr) minmax(270px, .95fr);
  align-items: center;
  gap: clamp(34px, 8vw, 104px);
  padding-block: clamp(36px, 5.6vw, 65px);
}
.listing h1 { font-size: clamp(3.5rem, 7.3vw, 6.5rem); line-height: .95; text-wrap: wrap; }
.listing .primary { margin-top: 32px; }
.spotlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: 1.48;
  padding: 8px;
  border: 1px solid #f1c9847a;
  border-radius: 90px 9px 90px 9px;
}
.spotlights a { position: relative; overflow: hidden; background: #edd8ca; border-radius: 4px; }
.spotlights a:first-child { border-top-left-radius: 80px; }
.spotlights a:last-child { border-bottom-right-radius: 80px; }
.spotlight { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.spotlights a:hover img { filter: saturate(1.18); }

.catalog { padding-block: 22px 50px; }
.catalog-heading {
  display: grid;
  gap: 12px;
  padding: clamp(13px, 2vw, 20px);
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: var(--paper);
}
.catalog-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.catalog-heading .local { margin: 0; }
.search-label { display: block; margin-bottom: 6px; color: var(--plum); font-size: .78rem; font-weight: 800; }
.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding-inline: 13px 6px;
  border: 1px solid #dac1b8;
  border-radius: 8px;
  background: #fffefa;
}
.search-box:focus-within { border-color: var(--wine); }
.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 3px 1px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
}
.search-box input:focus-visible { outline-offset: 0; }
.icon-search { position: relative; width: 14px; height: 14px; margin-right: 3px; border: 1.5px solid var(--wine); border-radius: 50%; }
.icon-search::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 1.5px; background: var(--wine); transform: rotate(45deg); }
.search-box button {
  min-height: 42px;
  padding-inline: 10px;
  border: 0;
  border-radius: 6px;
  background: #f5e9e4;
  color: var(--wine);
  font-size: .73rem;
  font-weight: 800;
  cursor: pointer;
}
.search-box button:hover { background: #edd9d2; }
.search-count { margin-top: 16px; color: var(--muted); font-size: .81rem; font-weight: 700; }
.empty-results { margin-top: 10px; padding: 18px; border: 1px solid var(--edge); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .9rem; }
.dates { display: flex; flex-wrap: wrap; gap: 7px; }
.dates a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: var(--paper);
  color: var(--wine);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}
.dates a:hover { border-color: var(--wine); }
.day { padding-top: 27px; scroll-margin-top: 12px; }
.day + .day { margin-top: 20px; }
.day-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
}
.day-heading::after { content: ""; height: 1px; flex: 1; background: var(--edge); }
.day-heading h2 { font: 600 clamp(1.55rem, 3.6vw, 2.35rem)/1.18 var(--heading); color: var(--plum); }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  display: grid;
  grid-template-columns: clamp(66px, 7vw, 100px) minmax(0, 1fr);
  gap: 15px;
  height: 100%;
  min-height: 170px;
  padding: 15px;
  border: 1px solid var(--edge);
  border-top: 2px solid #c2965e;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 30px #3a0b1507;
  text-decoration: none;
}
.tile:hover { border-color: #ad756f; background: #fffaf0; }
.tile-portrait { height: 100%; max-height: 142px; overflow: hidden; border-radius: 6px; background: #ead7c6; }
.thumb { display: block; width: 100%; height: 100%; min-height: 110px; object-fit: cover; object-position: center 38%; }
.tile-copy { display: flex; align-items: flex-start; flex-direction: column; }
.tile h3 { margin: 6px 0 7px; font: 700 1.07rem/1.19 var(--heading); }
.tile p { margin-bottom: 6px; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.tile-date, .tile-action { color: var(--wine); font-size: .69rem; font-weight: 800; }
.tile-date { letter-spacing: .06em; }
.tile-action { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 5px; }

.viewing { padding-block: clamp(20px, 3vw, 35px) 20px; }
.video {
  min-width: 0;
  padding: clamp(12px, 1.55vw, 18px);
  border: 1px solid #f1c98453;
  border-radius: 16px;
  background: #290b15b5;
  box-shadow: 0 16px 38px #26091049;
  scroll-margin-top: 12px;
}
.video-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.video-title h2 { color: var(--paper); font: 600 clamp(1.15rem, 2.2vw, 1.55rem)/1.14 var(--heading); }
.side h2 { font: 700 clamp(1.2rem, 2.3vw, 1.65rem)/1.16 var(--heading); color: var(--plum); }
.youtube {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid #f1c98470;
  border-radius: 5px;
  color: #ffdead;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}
.player { min-height: 200px; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; background: #201018; }
.player iframe { display: block; width: 100%; height: 100%; min-height: inherit; border: 0; }
.watch-links { display: flex; flex-wrap: wrap; gap: 1px 18px; margin-top: 4px; }
.watch { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #ffe4bd; font-size: .75rem; font-weight: 800; }
.side {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(0, 1.3fr);
  gap: clamp(15px, 3vw, 36px);
  align-items: center;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid var(--edge);
  border-top: 3px solid #b9823c;
  border-radius: 13px;
  background: var(--paper);
  scroll-margin-top: 12px;
}
.schedule-details { min-width: 0; }
.session-actions { min-width: 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #774715;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a87736; }
.session-date { margin-top: 12px; font-size: .91rem; font-weight: 800; }
.time { margin-top: 3px; color: var(--wine); font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.time span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.local { margin-top: 11px; color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
#local-time { padding: 8px 10px; border-left: 2px solid #b9823c; background: #f9f0e2; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #e0c9be;
  border-radius: 6px;
  background: var(--paper);
  color: var(--wine);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 800;
}
.button span { font-size: 1rem; line-height: 1; }
.button:hover { border-color: #ae7878; background: #f8ede5; }
.button-calendar { border-color: var(--wine); background: var(--wine); color: white; }
.button-calendar:hover { background: var(--deep-wine); }
#share-url { width: 100%; margin-top: 8px; padding: 7px; border: 1px solid var(--edge); border-radius: 6px; }

.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 34px; }
.related-link {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
}
.related-link.next { grid-column: 2; }
.related-link:hover { border-color: #ad756f; }
.related-link span { color: var(--wine); font-size: .72rem; font-weight: 800; }
.related-link strong { font: 700 1.04rem/1.22 var(--heading); overflow-wrap: anywhere; }
.related-link small { color: var(--muted); font-size: .72rem; }
.page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px 27px; border-top: 1px solid var(--edge); color: var(--muted); font-size: .74rem; }
.page-foot a { color: var(--wine); font-weight: 800; }

.icon-play { display: inline-block; border-block: 5px solid transparent; border-inline-start: 8px solid currentColor; }
.icon-external { position: relative; display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; }
.icon-external::before { content: ""; position: absolute; right: 0; top: 0; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.icon-external::after { content: ""; position: absolute; top: 4px; left: 0; width: 10px; height: 1.5px; background: currentColor; transform: rotate(-45deg); }
.icon-back, .icon-down { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.icon-down { transform: rotate(-45deg); }

@media (max-width: 940px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 728px) {
  .wrap { width: calc(100% - 38px); }
  .listing > .listing-grid { grid-template-columns: minmax(0, 1fr) minmax(170px, .76fr); gap: 24px; }
  .listing h1 { font-size: clamp(2.85rem, 8.2vw, 4.7rem); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }
  .detail-hero h1 { font-size: clamp(2.3rem, 7vw, 3.7rem); }
  .side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 30px); }
  .bar { min-height: 58px; gap: 8px; }
  .brand { gap: 5px; font-size: .73rem; }
  .brand-icon { flex-basis: 8px; height: 8px; }
  .bar nav { gap: 11px; font-size: .65rem; }
  .listing > .listing-grid { grid-template-columns: 1fr; padding-block: 33px 28px; gap: 23px; }
  .listing h1 { font-size: clamp(2.85rem, 11.7vw, 4.15rem);  }
  .listing .primary { margin-top: 18px; }
  .spotlights { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; aspect-ratio: 4.15; gap: 4px; padding: 4px; border-radius: 26px 3px 26px 3px; }
  .spotlights a:first-child { border-top-left-radius: 22px; }
  .spotlights a:last-child { border-bottom-right-radius: 22px; }
  .detail-hero > .wrap { padding-block: 8px 30px; }
  .hero-grid { margin-top: 5px; }
  .detail-hero h1 { font-size: clamp(2.02rem, 8.6vw, 3.12rem); }
  .speaker-lockup { margin-top: 14px; }
  .portrait { flex-basis: 47px; width: 47px; }
  .stage-schedule { margin-top: 9px; }
  .video { padding: 9px; border-radius: 10px; }
  .actions { grid-template-columns: 1fr; }
  .catalog-heading { gap: 10px; }
  .dates { gap: 5px; }
  .dates a { font-size: .67rem; padding-inline: 8px; }
  .tiles { grid-template-columns: 1fr; gap: 8px; }
  .tile { grid-template-columns: 72px 1fr; min-height: 129px; gap: 11px; padding: 11px; }
  .thumb { min-height: 100px; }
  .tile h3 { font-size: 1.06rem; }
  .related { grid-template-columns: 1fr; gap: 8px; }
  .related-link.next { grid-column: 1; }
}


/* Identidad oficial del congreso en el encabezado de magistrales. */
.top .bar .brand { display: inline-flex; align-items: center; gap: 0; font-size: 0; }
.top .bar .brand > span:last-child { font-size: 0; }
.top .bar .brand .brand-icon { display: block; width: clamp(82px, 14vw, 108px); height: auto; aspect-ratio: 1224 / 586; box-sizing: content-box; flex: none; padding: 2px 5px; border: 0; border-radius: 4px; transform: none; background: #fff url("/coinedu-logo-2026.png") center / contain no-repeat; background-origin: content-box; }
