/* ==========================================================================
   NEXOCOLONIA - NAVEGACIÓN Y CABECERA PREMIUM (PORTAL NAV)
   ========================================================================== */

/* Refinamiento premium de la navegacion editorial. */

/* --- BARRA SUPERIOR (TOPLINE) --- */
.topline {
  background: #030d1b;
  color: #e2e8f0;
  font-size: 11.5px;
  font-family: 'Manrope', -apple-system, sans-serif;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topline-inner {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.topline-place {
  color: #94a3b8;
  font-size: 11px;
}

.topline-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topline-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.topline-action-btn:hover {
  background: rgba(14, 165, 233, 0.35);
  border-color: rgba(186, 230, 253, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.topline-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  user-select: none;
}

/* --- BARRA DE NOTICIAS DE ÚLTIMO MOMENTO (BREAKING) --- */
.breaking {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Manrope', -apple-system, sans-serif;
}

.breaking-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  gap: 15px;
  font-size: 12.5px;
}

.breaking strong {
  color: #e11d48;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.breaking strong span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #e11d48;
  border-radius: 50%;
  animation: pulse 1.7s infinite;
}

.breaking p {
  flex: 1;
  margin: 0;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breaking a {
  color: #0284c7;
  font-weight: 750;
  text-decoration: none;
  font-size: 12px;
  flex-shrink: 0;
}

.breaking a:hover {
  text-decoration: underline;
}

/* --- BARRA PRINCIPAL DE NAVEGACIÓN (PORTAL NAV BAR) --- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 68px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  background: linear-gradient(115deg, #031226 0%, #062344 50%, #031427 100%);
  box-shadow: 0 10px 30px rgba(0, 10, 25, 0.35);
  backdrop-filter:blur(22px) saturate(135%);
  -webkit-backdrop-filter:blur(22px) saturate(135%);
}

.portal-nav {
  position: relative;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  gap: 8px;
  font-family: 'Manrope', -apple-system, sans-serif;
}

/* Logo en desktop: Oculto cuando el Hero está activo */
.portal-nav-logo {
  display: none !important;
}

.nav-bar.is-condensed .portal-nav-logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 40px;
  flex-shrink: 0;
}

.portal-nav-logo img {
  max-width: 80px;
  max-height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(0,0,0,0.3));
}

/* Lista de enlaces del menú */
.portal-nav-links {
  display: flex;
  align-items: center;
  list-style: none !important;
  margin: 0;
  padding: 0;
  gap: 3px;
  flex: 1 1 auto;
  overflow: visible;
}

/* Menú editorial con separadores y desplegables fuera del recorte. */
.portal-nav-links{overflow:visible}
.portal-nav-links>li:not(:first-child):before{content:"";width:1px;height:18px;background:rgba(255,255,255,.14);margin-right:3px}
.mobile-nav-drawer{z-index:500;}

.portal-nav-links > li {
  list-style: none !important;
  display: inline-flex;
  align-items: center;
  height: auto;
}

/* Botón/Píldora de navegación individual */
.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(186, 230, 253, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Estado activo / página actual */
.portal-nav-link.is-current {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Icono o insignia dentro del enlace */
.portal-nav-link > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 850;
}

.portal-nav-link.is-current > span {
  background: rgba(56, 189, 248, 0.35);
  border-color: rgba(186, 230, 253, 0.6);
  color: #ffffff;
}

/* Enlace especial Sorteos */
.portal-nav-link.portal-sorteos-link {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.08);
  color: #fef3c7;
}

.portal-nav-link.portal-sorteos-link:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.75);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.portal-nav-link.portal-sorteos-link > span {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fef08a;
  font-size: 11px;
}

.mobile-sorteos-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fef3c7 !important;
  font-weight: 750 !important;
}

.mobile-sorteos-link span {
  font-size: 14px;
}

/* Separador de tubería (pipe) */
.nav-pipe-item {
  list-style: none !important;
  display: flex;
  align-items: center;
  margin: 0 1px;
}

.nav-pipe {
  color: rgba(148, 163, 184, 0.3);
  font-size: 14px;
  font-weight: 300;
  user-select: none;
}

/* --- BOTÓN Y MENÚ DESPLEGABLE "MÁS ⌄" --- */
.portal-more {
  position: relative;
  list-style: none !important;
  display: inline-flex;
  align-items: center;
}

.portal-more[hidden] {
  display: none !important;
}

.portal-more > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-more > button:hover,
.portal-more.is-open > button {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(186, 230, 253, 0.55);
  color: #ffffff;
}

.portal-more-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 500;
  min-width: 210px;
  padding: 8px;
  margin: 0;
  list-style: none !important;
  background: linear-gradient(155deg, #09233f, #041427 80%);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.portal-more.is-open .portal-more-menu {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

.portal-more-menu > li {
  list-style: none !important;
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
}

.portal-more-menu .portal-nav-link {
  width: 100%;
  justify-content: flex-start;
  height: 36px;
  border-color: transparent;
  background: transparent;
}

.portal-more-menu .portal-nav-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(125, 211, 252, 0.3);
}

.portal-more-menu .nav-pipe-item {
  display: none !important;
}

/* --- ACCIONES A LA DERECHA (PERIODISTAS & BUSCAR) --- */
.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.portal-amr-link {
  border-color: rgba(110, 231, 183, 0.42);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(14, 165, 233, 0.14));
}

.portal-amr-link:hover {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.38), rgba(14, 165, 233, 0.24));
}

.portal-amr-link > span {
  width: auto;
  min-width: 29px;
  padding: 0 4px;
  color: #a7f3d0;
  font-size: 8px;
  letter-spacing: .04em;
}

.portal-amr-link > b {
  color: #a7f3d0;
  font-size: 11px;
}

.journalists-menu {
  position: relative;
}

.portal-journalists {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-journalists:hover,
.journalists-menu.is-open .portal-journalists {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(186, 230, 253, 0.55);
  color: #ffffff;
}

.journalists-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 500;
  width: min(320px, calc(100vw - 32px));
  background: linear-gradient(155deg, #09233f, #041427 80%);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.journalists-menu.is-open .journalists-dropdown {
  display: block;
}

.journalists-dropdown header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.journalists-dropdown header small {
  display: block;
  color: #7dd3fc;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.journalists-dropdown header strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.journalists-dropdown header a {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.journalists-dropdown-list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  gap: 2px;
}

.journalists-dropdown-list > a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #e2e8f0;
  text-decoration: none;
  transition: background 0.15s;
}

.journalists-dropdown-list > a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
}

.journalists-dropdown-list img,
.journalists-dropdown-list > a > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.journalists-dropdown-list > a > span {
  display: grid;
  place-items: center;
  background: #0284c7;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}

.journalists-dropdown-list b {
  display: block;
  font-size: 12px;
  color: #fff;
}

.journalists-dropdown-list small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
}

/* Botón de búsqueda circular */
.portal-search-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-search-toggle:hover {
  background: rgba(14, 165, 233, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Formulario de búsqueda desplegable */
.portal-nav-search {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  z-index: 500;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #09233f;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.portal-nav-search[hidden] {
  display: none !important;
}

.portal-nav-search input {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: #fff;
  color: #071a37;
  font-size: 13px;
  min-width: 220px;
}

.portal-nav-search button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Botón hamburguesa móvil */
.portal-menu-toggle {
  display: none !important;
}

/* Ocultar cajón móvil en pantallas de escritorio */
.mobile-nav-drawer,
.mobile-nav-backdrop {
  display: none !important;
}

/* --- RESPONSIVE EN MÓVILES (< 900px) --- */
@media (max-width: 899px) {
  .portal-amr-link {
    display: none;
  }
  .portal-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .portal-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
  }

  .portal-nav-logo {
    display: flex !important;
    width: 90px;
    height: 38px;
  }

  .portal-nav-links {
    display: none !important;
  }

  .journalists-menu {
    display: none !important;
  }

  /* Drawer móvil visible solo cuando corresponda */
  .mobile-nav-drawer {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    z-index: 9999;
    background: linear-gradient(165deg, #071f39, #041326 76%);
    box-shadow: 28px 0 70px rgba(1, 9, 20, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
    color: #fff;
  }

  .mobile-nav-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-nav-drawer header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.25rem;
  }

  .mobile-nav-drawer header img {
    max-width: 120px;
    height: auto;
  }

  .mobile-nav-drawer header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
  }

  .mobile-nav-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-nav-drawer nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
  }

  .mobile-nav-drawer nav a:hover,
  .mobile-nav-drawer nav a[aria-current="page"] {
    background: rgba(56, 189, 248, 0.18);
    color: #fff;
  }

  .mobile-nav-drawer nav .mobile-amr-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    border: 1px solid rgba(110, 231, 183, 0.28);
    background: rgba(5, 150, 105, 0.13);
    color: #d1fae5;
  }

  .mobile-amr-link span {
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
    font-size: 9px;
    letter-spacing: .05em;
  }

  .mobile-nav-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Formulario de búsqueda en móvil: full-width bajo el nav-bar */
  .portal-nav-search {
    right: 8px;
    left: 8px;
    min-width: 0;
    width: auto;
  }

  .portal-nav-search input {
    min-width: 0;
    flex: 1;
  }
}
