/* ==========================================================================
   PORTAL WEB DE ENFERMERÍA - MARILUZ MERCADO TAPIA
   ESTILOS DEL NAVBAR: TOPBAR, NAVBAR STICKY, LOGO, BOTÓN CTA, MENÚ MÓVIL
   ========================================================================== */

/* Top Bar */
.topbar {
  background-color: var(--primary);
  color: var(--surface);
  padding: 0.6rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-left strong {
  color: #FFFFFF;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-phone {
  color: var(--secondary-fixed);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-phone:hover {
  color: #FFFFFF;
}

/* Header & Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 245, 237, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  height: auto;
  padding: 0.5rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.navbar-logo {
  height: 68px; /* Aumento del 30% sobre 52px (52 * 1.30 = 67.6 ≈ 68px) */
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-phrase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.25;
  gap: 2px;
}

.phrase-line {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--secondary-dark);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: block;
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 57px; /* Aumento del 30% sobre 44px (44 * 1.30 = 57.2 ≈ 57px) */
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    height: 52px; /* Aumento del 30% sobre 40px (40 * 1.30 = 52px) */
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-focus);
  padding-left: 0.875rem;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
}

.brand-title {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--secondary-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

/* Menú Móvil */
.mobile-menu-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-floating);
  z-index: 99;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 0.5rem 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(15, 43, 72, 0.05);
}
