/* ====== Variables y resets ====== */
:root {
  /* ── Paleta EMIC II (extraída del logo oficial) ── */
  --white:          #FFFFFF;
  --black:          #000000;

  /* Colores del logo EMIC */
  --emic-red:       #B71C1C;   /* letra "E" */
  --emic-blue:      #1E88E5;   /* letra "M" / hélice ADN */
  --emic-yellow:    #FDD835;   /* letra "I" */
  --emic-green:     #43A047;   /* letra "C" */

  /* Compatibilidad con variables antiguas */
  --red-dark:       var(--emic-red);
  --blue-dark:      var(--emic-blue);
  --yellow-bright:  var(--emic-yellow);
  --green-bright:   var(var--emic-green);

  /* Neutros - Modo Claro */
  --neutral-50:  #FFFFFF;
  --neutral-400: #F5F5F5;
  --neutral-800: #616161;
  --neutral-900: #212121;

  /* Header oscuro – tono Negro profundo EMIC */
:root {
  --header-bg:   #FFFFFF;
  --header-text: #212121;
}

  /* Tokens de uso - Modo Claro */
  --bg-page:        var(--neutral-50);
  --bg-section:     var(--neutral-900);
  --bg-card:        var(--white);
  --accent-main:    var(--emic-blue);
  --accent-alt:     var(--emic-red);
  --accent-soft:    var(--emic-green);
  --accent-yellow:  var(--emic-yellow);
  --text-main:      var(--neutral-900);
  --text-muted:     var(--neutral-900);
  --border-soft:    var(--neutral-900);
  --border-light:   rgba(21, 101, 192, 0.15);
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md:      0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg:      0 8px 24px rgba(0, 0, 0, 0.12);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body { 
  height: 100%; 
}

body {
  font-family: "Open Sans", system-ui, -apple-system, "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(253, 216, 53, 0.10), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(21, 101, 192, 0.10), transparent 55%),
    radial-gradient(circle at 60% 80%, rgba(67, 160, 71, 0.07), transparent 50%);
  position: relative;
  overflow-x: hidden;
  font-size: 1.05rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.07), rgba(0, 0, 0, 0));
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

/* Fondo limpio sin elementos decorativos - diseño académico */
html, body { 
  height: 100%; 
}

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(253, 216, 53, 0.10), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(21, 101, 192, 0.10), transparent 55%),
    radial-gradient(circle at 60% 80%, rgba(67, 160, 71, 0.07), transparent 50%);
  position: relative;
  overflow-x: hidden;
  font-size: 1.05rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.07), rgba(0, 0, 0, 0));
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

/* ====== Tipografías ====== */

/* Títulos y navegación */
h1, h2, h3, h4, h5, h6, nav a {
  font-family: "Montserrat Bold", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Título principal */
h1 { 
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--accent-main);
  font-weight: 700;
}

/* Subtítulos principales */
h2 { 
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--accent-main);
  font-weight: 700;
  border-bottom: 2px solid var(--yellow-bright);
  padding-bottom: 0.5rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--red-dark);
}

/* Subtítulos secundarios */
h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
  color: var(--accent-main);
  font-weight: 700;
}

/* Cuerpo de texto */
p { 
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Footer y textos adicionales */
footer, .org-logos-text {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
}

/* ====== Navbar - Header oscuro ====== */
header {
  position: sticky; 
  top: 0; 
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(15px);
  border-bottom: 4px solid #1E88E5;
  box-shadow: var(--shadow-lg);
}

.header-logos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logos::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--yellow-bright);
}

.header-logos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.logos-grupo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logos-label {
  color: #212121;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logos-separador {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.35);
}

/* ====== Ajuste de distribución header EMIC II ====== */

.header-logos-emic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  width: 100%;
}

.logo-emic-box {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logos-bloques {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  min-width: 0;
}

.logos-fila {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logos-fila .logos-label {
  flex: 0 0 95px;
  text-align: right;
}

.logos-fila .logos-grupo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

/* Evita que el CSS general vuelva a forzar filtros o tamaños */
.header-logos-emic .header-logo {
  filter: none;
  object-fit: contain;
}

nav { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0.5rem 1rem; 
  display: flex;
  justify-content: flex-start;
  gap: 1rem;  
  align-items: center;
}

.nav-brand {
  text-decoration: none;
}

.nav-brand a {
  text-decoration: none;
  color: var(--header-text);
  transition: opacity 0.2s ease;
}

.nav-brand a:hover {
  opacity: 0.8;
}

.nav-brand h3 {
  color: var(--header-text);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.nav-menu ul { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.35rem 0.8rem; 
  list-style: none; 
  align-items: center; 
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--header-text); 
  text-decoration: none; 
  padding: 0.5rem 0.5rem; 
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
  opacity: 0.9;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red-dark);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover {
  opacity: 1;
  color: var(--header-text);
}

.nav-menu a:hover::after {
  width: 80%;
}

/* ====== Language Toggle ====== */
.header-logos .lang-toggle {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.lang-btn {
  background: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #212121;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  cursor: pointer;
  font-family: "Arial", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: #1E88E5;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn:active {
  transform: translateY(0);
}

.lang-code {
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ====== Mobile Navigation ====== */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--header-text);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ====== Layout ====== */
main { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0rem 2rem 4rem; 
  position: relative;
  z-index: 1;
}

section {
  padding: 0rem 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

section:last-of-type {
  border-bottom: none;
}

section.section--muted,
section.section--timeline,
section.section--participate {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  border-bottom: none;
}

section.section--muted {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(21, 101, 192, 0.1);
  border-radius: 1.5rem;
  padding: 3.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

section.section--timeline {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 3rem;
  border-bottom: none;
}

section.section--participate {
  margin-top: 2rem;
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 3rem;
  margin: -3rem -2rem 3rem -2rem;
  border-bottom: 3px solid var(--yellow-bright);
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.10), rgba(253, 216, 53, 0.07));
  overflow: hidden;
  border-top: 3px solid rgba(229, 57, 53, 0.25);
}

.hero__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
}

.hero__glow--one {
  background: rgba(253, 216, 53);
  top: -120px;
  right: 10%;
}

.hero__glow--two {
  background: rgba(67, 160, 71);
  bottom: -120px;
  left: 5%;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  z-index: 1;
}

.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.50em;
  font-size: 0.85rem;
  color: var(--accent-alt);
  margin-bottom: 0.5rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #F5F5F5;
  color: var(--accent-main);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(21, 101, 192, 0.2);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.chip--outline {
  background: rgba(33, 33, 33);
  color: var(--white);
  border-color: #F5F5F5;
  box-shadow: 0 6px 18px rgba(33, 33, 33);
  text-shadow: 0 2px 6px rgba(33, 33, 33);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #F5F5F5;
  border: 1px solid rgba(30, 136, 229);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-main);
  display: block;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(30, 136, 229);
  box-shadow: var(--shadow-lg);
}

.hero__card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--red-dark);
  margin-bottom: 0.5rem;
}

.hero__agenda {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 0;
}

.hero__agenda li {
  padding-left: 1rem;
  border-left: 3px solid var(--yellow-bright);
}

.agenda__time {
  font-weight: 600;
  color: var(--accent-main);
  display: block;
  margin-bottom: 0.25rem;
}

.hero__link {
  width: 100%;
  text-align: center;
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-alt);
}

/* Section headers */
.section__header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--red-dark);
  margin-bottom: 0.5rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(30, 136, 229);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__badge {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-main);
}

.feature-card__link {
  font-weight: 600;
  color: var(--accent-main);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.feature-card__link::after {
  content: '→';
  font-size: 1rem;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.timeline__item {
  position: relative;
  padding: 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(21, 101, 192, 0.15);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.timeline__year {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-alt);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline__content h3 {
  margin-bottom: 0.4rem;
}

/* Cards variations */
.card--accent {
  background: linear-gradient(135deg, rgba(30, 136, 229), rgba(67, 160, 71));
  color: var(--white);
}

.card--accent p {
  color: rgba(255, 255, 255, 0.9);
}

.card--accent .btn--primary {
  background: var(--white);
  color: var(--red-dark);
  border-color: var(--white);
}

.card--bordered {
  border: 2px dashed rgba(30, 136, 229);
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ====== Organization Logos - Mantenido para otras páginas ====== */
.org-logos {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem;
  background: var(--neutral-50);
  border-radius: 1rem;
  position: relative;
  border: 1px solid var(--border-soft);
}

.org-logos img {
  height: 70px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.org-logos img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.org-logos--dark {
  background: #1A2B4F;
  border: 1px solid rgba(30, 136, 229);
  padding: 2rem;
}

.org-logos--dark .org-logo {
  height: 96px;
}

.org-logos--dark .org-logo--large {
  height: 115px;
}

.org-logo--invert {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.org-logo--featured {
  height: 130px;
}

.org-logo--invert:hover {
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

@media (max-width: 640px) {
  .org-logos--dark .org-logo {
    height: 80px;
  }

  .org-logos--dark .org-logo--featured {
    height: 110px;
  }

  .org-logos--dark .org-logo--large {
    height: 95px;
  }
}

/* ====== Botones ====== */
.cta { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
  margin-top: 1.5rem; 
}

.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  font-family: "Hind", sans-serif;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-main);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--red-dark);
  color: var(--white);
  border: 2px solid var(--red-dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:hover {
  background: #B71C1C;
  border-color: #B71C1C;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--accent-main);
  border: 2px solid var(--accent-main);
  position: relative;
  overflow: hidden;
}

.btn--outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-main);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn--outline:hover {
  color: var(--white);
  border-color: var(--accent-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline:hover::before {
  width: 100%;
}

.btn--outline-alt {
  background: transparent;
  color: var(--accent-alt);
  border: 2px solid var(--accent-alt);
  position: relative;
  overflow: hidden;
}

.btn--outline-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-alt);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn--outline-alt:hover {
  color: var(--white);
  border-color: var(--accent-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.btn--outline-alt:hover::before {
  width: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--accent-main);
  border: none;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
  text-decoration: none;
  transition: color 0.15s ease;
}

.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--yellow-bright);
  transition: width 0.25s ease;
}

.btn--ghost:hover {
  color: var(--accent-main);
}

.btn--ghost:hover::after {
  width: 100%;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

/* ====== Cards ====== */
.grid { 
  display: grid; 
  gap: 2rem; 
}

.grid-3 { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow-bright);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--yellow-bright);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 0.3;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-main);
}

.card img.square {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, filter 0.3s ease;
  margin-bottom: 1rem;
}

.card:hover img {
  transform: scale(1.02);
  filter: saturate(110%) contrast(105%);
}

.card img.portrait {
  height: 300px;
}

@media (max-width: 640px) {
  .card img { 
    height: 200px; 
  }
  .card img.portrait { 
    height: 250px; 
  }
}

/* ====== Tablas (Programa) ====== */
.table-wrap { 
  overflow: auto; 
  border: 2px solid var(--border-soft); 
  border-top: 3px solid var(--yellow-bright);
  border-radius: 1rem; 
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  position: relative;
}

.table-wrap::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--red-dark);
  z-index: 1;
}

table { 
  width: 100%; 
  border-collapse: collapse; 
  min-width: 620px; 
}

th, td { 
  padding: 1rem; 
  border-bottom: 1px solid var(--border-soft); 
  text-align: left; 
}

th { 
  background: rgba(30, 136, 229); 
  color: var(--accent-main); 
  position: sticky; 
  top: 0; 
  font-weight: 600;
  font-family: "Titillium Web", sans-serif;
  border-bottom: 2px solid var(--border-soft);
}

tr:hover td { 
  background: rgba(30, 136, 229);
  transition: all 0.2s ease;
}

/* Títulos Día 1 / Día 2 */
#programa h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--accent-main);
  font-family: "Arial", sans-serif;
}

#programa h3::after {
  content: "";
  display: block;
  height: 0;
  margin-top: 0.4rem;
  border-top: 1px solid var(--border-soft);
}

#programa .table-wrap {
  margin-bottom: 1.25rem;
  border-color: var(--border-light);
}

/* ====== Formularios ====== */
form { 
  display: grid; 
  gap: 1.25rem; 
  max-width: 640px; 
}

input, textarea {
  width: 100%; 
  padding: 1rem 1.25rem; 
  border-radius: 0.75rem; 
  border: 2px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-family: "Arial", sans-serif;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-main);
  box-shadow: 0 0 0 3px rgba(30, 136, 229), var(--shadow-md);
  transform: translateY(-1px);
  background: var(--white);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

textarea { 
  min-height: 120px; 
  resize: vertical; 
}

form button { 
  width: fit-content; 
}

/* ====== Footer ====== */
footer {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 2rem 2rem; 
  color: var(--text-muted);
  border-top: 3px solid var(--yellow-bright);
  background: var(--neutral-50);
  position: relative;
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 150px;
  height: 3px;
  background: var(--red-dark);
}

footer p { 
  font-size: 0.9rem; 
  margin: 0.5rem 0;
}

footer hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin-bottom: 1rem;
}

/* ====== Mapa ====== */
#lugar iframe {
  border: 0; 
  border-radius: 1rem; 
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

#lugar iframe:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ====== Responsivo ====== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100vh;
    background: #212121;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 110px 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 1000;
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.4);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    padding: 0.4rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 0;
    background: transparent;
    border: none;
    color: rgb(33, 33, 33);
    transition: all 0.3s ease;
    text-align: left;
  }
  
  .nav-menu a:hover {
    color: var(--white);
    transform: translateX(6px);
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.6rem;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li:first-child a {
    color: var(--white);
    font-weight: 600;
    position: relative;
  }

  .nav-menu li:first-child a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 30%;
    height: 2px;
    background: var(--yellow-bright);
  }

  .header-logos {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  nav .lang-toggle {
  display: flex;
  align-items: center;
  margin: 0 1rem;
  }

  .lang-btn {
    width: 60px;
    padding: 0.75rem;
  }
  
  main {
    padding: 2rem 1rem 3rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  
  .cta {
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .table-wrap {
    font-size: 0.9rem;
  }
  
  table {
    min-width: 500px;
  }
  
  th, td {
    padding: 0.8rem 0.6rem;
  }
  
  main > section:first-child {
    padding: 3rem 1.5rem;
    margin: -2rem -1rem 3rem -1rem;
  }
  
  .org-logos {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .org-logos img {
    height: 60px;
  }

  nav {
    padding: 0.8rem 1rem;
  }

  .header-logos {
    padding: 1rem 1rem 0.75rem;
  }

  .header-logos-container {
    gap: 1.5rem;
  }

  .header-logo {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .nav-brand h3 {
    font-size: 1.1rem;
  }
  
  .nav-menu {
    top: 60px;
  }
  
  .nav-menu a {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0 0.5rem;
  }
  
  .org-logos img {
    height: 50px;
  }

  .header-logo {
    height: 45px;
  }
  
  .btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  table {
    min-width: 400px;
  }
  
  th, td {
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
  }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .card, .card img, .btn, .nav-menu a { 
    transition: none !important; 
  }
  .card:hover, .card:hover img, .btn:hover { 
    transform: none !important; 
  }
}

/* ====== Ajustes adicionales ====== */
.grid .card + .card { 
  margin-top: 0; 
}

.cta > * { 
  margin-top: 0; 
}

/* Ajuste para el título largo */
h1 {
  word-wrap: break-word;
  hyphens: auto;
}

/* ====== Botones de contacto y redes ====== */

.contact-links,
.cta,
.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 360px;
  min-height: 110px;
  text-decoration: none;
  color: #ffffff;
  border-radius: 0.8rem;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: none;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item strong,
.contact-item span {
  color: #ffffff;
}

.contact-item strong {
  font-size: 1rem;
  font-weight: 700;
}

.contact-item span {
  font-size: 0.95rem;
}

.contact-icon,
.social-link-card__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Correo / Outlook */
.outlook-btn {
  background: #0078D4;
}

/* Instagram */
.instagram-btn {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.outlook-btn:visited,
.instagram-btn:visited {
  color: #ffffff;
}

.outlook-btn:hover,
.instagram-btn:hover {
  color: #ffffff;
  opacity: 0.92;
}
/* Igualar altura de botones de contacto/redes */
.contact-item.outlook-btn,
.contact-item.instagram-btn {
  height: 110px;
  min-height: 110px;
  margin-top: 0;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
}

.contact-item.outlook-btn .contact-icon,
.contact-item.instagram-btn .contact-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* ====== Ponentes - próximamente ====== */

.speakers-coming-soon {
  margin-top: 2rem;
  text-align: left;
}

.speakers-coming-soon h3 {
  margin-bottom: 1rem;
}

.speakers-coming-soon p {
  max-width: 900px;
}

/* ====== Banner redes ====== */

.social-banner {
  margin-top: 2rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(253, 216, 53, 0.10));
  border: 1px solid rgba(30, 136, 229, 0.2);
  box-shadow: var(--shadow-md);
}

.social-banner__content {
  padding: 2rem;
}

.social-banner__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-alt);
  margin-bottom: 0.5rem;
}

.social-banner h3 {
  margin-bottom: 0.75rem;
}

.social-banner p {
  margin-bottom: 1.5rem;
}

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

.social-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 136, 229, 0.18);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-main);
}

.social-link-card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-link-card strong {
  display: block;
  color: var(--accent-main);
  margin-bottom: 0.2rem;
}

.social-link-card span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ====== Patrocinadores ====== */

.sponsors-info {
  margin-top: 2rem;
}

.sponsors-info p {
  margin-bottom: 1rem;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sponsor-card {
  min-height: 180px;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(30, 136, 229, 0.25);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-main);
}

.sponsor-card--empty {
  border: 2px dashed rgba(30, 136, 229, 0.35);
  background: rgba(255, 255, 255, 0.75);
}

.sponsor-logo {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  filter: none;
}

.sponsor-card p {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.instagram-btn:visited {
  color: #ffffff;
}

.instagram-btn:hover {
  opacity: 0.88;
  color: #ffffff;
}

.instagram-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  flex-shrink: 0;
}

.outlook-btn {
  background: #0078D4;
  color: white;
  border: none;
  border-radius: 0.8rem;
}

.outlook-btn strong,
.outlook-btn span {
  color: white;
}

      /* ── Grid del comité ── */
      .committee-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem;
        margin: 2rem 0 3rem;
      }

      /* ── Tarjeta individual ── */

      .committee-linkedin {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border-radius: 0.45rem;
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.committee-linkedin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.committee-linkedin:hover {
  transform: scale(1.08);
}

      .committee-card {
        position: relative;
        border-radius: 0.8rem;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        background: #fff;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        cursor: default;
      }
      .committee-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 32px rgba(0,0,0,0.16);
      }

      /* ── Foto ── */
      .committee-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.committee-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.25) contrast(1.12) brightness(1.04);
}

      /* ── Franja de nombre — superpuesta sobre la foto ── */
      .committee-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.9rem 1rem 1rem;
        background: linear-gradient(
          to top,
          rgba(33, 33, 33, 0.88) 0%,
          rgba(33, 33, 33, 0.65) 60%,
          rgba(33, 33, 33, 0) 100%
        );
      }
      .committee-name {
        font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
        font-weight: 700;
        font-size: 0.88rem;
        color: #ffffff;
        line-height: 1.3;
        margin: 0 0 0.2rem;
        letter-spacing: 0.01em;
      }
      .committee-role {
        font-family: 'Open Sans', Arial, sans-serif;
        font-weight: 400;
        font-size: 0.72rem;
        color: rgba(255,255,255,0.82);
        line-height: 1.4;
        margin: 0;
      }

      /* ── Línea de acento EMIC (franja inferior color de marca) ── */
      .committee-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #B71C1C, #1E88E5, #FDD835, #43A047);
      }

     .committee-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.committee-main-title,
.committee-subtitle {
  text-align: center;
}

.committee-main-title {
  margin-bottom: 2rem;
}

.committee-subtitle {
  margin-bottom: 2rem;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto 3rem;
}

    /* ─── Eje badges ─── */
    .eje-badge {
      display: inline-block;
      padding: 0.25rem 0.85rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 0.6rem;
    }

    /* ─── Day header cards ─── */
    .day-header {
      border-radius: 1rem;
      padding: 1.4rem 1.8rem;
      margin: 2.5rem 0 0.6rem;
      color: #fff;
    }
    .day-header.day-1 { background: linear-gradient(135deg, #B71C1C, #B71C1C); }
    .day-header.day-2 { background: linear-gradient(135deg, #1E88E5, #1E88E5); }
    .day-header.day-3 { background: linear-gradient(135deg, #43A047, #43A047); }

    .day-header h3 {
      color: #fff;
      font-size: clamp(1.15rem, 2.5vw, 1.4rem);
      margin-bottom: 0.25rem;
    }
    .day-header .day-location {
      font-size: 0.92rem;
      opacity: 0.88;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    /* ─── Schedule row coloring ─── */
    tr.row-apertura td { background: #B4E6DA; color: #212121; font-weight: 500; }
    tr.row-magistral td { background: #57A3E6; color: #212121; font-style: italic; font-weight: 500; font-size:large; }
    tr.row-orales-1  td { background: #57A3E6; color: #212121; font-weight: 500; }
    tr.row-orales-2  td { background: #57A3E6; color: #212121; font-weight: 500; }
    tr.row-orales-blue td { background: #57A3E6; color: #212121; font-weight: 500; }
    tr.row-posters   td { background: #57A3E6; color: #212121; font-weight: 500; }
    tr.row-espacio   td { background: #B4E6DA; color: #212121 ; font-style: italic; }
    tr.row-break     td { background: #B4E6DA; color: #212121; font-weight: 500; }
    tr.row-almuerzo  td { background: #FFFFFF; color: #212121; font-weight: 400 }

    td.hora { font-weight: 700; white-space: nowrap; width: 110px; }

    /* ─── WhatsApp box ─── */
    .whatsapp-container {
      margin: 2rem 0;
      padding: 1.5rem;
      background: rgba(21,101,192,0.07);
      border-radius: 0.8rem;
      border-left: 4px solid var(--emic-blue);
    }
    .whatsapp-btn {
      display: inline-block;
      margin-top: 1rem;
      background-color: var(--emic-blue);
      color: white;
      padding: 0.8rem 1.5rem;
      border-radius: 2rem;
      text-decoration: none;
      font-weight: 600;
      transition: background-color 0.3s ease;
    }
    .whatsapp-btn:hover { background-color: #0D47A1; }

    /* ─── Eje legend ─── */
    .eje-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 2rem;
    }

    .registro-btn-container {
  text-align: center;
  margin-top: 1.5rem;
}

.registro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--emic-blue);
  color: #ffffff;
  padding: 0.9rem 1.6rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--emic-blue);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
  transition: all 0.3s ease;
}

.registro-btn:hover {
  background: var(--emic-red);
  border-color: var(--emic-red);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(183, 28, 28, 0.3);
}

.registro-btn:visited {
  color: #ffffff;
}

/* ====== Agradecimientos ====== */

.ack-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.ack-main-title,
.ack-group-title,
.ack-intro {
  text-align: center;
}

.ack-main-title {
  margin-bottom: 0.5rem;
}

.ack-intro {
  max-width: 850px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.ack-group-title {
  color: var(--emic-blue);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.ack-group-title::after {
  display: none;
}

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

.ack-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 136, 229, 0.22);
  border-radius: 1.2rem;
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emic-blue);
}

.ack-logo-box {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(30, 136, 229, 0.15);
  border-radius: 0.9rem;
}

.ack-logo-box img {
  max-width: 190px;
  max-height: 80px;
  object-fit: contain;
}

.ack-card h3 {
  color: var(--emic-blue);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.ack-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.ack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.75rem 1.2rem;
  background: var(--emic-blue);
  color: #ffffff;
  border-radius: 0.8rem;
  text-decoration: none;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ack-btn:hover {
  background: var(--emic-red);
  color: #ffffff;
  transform: translateY(-2px);
}

.ack-btn:visited {
  color: #ffffff;
}

@media (max-width: 640px) {
  .ack-section {
    padding: 1.5rem 1rem 3rem;
  }

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

/* ====== Corrección header móvil ====== */

@media (max-width: 768px) {

  header {
    position: relative;
    overflow: visible;
  }

  .header-logos-emic {
    width: 100%;
    max-width: 100vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0.8rem;
    overflow: visible;
  }

  .logo-emic-box {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .logo-emic-box img {
    width: min(260px, 80vw) !important;
    height: auto !important;
    display: block;
  }

  .logos-bloques {
    width: 100%;
    align-items: center;
    gap: 0.7rem;
  }

  .logos-fila {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .logos-fila .logos-label {
    flex: none;
    width: auto;
    text-align: center;
    font-size: 0.75rem;
  }

  .logos-fila .logos-grupo {
    justify-content: center;
    gap: 0.5rem;
  }

  .logos-fila .logos-grupo img {
    max-width: 80px !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
  }

  .logos-fila .logos-grupo img.logo-organizador {
    max-width: 120px !important;
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    object-fit: contain;
  }

  nav {
    width: 100%;
    padding: 0.8rem 1rem;
    justify-content: space-between;
  }

  .nav-brand h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 280px;
    max-width: 82vw;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 6rem 1.5rem 2rem;
    background: #212121;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 1001;
    box-shadow: 8px 0 25px rgba(0, 0, 0, 0.4);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    color: #ffffff;
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 0.4rem 0;
  }

  .lang-toggle {
    position: absolute;
    left: 0.8rem;
    bottom: -3.4rem;
    z-index: 10;
  }
}
