/* ==== HEADER ==== */
.main-header {
  background-color: #222c64;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 40px;
  margin-right: 10px;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user {
  font-size: 1rem;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

/* ==== MAIN SECTION ==== */
.institution-container {
  text-align: center;
  padding: 4rem 1rem;
}

.institution-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222c64;
}

.institution-subtitle {
  font-size: 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.institution-text {
  color: #555;
  margin-bottom: 2rem;
}

.institution-search {
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  padding: 0.7rem;
  font-size: 1rem;
}

.btn-institution {
  margin-top: 2rem;
  background-color: #222c64;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-institution:hover {
  background-color: #001848;
}
/* ==========================
   ESTILOS BASE
========================== */
body, html {
  height: 100%;
  margin: 0;
}

.bg-cover {
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
}

.toggle-btn {
  background: rgba(255,255,255,0.8);
  border: none;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(255,255,255,1);
}

a {
  text-decoration: none;
}



.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ==========================
   LOGIN
========================== */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.login-logo {
  text-align: center;
}

.login-title {
  padding-top: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.5rem;
}

.btn-login {
  background-color: #005eb8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem;
  font-weight: 500;
  width: 100%;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #012169;
  color: #fff;
}

/* ==========================
   LOGOUT
========================== */
.logout-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.logout-logo img {
  max-width: 300px;
  margin-bottom: 1rem;
}

.logout-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #012169;
  margin-bottom: 0.8rem;
}

.logout-message {
  font-size: 1rem;
  color: #005eb8;
  margin-bottom: 1.5rem;
}

.btn-logout {
  background-color: #005eb8;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-logout:hover {
  background-color: #012169;
  color: #fff;
  text-decoration: none !important; /* 👈 asegurar que tampoco se subraye al pasar el mouse */
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 576px) {
  .login-card, .logout-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}
/* ==== USER MENU DROPDOWN ==== */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.user-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 5px;
}

.user-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content {
  padding: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #222c64;
  text-decoration: none;
}

.dropdown-divider {
  height: 1px;
  background-color: #e9ecef;
  margin: 0.5rem 0;
}

.logout-item {
  color: #dc3545;
}

.logout-item:hover {
  background-color: #dc3545;
  color: white;
}

/* Asegurar que el header tenga un z-index adecuado */
.main-header {
  background-color: #222c64;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  position: relative;
  z-index: 1001;
}