/* Header Styles */
    #main-header {

      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 80px;
      background: rgba(247, 247, 247, 0.8);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 50px;
      z-index: 1000;
      transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
      box-sizing: border-box;
      border-bottom: 1px solid rgba(3, 1, 2, 0.05);
    
}

#main-header.header-hidden {

      transform: translateY(-100%);
      opacity: 0;
    
}

.header-left {

      display: flex;
      align-items: center;
      gap: 25px;
      flex-shrink: 0;
    
}

.header-right {

      display: flex;
      align-items: center;
      gap: 25px;
      flex-shrink: 0;
    
}

.header-logo {

      height: 50px;
      width: auto;
      display: block;
    
}

.header-logo-link {

      margin-left: max(0px, calc(50vw - 800px - 97.4px));
      transition: margin-left 0.4s ease;
    
}

.page-top-left-logo {

      position: fixed;
      top: 25px;
      left: 50px;
      width: 40px;
      height: auto;
      z-index: 100;
      /* Behind header (1000) */
    
}

.header-center {

      flex: 1;
      max-width: 500px;
      margin: 0 40px;
      min-width: 0;
    
}

.search-container {

      position: relative;
      width: 100%;
    
}

.search-icon {

      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      color: #030102;
      opacity: 0.5;
      pointer-events: none;
    
}

#header-search {

      width: 100%;
      box-sizing: border-box;
      padding: 10px 10px 10px 40px;
      border-radius: 0;
      border: none;
      border-bottom: 2px solid rgba(3, 1, 2, 0.1);
      background: transparent;
      color: #030102;
      font-size: 1rem;
      font-weight: 600;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      transition: all 0.3s ease;
      outline: none;
    
}

#header-search:focus {

      border-bottom-color: rgba(3, 1, 2, 0.1);
      /* Keep base unchanged, focus-border covers it */
    
}

#header-search:focus~.focus-border,
    #header-search:not(:placeholder-shown)~.focus-border {

      width: 100%;
    
}

.focus-border {

      position: absolute;
      bottom: 0;
      left: 0;
      width: 0%;
      height: 2px;
      background: var(--search-color, #030102);
      transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
      pointer-events: none;
    
}

/* Estilos base del botón burger-menu */
    .burger-menu {

      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 40px;
      /* Ancho total del botón */
      height: 30px;
      /* Alto total del botón (separación entre líneas) */
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      box-sizing: border-box;
      transition: transform 0.2s ease;
    
}

/* Estilos base de las líneas */
    .burger-menu .line {

      width: 40px;
      /* Ancho de cada línea (sugerido: igual al ancho del botón) */
      height: 4px;
      /* Grosor de cada línea */
      background-color: #333;
      /* Color por defecto */
      border-radius: 10px;
      transition: all 0.3s linear;
      position: relative;
      transform-origin: 1px;
    
}

/* Efectos al hacer HOVER en el botón */
    .burger-menu:hover .line:nth-child(1) {

      background-color: #EA028A;
      /* Tu primer color */
    
}

.burger-menu:hover .line:nth-child(2) {

      background-color: #03ACED;
      /* Tu segundo color */
    
}

.burger-menu:hover .line:nth-child(3) {

      background-color: #FFF001;
      /* Tu tercer color */
    
}

/* Efectos cuando el menú está ABIERTO (activo) */
    body.sidebar-active .burger-menu .line:nth-child(1) {

      background-color: #EA028A;
    
}

body.sidebar-active .burger-menu .line:nth-child(2) {

      background-color: #03ACED;
    
}

body.sidebar-active .burger-menu .line:nth-child(3) {

      background-color: #FFF001;
    
}

/* Pequeño efecto al hacer clic físicamente */
    .burger-menu:active .line {

      transform: scale(0.95);
    
}

.header-btn {

      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      color: #030102;
    
}

.header-btn:hover {

      background: rgba(3, 1, 2, 0.05);
      transform: translateY(-1px);
    
}

.header-btn-text {

      background: var(--accent-black, #030102);
      color: #fff;
      border: none;
      padding: 12px 24px;
      border-radius: 30px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease, margin-right 0.4s ease;
      margin-right: max(0px, calc(50vw - 800px - 122px));
    
}

.header-btn-text:hover {


      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(3, 1, 2, 0.15);
    
}

@media (max-width: 800px) {
  #main-header {
          padding: 0 15px;
          height: 65px;
  }
  
  .header-left,
        .header-right {
          gap: 10px;
  }
  
  .header-logo {
          height: 38px;
  }
  
  .page-top-left-logo {
          top: 20px;
          left: 15px;
          width: 30px;
  }
  
  .header-center {
          margin: 0 10px;
          min-width: 0;
  }
  
  #header-search {
          padding: 10px 10px 10px 30px;
          font-size: 0.9rem;
  }
  
  .search-icon {
          left: 5px;
  }
  
  .header-btn-text {
          font-size: 0;
          /* Hide text */
          padding: 0;
          width: 36px;
          height: 36px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          letter-spacing: 0;
  }
  
  .header-btn-text::before {
          content: '+';
          font-size: 1.5rem;
          font-weight: normal;
          line-height: 1;
  }
}

.notif-header {
      padding: 16px;
      font-weight: 900;
      text-transform: uppercase;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      font-size: 0.9rem;
}

.notif-clear-btn {
      background: none;
      border: none;
      color: #03ACED;
      font-weight: bold;
      cursor: pointer;
      font-size: 0.75rem;
      text-transform: uppercase;
      transition: color 0.2s;
      padding: 0;
}

.notif-clear-btn:hover {
      color: #0286b8;
}

.notif-item {
      position: relative;
      padding: 12px 16px;
      border-radius: 12px;
      text-decoration: none;
      color: #030102;
      transition: background 0.2s ease, transform 0.2s ease, opacity 0.3s ease, margin 0.3s ease, height 0.3s ease, padding 0.3s ease;
      background: var(--notif-bg, rgba(240, 240, 240, 0.5));
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      overflow: hidden;
      flex-shrink: 0;
    
}

.notif-item:hover {

      background: rgba(255, 255, 255, 0.9) !important;
    
}

.notif-item.removing {

      opacity: 0;
      transform: scale(0.9);
      margin-top: -4px;
      margin-bottom: -4px;
      height: 0 !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      border: none !important;
      pointer-events: none;
    
}

.notif-content {

      font-size: 0.85rem;
      font-weight: 500;
      line-height: 1.3;
      margin-bottom: 4px;
      padding-right: 20px;
    
}

.notif-time {

      font-size: 0.7rem;
      color: rgba(3,1,2,0.6);
      font-weight: 600;
    
}

.notif-close-btn {

      position: absolute;
      top: 50%;
      right: 15px;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(0,0,0,0.05);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #030102;
      opacity: 1;
      transition: background 0.2s;

      position: absolute;
      top: 50%;
      right: 15px;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(0,0,0,0.05);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #030102;
      opacity: 1;
      transition: background 0.2s;
      z-index: 2;
    
}

.notif-close-btn:hover {

      background: rgba(0,0,0,0.15);
    
}

/* Notifications Modal Popup Base */
.notif-popup {
  position: absolute;
  top: 50px;
  right: -10px;
  width: 340px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.notif-popup.open {
  display: flex;
  flex-direction: column;
}
.notif-popup.visible {
  opacity: 1;
  transform: translateY(0);
}
.notif-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.1); border-radius: 4px; }
