@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #073f53;
  --navy-dark: #032f40;
  --navy-deep: #022737;
  --teal: #51d0c2;
  --teal-soft: #dff8f5;
  --lime: #acd62b;
  --orange: #ffb52c;
  --purple: #8d64d8;
  --ink: #153340;
  --muted: #647780;
  --surface: #ffffff;
  --background: #f5f9fa;
  --border: #dce8eb;
  --sidebar-width: 300px;
  --shadow: 0 20px 50px rgba(3, 47, 64, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', Arial, sans-serif;
  background: var(--background);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

/* MEJORA: accesibilidad de teclado - foco visible en elementos interactivos */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

/* MEJORA: respeta preferencia de "reducir movimiento" (countdown, órbitas) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tech-orbit {
    animation: none;
  }

  * {
    transition-duration: .01ms;
    animation-duration: .01ms;
  }
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 20px 20px;
  color: #fff;
  background: linear-gradient(180deg, #064e63 0%, var(--navy-deep) 68%, #021f2b 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 14px 0 40px rgba(3, 47, 64, .15);
}

.profile-box {
  text-align: left;
  padding: 8px 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.profile-img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.sidebar-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b9d8df;
}

.profile-box h1,
.profile-box h2,
.profile-box strong {
  display: block;
  margin: 0;
  line-height: .94;
}

.profile-box h1 {
  font-size: 42px;
  color: var(--teal);
  font-weight: 800;
}

.profile-box h2 {
  width: fit-content;
  padding: 2px 8px 5px;
  margin-top: 8px;
  font-size: 27px;
  background: var(--teal);
  color: var(--navy-deep);
}

.profile-box strong {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--lime);
  font-size: 26px;
}

.sidebar-tagline {
  margin: 14px 0 0;
  font-size: 11px;
  color: #bad3da;
}

.menu {
  padding-top: 20px;
}

.menu button,
.dropdown summary {
  width: 100%;
  border: 0;
  color: #eaf5f7;
  background: transparent;
  text-align: left;
  border-radius: 10px;
  transition: .2s ease;
}

.menu button {
  display: block;
  padding: 11px 13px;
  margin: 2px 0;
  font-size: 14px;
}

.menu button:hover,
.menu button.active {
  color: #fff;
  background: rgba(81, 208, 194, .17);
  transform: translateX(3px);
}

.menu-main-button {
  font-weight: 800;
  font-size: 15px !important;
}

.dropdown {
  margin: 8px 0;
}

.dropdown summary {
  list-style: none;
  padding: 12px 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .1);
}

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

.dropdown summary::after {
  content: '+';
  float: right;
  color: var(--teal);
  font-size: 20px;
  line-height: 16px;
}

.dropdown[open] summary::after {
  content: '−';
}

.dropdown[open] summary {
  background: rgba(0, 0, 0, .12);
}

.dropdown button {
  padding-left: 28px;
  color: #c6dde2;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #b9d1d6;
  font-size: 11px;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  overflow: hidden;
}

#content {
  min-height: 100vh;
}

.mobile-menu-button {
  display: none;
}

.sidebar-overlay {
  display: none;
}

.event-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: white;
  background: linear-gradient(118deg, #07576f 0%, #064d63 55%, #033d50 100%);
}

.event-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 100px;
  background: linear-gradient(0deg, rgba(2, 39, 55, .35), transparent);
  pointer-events: none;
}

.event-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  min-height: 610px;
  max-width: 1320px;
  margin: auto;
  padding: 70px clamp(34px, 6vw, 90px);
}

.event-hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #bdeee8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.event-hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: .9;
}

.event-hero h1 span {
  font-size: clamp(62px, 8vw, 112px);
  color: var(--teal);
  font-weight: 800;
}

.event-hero h1 strong {
  margin-top: 12px;
  padding: 7px 14px 12px;
  background: var(--teal);
  color: var(--navy);
  font-size: clamp(38px, 5vw, 70px);
}

.event-hero h1 em {
  margin-top: 12px;
  padding: 4px 12px;
  border: 2px solid rgba(81, 208, 194, .65);
  border-radius: 5px;
  color: var(--lime);
  font-size: clamp(35px, 4vw, 54px);
  font-style: normal;
}

.hero-subtitle {
  max-width: 630px;
  margin: 24px 0 14px;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.5;
  color: #e7f4f6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #b9dce2;
  font-size: 13px;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.countdown>div {
  min-width: 88px;
  padding: 13px 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}

.countdown strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  color: white;
}

.countdown span {
  display: block;
  margin-top: 7px;
  color: #b8d8de;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.countdown .event-live {
  min-width: 320px;
  text-align: left;
}

.countdown .event-live strong {
  color: var(--lime);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(3, 47, 64, .15);
}

.btn.primary {
  color: var(--navy-deep);
  background: var(--lime);
}

.btn.secondary {
  color: var(--navy);
  background: white;
  border-color: var(--border);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .35);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.hero-badge {
  position: relative;
  z-index: 3;
  width: 230px;
  height: 230px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  border: 2px solid rgba(81, 208, 194, .65);
  background: radial-gradient(circle at 40% 35%, rgba(172, 214, 43, .28), rgba(4, 67, 86, .88) 55%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
  color: var(--teal);
  font-size: 48px;
  font-weight: 800;
  line-height: .75;
}

.hero-badge small {
  font-size: 21px;
  color: white;
}

.hero-badge b {
  color: var(--lime);
  font-size: 38px;
}

.tech-orbit {
  position: absolute;
  border: 1px solid rgba(81, 208, 194, .38);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.tech-orbit::before,
.tech-orbit::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 22px rgba(81, 208, 194, .85);
}

.orbit-one {
  width: 330px;
  height: 330px;
}

.orbit-one::before {
  top: 28px;
  left: 42px;
}

.orbit-one::after {
  right: 8px;
  bottom: 80px;
}

.orbit-two {
  width: 410px;
  height: 410px;
  animation-direction: reverse;
  animation-duration: 25s;
}

.orbit-two::before {
  top: 180px;
  left: -7px;
}

.orbit-two::after {
  top: 40px;
  right: 50px;
}

.tech-tags {
  position: absolute;
  inset: auto 0 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.tech-tags span {
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--navy-deep);
  font-size: 10px;
  font-weight: 800;
}

.tech-tags span:nth-child(2) {
  background: var(--lime);
}

.tech-tags span:nth-child(3) {
  background: var(--orange);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .18;
}

.hero-glow-one {
  left: -220px;
  top: -250px;
  background: var(--teal);
}

.hero-glow-two {
  right: -250px;
  bottom: -300px;
  background: var(--lime);
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.event-slogan {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 25px;
  color: white;
  text-align: center;
  background: linear-gradient(rgba(3, 34, 47, .78), rgba(3, 34, 47, .78)), url('Images/banner-evento.jpg') center/cover;
}

.event-slogan p {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 700;
}

.section-shell,
.home-section {
  max-width: 1240px;
  margin: auto;
  padding: 80px clamp(26px, 5vw, 70px);
}

.intro-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.intro-copy h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
}

.intro-copy>p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-list {
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 11px 0;
  padding-left: 25px;
  color: #405b66;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 800;
}

.challenge-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 7px;
  background: #f4f8e8;
  color: #4f5c2b;
  font-size: 13px;
}

/* ===================== MEJORA: EJES TEMÁTICOS ===================== */
.axes-section {
  background: #fbfdfd;
}

.axes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1240px;
  margin: auto;
}

.axis-card {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform .2s ease;
}

.axis-card:hover {
  transform: translateY(-4px);
}

.axis-icon {
  font-size: 30px;
}

.axis-card h3 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
}

.axis-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ===================== MEJORA: MODALIDADES ===================== */
.modalities-section {
  background: white;
}

.modalities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 940px;
  margin: auto;
}

.modality-card {
  padding: 34px 28px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(160deg, var(--teal-soft), white);
  border: 1px solid var(--border);
}

.modality-icon {
  font-size: 34px;
}

.modality-card h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 19px;
}

.modality-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ===================== MEJORA: CRONOGRAMA (timeline) ===================== */
.timeline-section {
  background: #eff6f8;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  flex: 1 1 180px;
  padding: 22px 16px 0;
  text-align: center;
}

.timeline li::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 13px;
}

.timeline li::after {
  content: '';
  position: absolute;
  top: 37px;
  left: -42%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: -1;
}

.timeline li:first-child::after {
  display: none;
}

.timeline li strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.timeline li span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-note {
  margin: 30px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.home-section {
  max-width: none;
}

.home-section:nth-of-type(even) {
  background: white;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
  text-align: center;
}

.section-heading>span {
  width: 50px;
  height: 1px;
  margin-top: 17px;
  background: var(--teal);
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: .03em;
}

.section-heading p {
  max-width: 700px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.program-grid {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.program-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
}

.program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 31, 43, .92) 100%);
}

.program-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 26px 20px;
  color: white;
}

.program-day {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.program-date {
  display: block;
  margin: 3px 0 12px;
  color: var(--lime);
  font-size: 50px;
  line-height: .9;
}

.program-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.program-card p,
.program-card small {
  display: block;
  margin: 4px 0;
  color: #d6e8ec;
  font-size: 11px;
}

.program-card button {
  margin-top: 18px;
  padding: 8px 12px;
  border: 0;
  border-radius: 5px;
  background: var(--lime);
  color: var(--navy-deep);
  font-size: 10px;
  font-weight: 800;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.speakers-section {
  background: #fbfdfd;
}

.speaker-feature {
  max-width: 930px;
  min-height: 320px;
  margin: auto;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 48px;
  align-items: center;
}

.speaker-photo {
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  border-radius: 50% 50% 46% 54%;
  box-shadow: var(--shadow);
}

.speaker-photo span {
  display: none;
  font-size: 80px;
  font-weight: 800;
  color: rgba(7, 63, 83, .28);
}

.speaker-copy {
  position: relative;
}

.quote-mark {
  position: absolute;
  top: -55px;
  left: -25px;
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 1;
}

.speaker-copy h3 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
}

.speaker-copy h4 {
  margin: 7px 0 18px;
  color: var(--teal);
  font-size: 14px;
}

.speaker-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.speaker-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.speaker-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  color: var(--navy);
}

.speaker-controls span {
  color: var(--muted);
  font-size: 12px;
}

.allies-section {
  text-align: center;
  background: white;
}

.allies-track {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));

  border-top: 1px solid #edf2f3;
  border-bottom: 1px solid #edf2f3;
  background: #ffffff;
}

.ally-logo {
  min-height: 150px;
  padding: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-right: 1px solid #edf2f3;

  background: #ffffff;
  text-decoration: none;

  transition:
    transform 2s ease,
    box-shadow 2s ease,
    background 2s ease;
}   

.ally-logo:last-child {
  border-right: 0;
}

.ally-logo img {
  display: block;

  width: 100%;
  max-width: 150px;
  height: 70px;

  object-fit: contain;
  object-position: center;

  filter: grayscale(100%);
  opacity: 0.68;

  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.ally-logo:hover {
  position: relative;
  z-index: 2;

  background: #f9fcfc;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(5, 49, 65, 0.12);
}

.ally-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}

.ally-fallback {
  display: none;

  color: #60757d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.text-link {
  margin-top: 26px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
}

.location-section {
  background: #eff6f8;
}

.location-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  background: white;
  box-shadow: var(--shadow);
}

.map-wrapper {
  min-height: 420px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.location-card {
  padding: 50px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.location-icon {
  font-size: 34px;
}

.location-card h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 25px;
}

.location-card p {
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 32px clamp(26px, 6vw, 80px);
  color: #c8dde2;
  background: var(--navy-deep);
  font-size: 12px;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.markdown-page-header {
  padding: 70px clamp(28px, 7vw, 100px) 55px;
  color: white;
  background: linear-gradient(125deg, var(--navy), var(--navy-deep));
}

.markdown-page-header .page-icon {
  display: block;
  margin: 28px 0 14px;
  font-size: 44px;
}

.markdown-page-header p {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.markdown-page-header h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
}

.back-home {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  color: white;
  background: transparent;
}

.markdown-card {
  max-width: 1200px;
  margin: -25px auto 20px;
  padding: clamp(28px, 5vw, 60px);
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.markdown-card h1,
.markdown-card h2,
.markdown-card h3 {
  color: var(--navy);
  line-height: 1.25;
}

.markdown-card h1 {
  font-size: 40px;
}

.markdown-card h2 {
  margin-top: 42px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--teal-soft);
}

.markdown-card h3 {
  margin-top: 30px;
}

.markdown-card p,
.markdown-card li {
  color: #405b66;
}

.markdown-card a {
  color: #087d91;
  font-weight: 700;
}

.markdown-card img {
  max-width: 100%;
  border-radius: 9px;
}

.markdown-card blockquote {
  margin: 22px 0;
  padding: 17px 20px;
  border-left: 5px solid var(--lime);
  background: #f7faef;
}

.markdown-card code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf3f4;
}

.markdown-card pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 8px;
  color: #eaf5f7;
  background: var(--navy-deep);
}

.markdown-card pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

/* MEJORA: tablas del markdown (ej. cronograma del PDF) con scroll horizontal en pantallas chicas */
.markdown-card table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.markdown-card th,
.markdown-card td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.markdown-card th {
  color: white;
  background: var(--navy);
}

/* MEJORA: soporte para texto resaltado (<mark>) proveniente del contenido */
.markdown-card mark {
  padding: 1px 4px;
  border-radius: 3px;
  background: #fff3b0;
  color: var(--ink);
}

.content-footer {
  display: flex;
  justify-content: center;
  padding: 0 25px 70px;
}

.loading-card,
.error-card {
  max-width: 760px;
  margin: 100px auto;
  padding: 45px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.error-card>span {
  font-size: 45px;
}

.error-card code {
  display: block;
  max-width: 100%;
  margin: 16px auto;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #edf3f4;
}

.error-help {
  color: var(--muted);
}

.loader {
  width: 42px;
  height: 42px;
  margin: auto;
  border: 4px solid #dfeaec;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 260px;
  }

  .event-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-section {
    gap: 30px;
  }

  /* MEJORA: responsive ejes/modalidades en tablets */
  .axes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .allies-track {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .ally-logo:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 800px) {
  :root {
    --sidebar-width: 290px;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 80;
    top: 14px;
    left: 14px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: var(--navy);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform .25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 25, 35, .55);
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .event-hero-inner {
    min-height: 670px;
    padding: 95px 28px 55px;
  }

  .event-hero {
    min-height: 670px;
  }

  .event-hero h1 span {
    font-size: 62px;
  }

  .event-hero h1 strong {
    font-size: 39px;
  }

  .intro-section,
  .speaker-feature,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .section-shell,
  .home-section {
    padding: 60px 24px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 320px;
  }

  .speaker-feature {
    text-align: center;
  }

  .speaker-photo {
    margin: auto;
    width: 230px;
    height: 230px;
  }

  .quote-mark {
    left: 0;
  }

  .location-card {
    padding: 35px 28px;
  }

  .site-footer {
    flex-direction: column;
  }

  /* MEJORA: responsive ejes/modalidades/timeline en mobile */
  .axes-grid,
  .modalities-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline li::after {
    display: none;
  }

  .allies-track {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .ally-logo {
    border-bottom: 1px solid #edf2f3;
  }

  .ally-logo:nth-child(2n) {
    border-right: 0;
  }

  .ally-logo img {
    max-width: 135px;
    height: 65px;
  }

}

@media (max-width: 480px) {
  .event-hero h1 span {
    font-size: 51px;
  }

  .event-hero h1 strong {
    font-size: 31px;
  }

  .event-hero h1 em {
    font-size: 34px;
  }

  .countdown>div {
    min-width: calc(50% - 5px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-heading>span {
    display: none;
  }

  .markdown-card {
    margin: -18px 14px 40px;
  }

  .markdown-page-header {
    padding-top: 90px;
  }

  .allies-track {
    grid-template-columns: 1fr;
  }

  .ally-logo {
    min-height: 125px;
    border-right: 0;
    border-bottom: 1px solid #edf2f3;
  }

  .ally-logo:last-child {
    border-bottom: 0;
  }

  .ally-logo img {
    max-width: 170px;
    height: 65px;
  }
}

footer.site-footer a {
    color: white;
}

.shadow_bot {
    -webkit-box-shadow: 1px 15px 44px -20px #000000; 
    box-shadow: 1px 15px 44px -20px #000000;
}

/* Prepara los elementos que se animarán al hacer scroll */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scroll-animate.animated {
  opacity: 1;
}


/* =====================================================
   FOOTER OFICIAL EXPOTECNOLÓGICA 2026
====================================================== */
/* =====================================================
   FOOTER INSTITUCIONAL - ESTILO PASCUAL BRAVO
====================================================== */
.site-footer-pb {
  background-color: #072a38; /* Azul institucional oscuro */
  color: #e2e8f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 3rem 1.5rem 0 1.5rem;
  border-top: 4px solid #52c9be; /* Color de acento cyan/verde */
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.footer-col h4 {
  color: #52c9be;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.footer-logo {
  max-height: 110px;
  width: auto;
  margin-bottom: 1rem;
}

.accreditation {
  color: #52c9be !important;
  font-weight: 600;
}

.resolution {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
}

.city-tag {
  font-size: 0.8rem !important;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Enlaces del Footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a, .footer-col a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover, .footer-col a:hover {
  color: #52c9be;
  padding-left: 4px;
}

/* Badges de Certificación */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  background-color: rgba(82, 201, 190, 0.15);
  color: #52c9be;
  border: 1px solid #52c9be;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.cert-text {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
}

/* Barra inferior de Copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .site-footer-pb {
    padding: 2rem 1rem 0 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* =====================================================
   BANNER DESTACADO / SLOGAN PREMIUM
====================================================== */


.event-slogan-card {
  background: linear-gradient(135deg, #072a38 0%, #051f2d 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(5, 31, 45, 0.4), 0 0 30px rgba(82, 201, 190, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Efecto de resplandor ambiental al fondo */
.event-slogan-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(82, 201, 190, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* Insignia superior */
.slogan-badge {
  background: rgba(82, 201, 190, 0.12);
  border: 1px solid rgba(82, 201, 190, 0.4);
  color: #52c9be;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Texto principal */
.slogan-main-text {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  max-width: 1000px;
}

.slogan-main-text span {
  color: #52c9be;
  padding: 0 0.4rem;
}

/* Indicadores / Estadísticas */
.slogan-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 600px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item strong {
  color: #52c9be;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.stat-item span {
  color: #cbd5e1;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Adaptación Móvil */
@media (max-width: 640px) {
  .event-slogan-card {
    padding: 2rem 1.25rem;
  }
  
  .slogan-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

/* =====================================================
   SECCIÓN INTRODUCCIÓN Y VIDEO (VERSIONS PREMIUM)
====================================================== */
.intro-section-premium {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #072a38;
  border: 1px solid rgba(82, 201, 190, 0.25);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(5, 31, 45, 0.3);
}

/* VIDEO CONTAINER */
.video-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  font-style: italic;
}

/* CONTENIDO */
.intro-copy-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kicker-tag {
  color: #52c9be;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.intro-copy-card h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.intro-description {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* LISTA DE BENEFICIOS */
.feature-pills {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.feature-pills li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-pills li:hover {
  background: rgba(82, 201, 190, 0.08);
  border-color: rgba(82, 201, 190, 0.3);
}

.pill-icon {
  font-size: 1.1rem;
}

/* BOTONES DE ACCIÓN */
.intro-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}