/* ====== Variables y resets ====== */
:root {
  /* Colores de la paleta oficial */
  --white:          #FFFFFF;
  --red-dark:       #8C1919;
  --gold:           #FDB400;
  --black:          #000000;
  --blue-dark:      #2C5697;
  --yellow-bright:  #FFCC00;

  /* Javeriana */
  --javeriana-blue:   var(--blue-dark);
  --javeriana-yellow: var(--yellow-bright);

  /* Universidad Distrital */
  --ud-red:    var(--red-dark);
  --ud-gold:   var(--gold);

  /* Neutros - Modo Claro */
  --neutral-50:  #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A3A3A3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Header oscuro */
  --header-bg:   #1A2B4F;
  --header-text: var(--white);

  /* Tokens de uso - Modo Claro */
  --bg-page:        var(--white);
  --bg-section:     var(--neutral-50);
  --bg-card:        var(--white);
  --accent-main:    var(--blue-dark);
  --accent-alt:     var(--red-dark);
  --accent-soft:    var(--gold);
  --accent-yellow:  var(--yellow-bright);
  --text-main:      var(--neutral-900);
  --text-muted:     var(--neutral-600);
  --border-soft:    var(--neutral-200);
  --border-light:   rgba(44, 86, 151, 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: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 204, 0, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(44, 86, 151, 0.12), transparent 55%),
    radial-gradient(circle at 60% 80%, rgba(140, 25, 25, 0.08), transparent 50%);
  position: relative;
  overflow-x: hidden;
  font-size: 1.05rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 86, 151, 0.08), rgba(0, 0, 0, 0));
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

/* Fondo limpio sin elementos decorativos - diseño académico */

/* ====== Tipografías ====== */
h1, h2, h3, h4, h5, h6, nav a {
  font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

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

h2 { 
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--accent-main);
  font-weight: 600;
  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);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
  color: var(--accent-main);
  font-weight: 600;
}

p { 
  color: var(--text-muted);
  font-size: 1.05rem;
}

footer, .org-logos-text {
  font-family: "Lora", "Times New Roman", serif;
}

/* ====== Navbar - Header oscuro ====== */
header {
  position: sticky; 
  top: 0; 
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(15px);
  border-bottom: 3px solid var(--yellow-bright);
  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;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.header-logo {
  height: 60px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

nav { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 1rem 2rem; 
  display: flex;
  justify-content: space-between;
  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.5rem 1.5rem; 
  list-style: none; 
  align-items: center; 
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--header-text); 
  text-decoration: none; 
  padding: 0.5rem 0.8rem; 
  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: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--header-text);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: "Titillium Web", 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: rgba(255, 255, 255, 0.2);
  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: 3rem 2rem 4rem; 
  position: relative;
  z-index: 1;
}

section {
  padding: 3.5rem 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(44, 86, 151, 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(44, 86, 151, 0.1), rgba(255, 204, 0, 0.08));
  overflow: hidden;
  border-top: 3px solid rgba(140, 25, 25, 0.2);
}

.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(255, 204, 0, 0.6);
  top: -120px;
  right: 10%;
}

.hero__glow--two {
  background: rgba(44, 86, 151, 0.5);
  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.15em;
  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: rgba(255, 255, 255, 0.35);
  color: var(--accent-main);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(44, 86, 151, 0.2);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.chip--outline {
  background: rgba(26, 43, 79, 0.75);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.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: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(44, 86, 151, 0.2);
  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(44, 86, 151, 0.15);
  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(44, 86, 151, 0.12);
  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(44, 86, 151, 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(140, 25, 25, 0.9), rgba(253, 180, 0, 0.9));
  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(44, 86, 151, 0.3);
}

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

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
    margin: -2rem -1.5rem 2rem -1.5rem;
  }

  section.section--muted {
    padding: 2.5rem 1.5rem;
  }

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

  .hero__card {
    padding: 1.5rem;
  }
}


/* ====== 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(255, 255, 255, 0.15);
  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: #a31f1f;
  border-color: #a31f1f;
  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(140, 25, 25, 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(44, 86, 151, 0.06); 
  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(44, 86, 151, 0.04);
  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: "Titillium Web", 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: "Hind", sans-serif;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-main);
  box-shadow: 0 0 0 3px rgba(44, 86, 151, 0.1), 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: #0c1a38;
    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: rgba(255, 255, 255, 0.7);
    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;
  }

  .header-logos .lang-toggle {
    margin: 0;
    width: fit-content;
  }

  .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;
}
