.header-right a {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 500;
}

.header-right a:hover {
  text-decoration: none !important;
  color: #333 !important;
}

/* Estilos para el área de usuario */
.user-area {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 120px;
}

.guest-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.guest-links a {
  padding: 8px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 20px;
  color: #495057 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.guest-links a:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: #343a40 !important;
}

.user-menu {
  position: relative;
  display: none;
  align-items: center;
  gap: 12px;
}

.user-menu.show {
  display: flex; /* Cambiar de 'block' a 'flex' */
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 25px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-toggle:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9em;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
  font-size: 0.9em;
  color: #333;
}

.user-number {
  font-size: 0.8em;
  color: #666;
}

.dropdown-arrow-user {
  font-size: 0.8em;
  color: #666;
  transition: transform 0.3s ease;
}

.user-toggle.active .dropdown-arrow-user {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  padding: 15px;
  min-width: 220px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

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

.user-dropdown-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 12px;
}

.user-dropdown-name {
  font-weight: 600;
  color: #333;
  font-size: 1em;
  margin-bottom: 4px;
}

.user-dropdown-details {
  font-size: 0.85em;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logout-btn {
  width: 100%;
  padding: 10px 15px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Estilos específicos solo para index.html */
.hamburger {
  display: none;
  font-size: 26px;
  position: absolute;
  right: 24px;
  top: 18px;
  background: none;
  color: #333;
  border: none;
  cursor: pointer;
}

nav {
  display: flex;
  flex-wrap: wrap;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin: 10px;
  overflow: visible;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  position: static;
}

nav.hidden {
  display: none;
}

nav a, nav button {
  flex: 1;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background-color var(--transition);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1em;
}

nav a:hover, nav button:hover {
  background-color: var(--secondary-color);
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown-arrow.rotate {
  transform: rotate(180deg);
}

.dropdown-content {
  max-height: 0;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  position: absolute;
  background-color: white;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  border: 1px solid #ccc;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-content.show {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  text-align: left;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
}

.dropdown-content a:hover {
  background-color: #f0f8ff;
}

.hero-image-full {
  background-image: url("../imagenes/banner_enfermeria.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin: 10px;
  padding: 40px 20px;
  text-align: center;
  color: white;
  height: auto;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image-full h2 {
  margin: 0 0 10px;
  font-size: 1.8em;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero-image-full p {
  margin: 0;
  font-size: 1.1em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.section {
  padding: 20px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 250px;
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h4 {
  margin-top: 0;
  color: var(--primary-color);
}

.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
  transition: color var(--transition);
}

.card-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .user-area {
    margin-right: 60px;
  }

  .guest-links {
    flex-direction: column;
    gap: 10px;
  }

  .guest-links a {
    font-size: 0.9em;
  }

  .user-toggle {
    padding: 6px 12px;
  }

  .user-info {
    display: none; /* Ocultar texto en móvil, solo mostrar avatar */
  }

  .user-dropdown {
    min-width: 200px;
    right: -10px;
  }

  nav {
    flex-direction: column;
  }

  nav.hidden {
    display: none;
  }

  nav a, nav button {
    flex: 100%;
    text-align: left;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
  }

  .cards {
    flex-direction: column;
  }

  .hero-image-full {
    padding: 30px 16px;
  }

  .hero-image-full h2 {
    font-size: 1.4em;
  }

  .hero-image-full p {
    font-size: 1em;
  }
}