/* ==========================================================================
   CCPCH — Cabecera y navegación
   ========================================================================== */

.site-header { position: relative; z-index: 100; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(26, 31, 46, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 151, 58, .2);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.navbar.is-scrolled { border-bottom-color: rgba(201, 151, 58, .45); }

.nav-container {
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img, .nav-brand .custom-logo { height: 46px; width: auto; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text span:first-child {
  font-family: var(--font-serif); font-size: .95rem; font-weight: 700;
  color: var(--dorado); letter-spacing: .04em;
}
.nav-logo-text span:last-child {
  font-size: .65rem; color: rgba(255, 255, 255, .5);
  letter-spacing: .08em; text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links > li { position: relative; }

.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .82);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover,
.nav-links > li.active > a { color: var(--dorado); background: rgba(201, 151, 58, .1); }

.nav-caret { font-size: .7em; opacity: .7; }

.nav-links a.nav-cta,
.nav-links .nav-cta > a {
  background: var(--rojo); color: #fff;
  padding: 9px 20px;
}
.nav-links a.nav-cta:hover { background: var(--rojo-dark); color: #fff; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; padding: 6px;
  background: var(--navy-mid);
  border: 1px solid rgba(201, 151, 58, .2);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown { display: block; }

.dropdown a {
  font-size: .76rem; text-transform: none; letter-spacing: .02em;
  padding: 9px 12px; color: rgba(255, 255, 255, .78);
}
.dropdown a:hover, .dropdown a.active { color: var(--dorado); background: rgba(201, 151, 58, .12); }

.dropdown-toggle { display: none; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.navbar.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.navbar.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Banner de página interior ────────────────────────────────────────── */

.page-banner {
  position: relative;
  min-height: 420px;
  margin-top: var(--nav-height);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.page-banner > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20, 24, 38, .55) 0%, rgba(20, 24, 38, .72) 55%, rgba(20, 24, 38, .94) 100%);
}
.banner-content {
  position: relative; z-index: 2;
  padding-block: 60px 56px;
}
.banner-tag {
  display: inline-block;
  padding: 6px 16px; margin-bottom: 18px;
  background: rgba(201, 151, 58, .14);
  border: 1px solid rgba(201, 151, 58, .38);
  border-radius: 100px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dorado-light);
}
.banner-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff; margin-bottom: 14px;
}
.banner-content > p {
  max-width: 620px;
  font-size: 1.03rem; line-height: 1.8;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 0;
}
.banner-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255, 255, 255, .6);
}

/* Migas de pan */
.breadcrumb { margin-top: 22px; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
  font-size: .74rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .48);
}
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: rgba(255, 255, 255, .68); }
.breadcrumb a:hover { color: var(--dorado); }
.breadcrumb [aria-current] { color: var(--dorado-light); }
