:root {
  --bg: var(--bg-primary);
  --card: var(--bg-card);
  --muted: var(--text-muted);
  --text: var(--text-primary);
  --accent: var(--brand);
  --accent-2: var(--brand-light);
  --border: var(--border);
  --pill: var(--bg-card);
  --shadow: var(--shadow-lg);
  --radius: var(--radius-lg);
}
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(236, 116, 0, 0.06) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(236, 116, 0, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.info-usuario-page {
  padding: 0;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.iu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  position: relative;
  z-index: 1;
}
.iu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
.iu-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.iu-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.iu-subtitle {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}
.iu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.iu-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.iu-search-section {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}
.search-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.search-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--brand);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}
.search-input {
  width: 100%;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: var(--blur-sm);
  box-shadow: var(--shadow);
  padding-right: 3.5rem;
}
.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-pale), var(--shadow-lg);
  background: var(--brand-pale);
  transform: translateY(-1px);
}
.search-input::placeholder {
  color: var(--text-muted);
}
.clear-search {
  position: absolute;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clear-search:hover {
  color: var(--brand);
  background: var(--brand-pale);
  transform: scale(1.1);
}
.search-stats {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.search-stats::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.7;
}
.iu-users-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.iu-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur);
  overflow: hidden;
  transition: var(--transition-slow);
  position: relative;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}
.iu-user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  opacity: 0;
  transition: var(--transition);
}
.iu-user-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-xl);
}
.iu-user-card:hover::before {
  opacity: 1;
}
.iu-user-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  width: 100%;
}
.iu-user-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-pale);
  opacity: 0;
  transition: var(--transition);
}
.iu-user-header:hover::before {
  opacity: 1;
}
.iu-user-header.expanded {
  background: var(--brand-pale);
}
.iu-user-header.expanded::before {
  opacity: 1;
}
.iu-user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brand);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.iu-user-header:hover .iu-user-avatar {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}
.iu-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.iu-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--brand-pale), var(--bg-card));
}
.iu-user-basic-info {
  flex: 1;
  position: relative;
  z-index: 1;
}
.iu-user-name {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.iu-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.iu-user-email,
.iu-user-role,
.iu-user-id {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.iu-user-role {
  background: var(--brand-pale);
  color: var(--brand);
  border-color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.iu-toggle-icon {
  position: relative;
  z-index: 1;
  color: var(--brand);
  font-size: 1.2rem;
  transition: var(--transition);
  padding: 0.5rem;
}
.iu-user-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card-hover);
  border-top: 1px solid var(--border);
}
.iu-details-content {
  padding: 2rem;
}
.iu-details-section {
  margin-bottom: 2.5rem;
}
.iu-details-section:last-child {
  margin-bottom: 0;
}
.iu-details-section h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.iu-details-section h4 i {
  color: var(--brand);
  font-size: 1.1rem;
}
.iu-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.iu-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.iu-detail-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
  opacity: 0;
  transition: var(--transition);
}
.iu-detail-item:hover {
  background: var(--brand-pale);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.iu-detail-item:hover::before {
  opacity: 1;
}
.iu-detail-item--full {
  grid-column: 1 / -1;
}
.iu-detail-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.iu-detail-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.7;
}
.iu-detail-value {
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}
.iu-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 2px dashed var(--border);
  backdrop-filter: var(--blur);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}
.iu-empty-state i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--brand);
  opacity: 0.6;
  animation: pulse 2s infinite;
}
.iu-empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.iu-empty-state p {
  font-size: 1.05rem;
  line-height: 1.6;
}
.iu-loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
}
.loading-spinner {
  margin-bottom: 1.5rem;
}
.loading-spinner i {
  font-size: 3rem;
  color: var(--brand);
  animation: spin 1s linear infinite;
}
.iu-loading-state p {
  font-size: 1.1rem;
  font-weight: 600;
}
.error-state {
  text-align: center;
  padding: 2rem;
}
.error-state i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
}
.error-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
@media (max-width: 960px) {
  .iu-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .iu-container {
    padding: 0 1.5rem 3rem;
  }
  .iu-header {
    padding: 2rem;
  }
  .search-container {
    padding: 1.75rem;
  }
  .iu-user-header {
    padding: 1.75rem;
  }
  .iu-details-content {
    padding: 1.75rem;
  }
}
@media (max-width: 768px) {
  .iu-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
    padding: 2rem;
  }
  .iu-user-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
  }
  .iu-user-meta {
    justify-content: center;
  }
  .iu-toggle-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  .iu-container {
    padding: 0 1rem 2rem;
  }
  .search-container {
    padding: 1.5rem;
  }
  .iu-details-content {
    padding: 1.5rem;
  }
}
@media (max-width: 520px) {
  .iu-details-grid {
    grid-template-columns: 1fr;
  }
  .iu-header {
    margin: 0 -1rem 2rem;
    border-left: none;
    border-right: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
  }
  .search-container {
    margin: 0 -1rem 2rem;
    border-left: none;
    border-right: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
  }
  .iu-user-card {
    margin: 0 -1rem;
    border-left: none;
    border-right: none;
    border-radius: var(--radius-lg);
  }
  .iu-user-header {
    padding: 1.5rem;
  }
  .iu-user-avatar {
    width: 70px;
    height: 70px;
  }
  .iu-user-name {
    font-size: 1.3rem;
  }
  .iu-user-meta {
    gap: 0.75rem;
  }
  .iu-user-email,
  .iu-user-role,
  .iu-user-id {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  .iu-detail-item {
    padding: 1rem;
  }
  .iu-details-content {
    padding: 1.25rem;
  }
  .iu-title {
    font-size: 1.75rem;
  }
  .search-input {
    padding: 1rem 1.25rem 1rem 3rem;
    padding-right: 3rem;
  }
  .clear-search {
    right: 1rem;
    width: 35px;
    height: 35px;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.iu-container::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 50%;
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
.iu-container::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  border-radius: 50%;
  opacity: 0.05;
  animation: float 8s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: -1;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.iu-btn:focus-visible,
.iu-user-header:focus-visible,
.search-input:focus-visible,
.clear-search:focus-visible {
  outline: 3px solid var(--brand-pale);
  outline-offset: 2px;
}
::selection {
  background: var(--brand-semi);
  color: var(--text-primary);
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-light);
}
.iu-user-card.loading {
  opacity: 0.7;
  pointer-events: none;
}
.iu-user-card.loading * {
  animation: pulse 1.5s ease-in-out infinite;
}
.iu-user-card.success {
  border-color: #10b981;
  background: linear-gradient(135deg, var(--bg-card), rgba(16, 185, 129, 0.05));
}
.iu-user-card.success::before {
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  opacity: 1;
}
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .iu-user-card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .iu-header,
  .search-container {
    background: white !important;
    border: 1px solid #ccc !important;
  }
  .iu-btn,
  .clear-search {
    display: none !important;
  }
  .iu-user-details {
    max-height: none !important;
    overflow: visible !important;
  }
}
.user-detail-overlay .user-detail-panel .udp-body {
  padding-top: 3.25rem;
}
@supports (padding: max(0px)) {
  .user-detail-overlay .user-detail-panel .udp-body {
    padding-top: max(3.25rem, env(safe-area-inset-top));
  }
}
.user-detail-overlay .user-detail-panel .udp-identity {
  margin-top: .75rem;
}
.user-detail-overlay .user-detail-panel .udp-identity .udp-avatar {
  width: 92px;
  height: 92px;
}
@media (max-width: 520px){
  .user-detail-overlay .user-detail-panel .udp-identity .udp-avatar {
    width: 78px;
    height: 78px;
  }
}
.user-detail-overlay {
  z-index: 9999 !important;
}
