/* ======================================
   HEADER ROOT
====================================== */

.app-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(25, 118, 210, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  min-height: var(--header-height);
  gap: var(--spacing-3);
  overflow: hidden;
}

.header-logo-column {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.logo-circle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.logo-circle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.header-text-column {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-1);
  min-width: 0;
  width: 100%;
}

.brand-info h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  max-width: 100%;
  line-height: 1.2;
  font-weight: 600;
  font-size: 1.125rem;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-primary-dark)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand-info p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  max-width: 100%;
  line-height: 1.2;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

/* Dark Theme */
[data-theme="dark"] .app-header {
  background: rgba(17, 24, 39, 0.95);
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .logo-circle {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .logo-circle:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 0 var(--spacing-3);
    gap: var(--spacing-2);
  }

  .logo-circle {
    width: 35px;
    height: 35px;
  }

  .brand-info h1 {
    font-size: 0.95rem;
  }

  .brand-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 var(--spacing-2);
    gap: var(--spacing-1);
  }

  .logo-circle {
    width: 30px;
    height: 30px;
  }

  .brand-info h1 {
    font-size: 0.85rem;
  }

  .brand-info p {
    font-size: 0.75rem;
  }
}

/* High Contrast */
[data-theme="contrast"] .app-header {
  background: #ffffff;
  border-bottom: 2px solid #000000;
  box-shadow: none;
}

[data-theme="contrast"] .brand-info h1 {
  background: none;
  -webkit-text-fill-color: initial;
  color: #000000;
  font-weight: 700;
}

[data-theme="contrast"] .brand-info p {
  color: #000000;
  font-weight: 600;
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .logo-circle {
    transition: none;
  }

  .logo-circle:hover {
    transform: none;
  }
}
