.profile-page {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
}

.profile-section {
  padding: 6rem 0 4rem;
  position: relative;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.profile-hero {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  overflow: hidden;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.1s;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-hero:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent);
  box-shadow: 0 20px 40px rgba(236, 116, 0, 0.1);
}

.hero-background {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(236, 116, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 116, 0, 0.08) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--brand-pale) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--brand-pale) 0%, transparent 50%);
  opacity: 0.3;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
}

.avatar-section {
  flex-shrink: 0;
  position: relative;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brand);
  box-shadow: var(--shadow-brand);
  transition: all 0.3s ease;
}

.avatar-container:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(236, 116, 0, 0.4);
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-container:hover img {
  transform: scale(1.1);
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--brand);
  border: 3px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: var(--shadow-brand);
}

.status-indicator.online {
  background: #10b981;
}

.status-indicator.offline {
  background: #64748b;
}

.status-indicator.away {
  background: #f59e0b;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verification-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.user-role {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1rem 0;
}

.user-meta {
  display: grid;
  gap: 0.4rem;
  margin: 0.5rem 0 1.5rem 0;
  color: var(--text-muted);
}

.user-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.user-meta i {
  width: 18px;
  text-align: center;
  color: var(--brand);
}

.user-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--brand-pale);
  color: var(--brand);
  border: 1px solid var(--brand-accent);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.quick-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--brand-pale);
  border: 1px solid var(--brand-accent);
  border-radius: var(--radius);
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.quick-action-btn:hover {
  background: var(--brand-semi);
  transform: translateY(-1px);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.profile-card:nth-child(1) { animation-delay: 0.2s; }
.profile-card:nth-child(2) { animation-delay: 0.3s; }
.profile-card:nth-child(3) { animation-delay: 0.4s; }
.profile-card:nth-child(4) { animation-delay: 0.5s; }

.profile-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent);
  box-shadow: 0 20px 40px rgba(236, 116, 0, 0.1);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.card-title i {
  color: var(--brand);
  font-size: 1.1rem;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.card-content {
  padding: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.info-item:hover {
  background: var(--brand-pale);
  transform: translateX(4px);
  border-color: var(--brand-accent);
}

.info-icon {
  color: var(--brand);
  font-size: 1rem;
  min-width: 20px;
  margin-top: 2px;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem 0;
  font-weight: 500;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
}

.info-value.editable {
  color: var(--brand);
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-value.editable:hover {
  opacity: 0.8;
}

/* Stats Grid - patrón común */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--brand-pale);
  border: 1px solid var(--brand-accent);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(236, 116, 0, 0.08);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 0.5rem 0;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Security Section - patrón mejorado */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.security-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.security-item:hover {
  background: var(--brand-pale);
  transform: translateY(-2px);
  border-color: var(--brand-accent);
}

.security-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--brand);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.security-item:hover .security-icon {
  background: var(--brand);
  color: white;
  transform: scale(1.1);
}

.security-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.security-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.security-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.security-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.security-status.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.security-status.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Activity Section - patrón de dashboard.css */
.activity-list {
  display: grid;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.activity-item:hover {
  background: var(--brand-pale);
  border-color: var(--brand-accent);
  transform: translateX(4px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.activity-location {
  font-size: 0.8rem;
  color: var(--brand);
  margin: 0.25rem 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Floating Action Button - patrón común */
.floating-action {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
}

.floating-action:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 35px rgba(236, 116, 0, 0.4);
}

/* Skip Link - accesibilidad */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Responsive Design - consistente con otros archivos */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .user-name {
    font-size: 1.5rem;
    justify-content: center;
  }

  .user-badges {
    justify-content: center;
  }

  .quick-actions {
    justify-content: center;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .security-grid {
    grid-template-columns: 1fr;
  }

  .avatar-container {
    width: 100px;
    height: 100px;
  }

  .floating-action {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .profile-hero {
    margin: 0 -1rem 2rem -1rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .card-content {
    padding: 1rem;
  }

  .user-name {
    font-size: 1.3rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .info-item {
    padding: 0.75rem;
  }

  .security-item {
    padding: 1rem;
  }

  .security-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}