/* ── COMPONENT VARIABLES (from cursos.php) ── */
:root {
  --navy:       #1E3A5F;
  --navy-deep:  #152B47;
  --sky:        #4A8EC4;
  --sky-light:  #7FB3D9;
  --sky-pale:   #C8DFF0;
  --sky-ultra:  #EAF3FB;
  --white:      #FFFFFF;
  --ink:        #0D1E30;
  --ink-soft:   #2A4060;
  --muted:      #6A88A8;
  --border:     rgba(74,142,196,0.14);
  --shadow:     0 4px 32px rgba(30,58,95,0.10);
}

/* ── HEADER COMPONENT STYLES ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(234,243,251,0.94);  /* ← COLOR ESPECÍFICO DE HOME */
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Logo styles */
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-emblem {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1rem; color: white; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.logo-sub { font-size: 0.65rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* Navigation */
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active { background: var(--sky-pale); color: var(--navy); }

/* Navigation actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  font-size: 0.86rem; font-weight: 500; color: var(--ink-soft);
  background: none; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer;
  transition: background 0.2s;
}
.btn-ghost:hover { background: var(--sky-pale); }
.btn-primary {
  font-size: 0.86rem; font-weight: 600; background: var(--navy); color: white;
  border: none; padding: 9px 20px; border-radius: 10px; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--sky); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--sky-ultra); padding: 24px;
  flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-close { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); margin-bottom: 16px; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--border); }

/* Responsive */
@media (max-width: 768px) {
  nav, .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
}
