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

.top-stripe {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-tertiary));
  z-index: 1100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-stripe {
  width: min(100%, 430px);
  height: 6px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 18px 0 30px;
}

.stripe-orange {
  background: #f3930d;
}

.stripe-blue {
  background: #244a8f;
}

.stripe-red {
  background: #e72d3f;
}

.stripe-green {
  background: #2da84a;
}

.stripe-purple {
  background: #874088;
}

.brand-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--color-text-muted);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-secondary);
  background: rgba(90, 75, 183, 0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-text);
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-inner-centered {
  display: block;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.footer-logo span {
  color: var(--color-primary);
}

.footer-text {
  margin-top: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 18px;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--color-border-soft);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.88rem;
  }
  
  .brand-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .brand {
    gap: 8px;
  }

  .header-inner {
    gap: 10px;
  }
  
  .container {
    width: min(100% - 24px, var(--container-width));
  }
}

/* Fondos alternados para la pagina de Candidatos */
.candidatos-background-ivan {
  background-color: var(--color-bg);
}

.candidatos-background-aida {
  background-color: var(--color-surface);
}