:root {
  --gold-50: #fff8db;
  --gold-100: #f7edb0;
  --gold-200: #ecd96b;
  --gold-300: #d9bf2f;
  --gold-400: #c8a91b;
  --gold-500: #b89211;
  --gold-600: #98760f;

  --navy-950: #060d15;
  --navy-900: #091420;
  --navy-800: #102133;
  --slate-700: #32414f;
  --stone-300: #cbbf9f;

  --ivory: #f7f2e8;
  --white: #ffffff;

  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.22);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ivory);
  background:
    radial-gradient(circle at top right, rgba(236, 217, 107, 0.18), transparent 26%),
    radial-gradient(circle at 15% 10%, rgba(255, 248, 219, 0.08), transparent 20%),
    linear-gradient(135deg, #07111c 0%, #0d1824 38%, #142536 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
  opacity: 0.25;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(9, 20, 32, 0.72);
  border-bottom: 1px solid rgba(236, 217, 107, 0.14);
}

.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-200), var(--gold-500));
  color: var(--navy-900);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 20px rgba(184, 146, 17, 0.22);
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--gold-100);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: rgba(247, 242, 232, 0.86);
  transition: 0.25s ease;
}

.nav a:hover {
  background: rgba(236, 217, 107, 0.12);
  color: var(--white);
}

.hero {
  position: relative;
  padding: 88px 0 54px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(236, 217, 107, 0.2);
  border-radius: 999px;
  color: var(--gold-100);
  background: rgba(236, 217, 107, 0.06);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: var(--white);
}

.hero h1 span {
  display: block;
  color: var(--gold-200);
  text-shadow: 0 0 40px rgba(236, 217, 107, 0.12);
}

.hero p {
  max-width: 62ch;
  color: rgba(247, 242, 232, 0.82);
  font-size: 1.04rem;
  line-height: 1.75;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 18px 30px rgba(184, 146, 17, 0.24);
}

.btn-secondary {
  border: 1px solid rgba(236, 217, 107, 0.24);
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.02);
}

.hero-panel {
  position: relative;
  padding: 28px;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(236, 217, 107, 0.1), rgba(16, 33, 51, 0.65));
  border: 1px solid rgba(236, 217, 107, 0.16);
  box-shadow: var(--shadow-lg);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-panel::before {
  content: "1926 · 2026";
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: rgba(236, 217, 107, 0.65);
  font-weight: 800;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 20, 32, 0.55);
  border: 1px solid rgba(236, 217, 107, 0.15);
  color: var(--gold-100);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-panel h2 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
}

.hero-panel p {
  margin: 0;
  color: rgba(247, 242, 232, 0.78);
  line-height: 1.8;
  max-width: 44ch;
}

.hero-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold-200);
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.82rem;
  color: rgba(247, 242, 232, 0.72);
  line-height: 1.4;
}

.section {
  padding: 34px 0 28px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
}

.section-copy {
  max-width: 60ch;
  color: rgba(247, 242, 232, 0.76);
  line-height: 1.75;
  margin: 10px 0 0;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.theme-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(236, 217, 107, 0.12);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.theme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(6, 13, 21, 0.96) 8%, rgba(6, 13, 21, 0.7) 42%, rgba(6, 13, 21, 0.18) 100%);
}

.theme-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at top right, rgba(236, 217, 107, 0.14), transparent 24%);
  opacity: 0.9;
}

.theme-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
}

.theme-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(236, 217, 107, 0.14);
  border: 1px solid rgba(236, 217, 107, 0.26);
  color: var(--gold-100);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
}

.theme-card h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
}

.theme-card p {
  margin: 0 0 16px;
  color: rgba(247, 242, 232, 0.78);
  line-height: 1.65;
  font-size: 0.96rem;
  max-width: 30ch;
}

.theme-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-100);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.theme-saluda { background-image: url("./img/saluda.png"); }
.theme-gala { background-image: url("./img/gala.png"); }
.theme-congres { background-image: url("./img/congres.png"); }
.theme-expo { background-image: url("./img/expo.png"); }
.theme-libro { background-image: url("./img/libro.png"); }
.theme-pelicula { background-image: url("./img/pelicula.png"); }
.theme-selecciones { background-image: url("./img/selecciones.png"); }
.theme-camiseta { background-image: url("./img/camiseta.png"); }

.palette {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  margin-top: 8px;
}

.panel {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(236, 217, 107, 0.12);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

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

.swatch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.swatch-dot {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.swatch b {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
}

.swatch span {
  color: rgba(247, 242, 232, 0.7);
  font-size: 0.92rem;
}

.guidelines {
  display: grid;
  gap: 14px;
}

.guide-item {
  padding: 16px 18px;
  border-left: 3px solid var(--gold-300);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 16px 16px 0;
  color: rgba(247, 242, 232, 0.8);
  line-height: 1.7;
}

.guide-item strong {
  color: var(--gold-100);
}

.sponsors {
  position: relative;
  background:
    linear-gradient(180deg, rgba(12, 24, 38, 0.98) 0%, rgba(16, 33, 51, 0.98) 100%);
}

.sponsors::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(236, 217, 107, 0.08), transparent 26%);
}

.sponsors-header {
  margin-bottom: 2rem;
}

#patrocinadores .section-title {
  color: #d9bf2f;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

/* =========================
   PATROCINADORES
   Máximo tamaño sin recortar
========================= */
.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.75 / 1;
  min-height: 128px;
  padding: 0.45rem;
  background: #ffffff;
  border: 1px solid rgba(203, 191, 159, 0.65);
  border-radius: 18px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 191, 47, 0.85);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(217, 191, 47, 0.16);
}

.sponsor-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.12rem;
  transform: scale(1.08);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.sponsor-card:hover img {
  transform: scale(1.12);
}

.footer {
  padding: 54px 0 70px;
}

.footer-box {
  border-radius: calc(var(--radius-xl) + 4px);
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(236, 217, 107, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(236, 217, 107, 0.12), rgba(16, 33, 51, 0.82));
  border: 1px solid rgba(236, 217, 107, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.footer-box h3 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer-box p {
  margin: 0;
  max-width: 60ch;
  color: rgba(247, 242, 232, 0.75);
  line-height: 1.7;
}

@media (max-width: 1160px) {
  .hero-grid,
  .palette {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar-inner,
  .section-header,
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-numbers,
  .swatches,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    min-height: 380px;
  }

  .hero-panel {
    padding: 22px;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .sponsor-card {
    aspect-ratio: 1.45 / 1;
    min-height: 118px;
    padding: 0.3rem;
    background: #ffffff;
    border: 1px solid rgba(217, 191, 47, 0.35);
    border-radius: 12px;
  }

  .sponsor-card img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.05rem;
    transform: scale(1.14);
  }

  .sponsor-card:hover img {
    transform: scale(1.16);
  }
}

.brand-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.president-message {
  margin: 0 0 28px;
  padding: 28px;
  border-radius: calc(var(--radius-xl) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(236, 217, 107, 0.12), rgba(16, 33, 51, 0.82));
  border: 1px solid rgba(236, 217, 107, 0.18);
  box-shadow: var(--shadow-md);
}

.president-message-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.1;
  color: var(--white);
}

.president-message-body {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 18px;
}

.president-message-body p {
  max-width: none;
  margin-bottom: 16px;
  color: rgba(247, 242, 232, 0.86);
  font-size: 1rem;
  line-height: 1.8;
}

.president-message-body p strong {
  color: var(--gold-100);
}

.president-signature {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(236, 217, 107, 0.16);
  display: grid;
  gap: 4px;
}

.president-signature strong {
  color: var(--white);
  font-size: 1.05rem;
}

.president-signature span {
  color: rgba(247, 242, 232, 0.8);
}

.institution-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.institution-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(203, 191, 159, 0.72);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.institution-logo-card img {
  width: 100%;
  height: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
}

.institution-logo-card-wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 300px;
  }

  .president-message {
    padding: 22px;
  }

  .president-message-body {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .institution-logos {
    grid-template-columns: 1fr;
  }

  .institution-logo-card-wide {
    grid-column: auto;
  }
}


/* Ajuste fino del header en móvil */
@media (max-width: 760px) {
  .topbar {
    backdrop-filter: blur(14px);
  }

  .topbar-inner {
    min-height: auto;
    padding: 12px 0 10px;
    gap: 12px;
    align-items: stretch;
  }

  .brand {
    width: 100%;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.05em;
  }

  .brand > div {
    font-size: 0.95rem;
    line-height: 1.05;
  }

  .brand small {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    margin-top: 4px;
  }

  .brand-logo {
    width: 96px;
    max-width: 32vw;
  }

  .nav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .topbar-inner {
    padding: 10px 0 8px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 78px;
    max-width: 28vw;
  }

  .brand > div {
    font-size: 0.82rem;
  }

  .brand small {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .nav a {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}


/* =========================================================
   PREMIUM HEADER / MOBILE NAV OVERRIDES
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 13, 21, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 217, 107, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.topbar-inner {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-logo {
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
  max-height: 52px !important;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.22));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-title {
  display: block;
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--gold-100);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.18em;
  opacity: 0.9;
  margin-top: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(247, 242, 232, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(236, 217, 107, 0.12);
  border-color: rgba(236, 217, 107, 0.2);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(236, 217, 107, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.nav-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .topbar-inner {
    min-height: 80px;
  }

  .brand-logo {
    height: 44px !important;
    max-height: 44px !important;
  }

  .brand-title {
    font-size: 0.94rem;
  }

  .nav a {
    padding: 10px 12px;
    font-size: 0.86rem;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    min-height: 72px;
    padding: 12px 0;
  }

  .brand {
    gap: 10px;
    max-width: calc(100% - 68px);
  }

  .brand-logo {
    height: 34px !important;
    max-height: 34px !important;
  }

  .brand-title {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

  .brand small {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(92vw, 360px);
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(9, 20, 32, 0.98);
    border: 1px solid rgba(236, 217, 107, 0.16);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.04);
  }

  .hero {
    padding-top: 56px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .topbar-inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    max-width: calc(100% - 62px);
  }

  .brand-logo {
    height: 28px !important;
    max-height: 28px !important;
  }

  .brand-title {
    font-size: 0.74rem;
  }

  .brand small {
    font-size: 0.5rem;
    letter-spacing: 0.11em;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .nav {
    width: min(94vw, 320px);
    right: 0;
  }
}


/* =========================================================
   FINAL HARD OVERRIDE · MOBILE LOGO FIX
   ========================================================= */
.topbar .brand {
  flex: 0 1 auto;
  min-width: 0;
}

.topbar .brand-logo,
.topbar .brand img.brand-logo,
.topbar a.brand img {
  display: block !important;
  width: auto !important;
  height: 52px !important;
  max-width: 160px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 860px) {
  .topbar .brand-logo,
  .topbar .brand img.brand-logo,
  .topbar a.brand img {
    height: 28px !important;
    max-height: 28px !important;
    max-width: 120px !important;
  }

  .topbar .brand-copy {
    display: none !important;
  }

  .topbar-inner {
    min-height: 58px !important;
    padding: 10px 0 !important;
    gap: 10px !important;
  }

  .topbar .brand {
    max-width: calc(100% - 56px) !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 520px) {
  .topbar .brand-logo,
  .topbar .brand img.brand-logo,
  .topbar a.brand img {
    height: 22px !important;
    max-height: 22px !important;
    max-width: 96px !important;
  }

  .topbar-inner {
    min-height: 52px !important;
    padding: 8px 0 !important;
  }

  .nav-toggle {
    width: 40px !important;
    height: 40px !important;
  }
}


/* =========================================================
   PREMIUM TOTAL · PRESIDENTE + INSTITUCIONES + SPONSORS
   ========================================================= */

.hero-copy {
  min-width: 0;
}

.president-message {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(236, 217, 107, 0.14), transparent 24%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03) 36%, rgba(16, 33, 51, 0.9) 100%);
  border: 1px solid rgba(236, 217, 107, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.president-message-top {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.president-portrait {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(236, 217, 107, 0.18);
  box-shadow: 0 20px 42px rgba(0,0,0,0.24);
}

.president-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(6,13,21,0.58), transparent);
  pointer-events: none;
}

.president-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

.president-message-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 0;
}

.president-message-header {
  margin-bottom: 14px;
}

.president-message-header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.08;
}

.president-lead {
  margin: 0;
  max-width: none;
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(247, 242, 232, 0.9);
}

.president-message-body {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding-right: 0;
  columns: 2;
  column-gap: 26px;
}

.president-message-body p {
  break-inside: avoid;
  margin: 0 0 16px;
}

.president-signature {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(236, 217, 107, 0.18);
}

.hero-panel {
  padding: 30px;
}

.institution-logos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.institution-logo-card {
  min-height: 126px;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,242,232,0.96));
  border: 1px solid rgba(203, 191, 159, 0.56);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.institution-logo-card-wide {
  grid-column: 1 / -1;
  min-height: 154px;
}

.institution-logo-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.sponsors-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
}

.sponsor-card {
  aspect-ratio: 1.8 / 1;
  min-height: 140px;
  padding: 0.28rem;
  border-radius: 20px;
}

.sponsor-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.02rem;
  transform: none;
}

.sponsor-card:hover img {
  transform: scale(1.03);
}

@media (max-width: 1160px) {
  .president-message-body {
    columns: 1;
  }
}

@media (max-width: 860px) {
  .president-message {
    padding: 22px;
  }

  .president-message-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .president-portrait {
    max-width: 360px;
  }

  .president-message-body {
    columns: 1;
  }

  .hero-panel {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .institution-logos {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .institution-logo-card,
  .institution-logo-card-wide {
    grid-column: auto;
    min-height: 118px;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.82rem;
  }

  .sponsor-card {
    aspect-ratio: 1.55 / 1;
    min-height: 124px;
    padding: 0.22rem;
    border-radius: 16px;
  }
}

@media (max-width: 520px) {
  .president-message {
    padding: 18px;
    border-radius: 22px;
  }

  .president-portrait {
    max-width: 100%;
    border-radius: 18px;
  }

  .president-portrait img {
    aspect-ratio: 4 / 5;
  }

  .president-message-header h2 {
    font-size: 1.45rem;
  }

  .institution-logo-card,
  .institution-logo-card-wide {
    min-height: 108px;
    padding: 8px;
  }

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

  .sponsor-card {
    aspect-ratio: 1.9 / 1;
    min-height: 112px;
  }
  .thematic-detail {
  padding-top: 26px;
  padding-bottom: 42px;
}

.detail-shell {
  position: relative;
  padding: 32px;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at top right, rgba(236, 217, 107, 0.12), transparent 22%),
    linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025) 38%, rgba(16,33,51,0.9) 100%);
  border: 1px solid rgba(236, 217, 107, 0.16);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.detail-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(236, 217, 107, 0.22);
  background: rgba(236, 217, 107, 0.08);
  color: var(--gold-100);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.detail-title {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white);
}

.detail-intro {
  margin: 0;
  max-width: 62ch;
  color: rgba(247, 242, 232, 0.8);
  line-height: 1.8;
  font-size: 1.02rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.detail-aside {
  display: grid;
  gap: 18px;
}

.detail-portrait {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(236, 217, 107, 0.16);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}

.detail-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.detail-meta-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(236, 217, 107, 0.14);
}

.detail-meta-label {
  color: var(--gold-100);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.detail-meta-card strong {
  color: var(--white);
  font-size: 1.05rem;
}

.detail-meta-card span {
  color: rgba(247, 242, 232, 0.76);
}

.detail-content {
  min-width: 0;
  padding: 4px 0;
}

.detail-content-top {
  margin-bottom: 16px;
}

.detail-content-top h3 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.08;
  color: var(--white);
}

.detail-richtext {
  columns: 2;
  column-gap: 28px;
}

.detail-richtext p {
  break-inside: avoid;
  margin: 0 0 16px;
  color: rgba(247, 242, 232, 0.86);
  line-height: 1.85;
  font-size: 1rem;
}

.detail-richtext p strong {
  color: var(--gold-100);
}

@media (max-width: 1100px) {
  .detail-richtext {
    columns: 1;
  }
}

@media (max-width: 860px) {
  .detail-shell {
    padding: 24px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    max-width: 380px;
  }
}

@media (max-width: 520px) {
  .detail-shell {
    padding: 18px;
    border-radius: 22px;
  }

  .detail-portrait {
    border-radius: 18px;
  }

  .detail-title {
    line-height: 1.02;
  }
  .hero-inner {
  padding: 120px 0 60px;
  text-align: center;
}

.hero-inner h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.nav a.active {
  color: var(--gold-100);
}
}
