/* ═══════════════════════════════════════════════════════════════
   V2GO — Cabecera clara
   ═══════════════════════════════════════════════════════════════ */

.v2-head {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--hueso);
  transition: box-shadow var(--d-base) var(--ease), background-color var(--d-base) var(--ease);
}
.v2-head.is-stuck {
  background-color: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -22px rgba(27, 50, 64, 0.4);
}

/* ─── Barra de servicio ──────────────────────────────────────── */
.v2-head__util {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--t-sm);
  max-height: 54px;
  overflow: hidden;
  transition: max-height var(--d-base) var(--ease), opacity var(--d-base) var(--ease);
}
.v2-head.is-stuck .v2-head__util { max-height: 0; opacity: 0; }
.v2-head__util-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); min-height: 46px; padding-block: var(--s-2);
}
.v2-head__util-in p { margin: 0; color: inherit; }
.v2-head__util-in span { color: rgba(255,255,255,0.5); }
.v2-head__util-links { display: flex; align-items: center; gap: var(--s-6); }
.v2-head__util-links a { transition: color var(--d-fast) var(--ease); }
.v2-head__util-links a:hover { color: var(--ambar); }
.v2-head__util-links a:first-child { color: var(--ambar); font-weight: var(--p-bold); }

@media (max-width: 940px) {
  .v2-head__util-in > p { display: none; }
  .v2-head__util-in { justify-content: center; }
  .v2-head__util-links a:not(:first-child) { display: none; }
}

/* ─── Barra principal ────────────────────────────────────────── */
.v2-head__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-8);
  min-height: 92px;
  transition: min-height var(--d-base) var(--ease);
}
.v2-head.is-stuck .v2-head__bar { min-height: 74px; }

.v2-head__logo img {
  width: clamp(148px, 14vw, 186px);
  height: auto;
  transition: width var(--d-base) var(--ease);
}
.v2-head.is-stuck .v2-head__logo img { width: clamp(130px, 11vw, 152px); }

/* ─── Menú ───────────────────────────────────────────────────── */
.v2-head__nav > ul { display: flex; align-items: center; gap: clamp(var(--s-3), 1.6vw, var(--s-6)); }
.v2-head__item { position: relative; }
.v2-head__item > a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-base);
  font-weight: var(--p-book);
  color: var(--navy);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.v2-head__item > a:hover,
.v2-head__item:focus-within > a { background-color: var(--ambar-velo); color: var(--ambar-texto); }
.v2-head__item--sub:hover svg { transform: rotate(180deg); }
.v2-head__item svg { transition: transform var(--d-base) var(--ease); }

/* ─── Desplegable ────────────────────────────────────────────── */
.v2-head__drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 380px;
  background-color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-alta);
  padding: var(--s-3);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease), visibility var(--d-base);
}
.v2-head__item--sub:hover .v2-head__drop,
.v2-head__item--sub:focus-within .v2-head__drop { opacity: 1; visibility: visible; transform: none; }
.v2-head__drop::before { content: ''; position: absolute; inset: -12px 0 auto 0; height: 12px; }

.v2-head__drop a {
  display: block;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  transition: background-color var(--d-fast) var(--ease);
}
.v2-head__drop a:hover { background-color: var(--ambar-velo); }
.v2-head__drop b {
  display: block;
  font-size: var(--t-base);
  font-weight: var(--p-bold);
  color: var(--navy);
  margin-bottom: 3px;
}
.v2-head__drop em {
  display: block;
  font-style: italic;
  font-weight: var(--p-book);
  font-size: var(--t-sm);
  color: var(--navy-50);
}

/* ─── Acciones ───────────────────────────────────────────────── */
.v2-head__act { display: flex; align-items: center; gap: var(--s-4); flex: none; }
.v2-head__cta { padding: 0.9rem 1.6rem; font-size: var(--t-base); }

.v2-head__burger {
  display: none;
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  background-color: var(--navy-06);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.v2-head__burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background-color: var(--navy);
  transition: transform var(--d-base) var(--ease);
}
.v2-head__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.v2-head__burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ─── Menú móvil ─────────────────────────────────────────────── */
.v2-head__mob {
  display: none;
  background-color: var(--hueso);
  border-top: 1px solid var(--navy-12);
  padding-block: var(--s-8) calc(var(--s-12) + env(safe-area-inset-bottom));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.v2-head__mob.is-open { display: block; animation: v2-fade 260ms var(--ease) forwards; }

.v2-head__mob-list > li { border-bottom: 1px solid var(--navy-12); }
.v2-head__mob-list > li > a {
  display: block;
  padding-block: var(--s-5);
  font-size: var(--t-xl);
  font-weight: var(--p-light);
  letter-spacing: var(--ls-tight);
  color: var(--navy);
}
.v2-head__mob-list ul { padding: 0 0 var(--s-5) var(--s-5); }
.v2-head__mob-list ul a {
  display: block; padding-block: var(--s-3);
  font-size: var(--t-base); color: var(--navy-70);
}
.v2-head__mob-list ul a:hover { color: var(--ambar-texto); }

.v2-head__mob-meta {
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--navy-12);
  display: flex; flex-direction: column; gap: var(--s-3);
  font-size: var(--t-base);
  color: var(--navy-70);
}
.v2-head__mob-meta a:hover { color: var(--ambar-texto); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .v2-head__item > a { font-size: var(--t-sm); padding-inline: 0.85rem; }
}
@media (max-width: 980px) {
  .v2-head__nav { display: none; }
  .v2-head__burger { display: flex; }
  .v2-head__bar { min-height: 78px; }
}
@media (max-width: 560px) {
  .v2-head__cta { display: none; }
}
