.header {
  background: #f7f9fc98;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  overflow-x: hidden;   /* 🔹 evita que el header cree scroll lateral */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;         /* 🔹 menos padding */
  box-sizing: border-box;  /* 🔹 padding incluido en el ancho */
  width: 100%;
  overflow: hidden;        /* 🔹 evita desbordes */
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 8px;
  background: #f5f5f5;
  padding: 6px;
  border-radius: 25px;
  margin: 0 15px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
}

.lang-btn:hover {
  background: rgba(255, 107, 133, 0.1);
  transform: scale(1.05);
}

.lang-btn.active {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-btn .flag {
  font-size: 24px;
  line-height: 1;
}

/* Header Height Increase */
.header {
  padding: 25px 0;
  min-height: 80px;
}

.nav-container {
  min-height: 70px;
}

/* Responsive */
@media (max-width: 768px) {
  .language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
  }
  
  .lang-btn {
    width: 38px;
    height: 38px;
  }
  
  .lang-btn .flag {
    font-size: 20px;
  }
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 1;          /* 🔹 permite que se encoja */
  min-width: 0;            /* 🔹 evita que fuerce ancho */
}

.logo-icon {
  width: 50px;   /* o el tamaño que quieras */
  height: auto;
}


.logo .match {
  color: #F87E79;
}

.logo .paw {
  color: #5BC5C5;
}

.nav-menu {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-menu a {
  color: #2C3E50;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #FF6B85;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 5px;
}

.app-badge {
  background: #FF6B85;
  color: white;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  position: absolute;
  top: -10px;
  right: -28px;
}

.donate-btn {
  background: #EA526F;
  color: white;
  padding: 10px 18px;      /* 🔹 más compacto */
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;          /* 🔹 mantiene su tamaño sin romper layout */
  white-space: nowrap;     /* 🔹 evita que el texto se corte en 2 líneas */
}

.donate-btn:hover {
  background: #F87E79;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 133, 0.4);
}

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

  .donate-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .logo {
    font-size: 22px;
  }

  .logo-icon {
    width: 35px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 12px;  /* 🔹 aún menos padding */
  }

  .donate-btn {
    font-size: 13px;
    padding: 8px 16px; /* más compacto */
  }

  .logo {
    font-size: 20px;
  }
}