/* Header del diseño nuevo (el mismo del home), para páginas que no cargan css/styles.css,
   como la landing de Embajadores. Variables y fuente propias para no chocar con su CSS. */

@font-face { font-family: "Gotham Rounded Web"; src: url("../assets/fonts/GothamRnd-Book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham Rounded Web"; src: url("../assets/fonts/GothamRnd-Bold.woff") format("woff"); font-weight: 700 900; font-style: normal; font-display: swap; }

.header {
  --navy: #2A2E70;
  --ink: #23265C;
  --white: #FFFFFF;
  --bg-header: #E4EBF4;
  --header-h: 78px;
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-header);
  font-family: "Gotham Rounded Web", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.header *, .header *::before, .header *::after { box-sizing: border-box; }
.header img { display: block; max-width: 100%; }
.header .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.header__desk { max-width: 1600px; height: var(--header-h); margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.header__nav { display: flex; justify-content: space-evenly; align-items: center; gap: 20px; font-size: 15px; }
.header__nav a { color: var(--ink); text-decoration: none; }
.header__nav a:hover { color: #4D6FB5; }
.header__nav a.is-strong { font-weight: 700; }
.header__logo { align-self: start; display: flex; align-items: center; justify-content: center; height: 82px; padding: 0 34px; background: var(--white); border-radius: 0 0 16px 16px; box-shadow: 0 8px 20px rgba(42, 46, 112, .08); }
.header__logo img { height: 54px; width: auto; }

.header__mob { display: none; height: 64px; padding: 0 12px 0 18px; align-items: center; justify-content: space-between; }
.header__mob img { height: 40px; width: auto; }
.burger { width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgba(42, 46, 112, .08); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.burger[aria-expanded="true"] { background: var(--navy); color: var(--white); }
.burger svg { width: 26px; height: 26px; }
.mobile-menu { position: absolute; left: 0; right: 0; top: 64px; display: flex; flex-direction: column; padding: 8px 18px 20px; background: var(--white); border-radius: 0 0 24px 24px; box-shadow: 0 20px 40px rgba(42, 46, 112, .18); animation: menuNuevoIn .25s ease both; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 16px 4px; border-bottom: 1px solid #E8EBF5; color: var(--ink); text-decoration: none; font-size: 17px; }
.mobile-menu a.is-strong { font-weight: 700; }

/* "Nuestros planes" despliega los 5 productos al pasar el mouse (o con el teclado) */
.header__drop { position: relative; display: flex; align-items: center; height: 100%; }
.header__menu { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 60; min-width: 230px; padding: 8px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 18px 40px rgba(42, 46, 112, .18); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s, visibility .2s; }
.header__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.header__menu a { padding: 10px 14px; border-radius: 10px; font-size: 14px; color: #23265C; text-decoration: none; white-space: nowrap; }
.header__menu a:hover { background: #F0F3FA; color: #23265C; }
.header__drop:hover .header__menu,
.header__drop:focus-within .header__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@keyframes menuNuevoIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .header { --header-h: 64px; }
  .header__desk { display: none; }
  .header__mob { display: flex; }
}
/* El blog también carga theme.css, que trae un header fijo viejo: aquí se neutraliza */
header.header { position: sticky; width: auto; box-shadow: none; }
.header ~ main { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { animation: none; }
}