
:root {
  --ef-ink: #0b0906;
  --ef-gold: #c9952a;
  --ef-gold-2: #e8b84b;
  --ef-cream: #f8f4ec;
  --ef-line: rgba(201,149,42,.25);
}

.ef-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  background: rgba(11,9,6,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ef-line);
  color: var(--ef-cream);
}

.ef-header *,
.ef-header *::before,
.ef-header *::after {
  box-sizing: border-box;
}

.ef-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ef-brand {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ef-cream);
  text-decoration: none;
}

.ef-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--ef-line);
  border-radius: 9px;
}

.ef-brand strong {
  display: block;
  color: var(--ef-cream);
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: .93rem;
  line-height: 1.15;
  letter-spacing: .08em;
}

.ef-brand small {
  display: block;
  margin-top: 3px;
  color: #968d80;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .66rem;
  line-height: 1.2;
  letter-spacing: .08em;
}

.ef-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "DM Sans", Arial, sans-serif;
}

.ef-nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #c7beb1;
  font-size: .82rem;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.ef-nav a:hover,
.ef-nav a:focus-visible,
.ef-nav a.active {
  color: #111;
  background: var(--ef-gold);
  outline: none;
}

.ef-lang {
  margin-left: 7px;
  padding-left: 10px;
  border-left: 1px solid var(--ef-line);
}

.ef-nav-toggle {
  display: none;
  min-height: 44px;
  margin-left: auto;
  padding: 9px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ef-line);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: 700 .84rem/1 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .ef-header-inner {
    min-height: 68px;
  }

  .ef-nav-toggle {
    display: inline-flex;
  }

  .ef-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    margin: 0;
    padding: 16px 20px 22px;
    flex-direction: column;
    align-items: stretch;
    background: #0d0b08;
    border-bottom: 1px solid var(--ef-line);
  }

  .ef-nav.open {
    display: flex;
  }

  .ef-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    font-size: .94rem;
  }

  .ef-lang {
    margin: 6px 0 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--ef-line);
  }
}

@media (max-width: 560px) {
  .ef-header-inner {
    width: min(100% - 24px, 1180px);
  }

  .ef-brand {
    min-width: 0;
  }

  .ef-brand img {
    width: 44px;
    height: 44px;
  }

  .ef-brand small {
    display: none;
  }
}

/* ============================================================
   ECHOFATHER V64.6 · NAVEGACIÓN MÓVIL
   ============================================================ */
@media (max-width: 1040px) {
  body.ef-nav-open {
    overflow: hidden;
  }

  .ef-nav {
    overscroll-behavior: contain;
  }
}

@media (max-width: 420px) {
  .ef-header-inner {
    gap: 10px;
  }

  .ef-brand {
    gap: 9px;
  }

  .ef-brand img {
    width: 40px;
    height: 40px;
  }

  .ef-brand strong {
    font-size: .8rem;
    letter-spacing: .06em;
  }

  .ef-nav-toggle {
    min-width: 44px;
    padding-inline: 10px;
  }

  .ef-nav-toggle > span:last-child {
    display: none;
  }
}

/* ============================================================
   ECHOFATHER V64.7 · CABECERA EN TELÉFONOS
   ============================================================ */
@media (max-width: 430px) {
  .ef-header-inner { min-height: 72px; padding-inline: 14px; }
  .ef-brand, .ef-brand span { min-width: 0; }
  .ef-brand strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ef-nav-toggle { flex: 0 0 auto; }
}

