      :root {
        --secondary-color: #ff0000;
        --text-color: #ffffff;
        --background-color: #f0f0f0;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        color: black;
        padding-top: 60px;
      }

      .container {
        max-width: 1200px;
        margin: 0.75rem auto;
      }

      .contenedor {
        max-width: 1200px;
        margin: 0 auto;
        padding: 1px;
      }

      /* ===== HEADER GLASSMORPHISM ===== */
      header {
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.18);
        color: black;
        padding: 1px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9;
        transition: transform 0.3s ease-in-out;
      }

      header.at-top {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
      }

      header.hidden {
        transform: translateY(-100%);
      }

      /* ===== DESKTOP HEADER LAYOUT ===== */
      .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.55rem;
      }

      .logo img {
        height: 2.75rem;
        width: auto;
        max-width: 100%;
        display: block;
        margin-left: 5px;
      }

      /* ===== DESKTOP NAV ===== */
      .desktop-nav {
        display: flex;
        align-items: center;
        flex-grow: 1;
        margin-left: 1.5rem;
        gap: 0.75rem;
        margin-top: 0.65rem;
      }

      /* --- Barra de Busqueda Estilo Apple --- */
      .search-bar-apple {
        flex-grow: 1;
        position: relative;
      }

      .search-bar-apple form {
        display: flex;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.06);
        border-radius: 20px;
        padding: 6px 14px;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
      }

      .search-bar-apple form:focus-within {
        background-color: rgba(0, 0, 0, 0.09);
        box-shadow: 0 0 0 3px rgba(58, 58, 59, 0.15);
      }

      .search-bar-apple .search-icon {
        color: #86868b;
        font-size: 14px;
        margin-right: 8px;
        flex-shrink: 0;
      }

      .search-bar-apple input[type="text"] {
        border: none;
        background: transparent;
        outline: none;
        font-size: 14px;
        color: #1d1d1f;
        width: 100%;
        font-family: 'Inter', sans-serif;
      }

      .search-bar-apple input[type="text"]::placeholder {
        color: #86868b;
        font-weight: 400;
      }

      /* --- Desktop Nav Links (para no autenticados) --- */
      .desktop-nav-links {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0.25rem;
      }

      .desktop-nav-links li a {
        color: #1d1d1f;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
        white-space: nowrap;
      }

      .desktop-nav-links li a:hover {
        background-color: rgba(0, 0, 0, 0.06);
      }

      /* --- Desktop Right Section (notificaciones + dropdown) --- */
      .desktop-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        flex-shrink: 0;
      }

      /* --- Notificaciones (campana) --- */
      .notificaciones-desktop {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        transition: background-color 0.2s ease;
        text-decoration: none;
        color: #1d1d1f;
      }

      .notificaciones-desktop:hover {
        background-color: rgba(0, 0, 0, 0.06);
      }

      .notificaciones-desktop i {
        font-size: 18px;
      }

      .rouge-badge-desktop {
        position: absolute;
        top: 2px;
        right: 2px;
        background-color: #FF3B30;
        color: white;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        font-weight: bold;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        line-height: 1;
      }

      /* --- Dropdown Mi Cuenta --- */
      .dropdown-toggle::after {
        display: none !important;
      }

      .btn-user-dropdown {
        display: flex;
        align-items: center;
        gap: 6px;
        background-color: rgba(0, 0, 0, 0.06);
        border: none;
        border-radius: 20px;
        padding: 8px 14px 8px 10px;
        font-size: 14px;
        font-weight: 500;
        color: #1d1d1f;
        cursor: pointer;
        transition: background-color 0.2s ease;
        font-family: 'Inter', sans-serif;
        white-space: nowrap;
      }

      .btn-user-dropdown:hover,
      .btn-user-dropdown:focus {
        background-color: rgba(0, 0, 0, 0.1);
      }

      .btn-user-dropdown i {
        font-size: 16px;
      }

      .dropdown-menu {
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
        padding: 6px;
        min-width: 200px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.92);
        margin-top: 8px !important;
        z-index: 1000 !important;
      }

      .btn-user-dropdown:focus, 
      .btn-user-dropdown:active, 
      .btn-user-dropdown:hover {
          outline: none !important;
          box-shadow: none !important;
          -webkit-tap-highlight-color: transparent;
      }

      .dropdown-menu {
        display: none !important; 
        pointer-events: none;
        bottom: auto;
      }

      /* Solo cuando Bootstrap añade la clase .show (vía JS por el click), se muestra */
      .dropdown-menu.show {
        display: block !important;
        pointer-events: auto;
      }
      .dropdown-menu-end {
          right: 0 !important;
          left: auto !important;
      }
      .dropdown-index {
        position: relative;
      }

      .dropdown-menu .dropdown-item {
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 14px;
        color: #1d1d1f;
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background-color 0.15s ease;
        z-index: 25;
      }

      .dropdown-menu .dropdown-item:hover,
      .dropdown-menu .dropdown-item:focus {
        background-color: rgba(0, 0, 0, 0.06);
        color: #1d1d1f;
      }

      .dropdown-menu .dropdown-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
        color: #6e6e73;
      }

      .dropdown-menu .dropdown-divider {
        margin: 4px 8px;
        border-color: rgba(0, 0, 0, 0.08);
      }

      .dropdown-item-balance {
        background: linear-gradient(135deg, #34c759, #30b350);
        color: white !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        margin-bottom: 4px;
      }

      .dropdown-item-balance:hover {
        background: linear-gradient(135deg, #2db84d, #28a745) !important;
        color: white !important;
      }

      .dropdown-item-balance i {
        color: white !important;
      }

      .dropdown-item-signout {
        color: #FF3B30 !important;
      }

      .dropdown-item-signout:hover {
        background-color: rgba(255, 59, 48, 0.08) !important;
      }

      .dropdown-item-signout i {
        color: #FF3B30 !important;
      }

      .dropdown-item-stream {
        background: linear-gradient(135deg, #4a47ff 0%, #5537ff 50%, #613ce7 100%);
        color: white !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        margin-bottom: 4px;
      }

      .dropdown-item-stream:hover {
        opacity: 0.9;
        background: linear-gradient(135deg, #4a47ff 0%, #5537ff 50%, #613ce7 100%) !important;
        color: white !important;
      }

      .dropdown-item-stream i {
        color: white !important;
      }

      /* --- Login/Register Buttons (no autenticado) --- */
      .btn-login-nav {
        font-size: 14px;
        font-weight: 500;
        color: #1d1d1f;
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 20px;
        transition: background-color 0.2s ease;
        white-space: nowrap;
      }

      .btn-login-nav:hover {
        background-color: rgba(0, 0, 0, 0.06);
        color: #1d1d1f;
      }

      .btn-register-nav {
        font-size: 14px;
        font-weight: 500;
        color: #fff;
        background-color: #007AFF;
        text-decoration: none;
        padding: 6px 16px;
        border-radius: 20px;
        transition: background-color 0.2s ease;
        white-space: nowrap;
      }

      .btn-register-nav:hover {
        background-color: #0066d6;
        color: #fff;
      }

      /* ===== MOBILE STYLES (sin cambios funcionales) ===== */
      .burger-menu {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 17px;
        cursor: pointer;
      }

      .burger-menu div {
        background-color: black;
        height: 2.5px;
        width: 100%;
      }

      .conjunto {
        display: none;
      }

      .notificaciones {
        display: flex;
        height: 21px;
        width: 21px;
        margin-right: 1rem;
      }

      .rouge-badge {
        position: absolute;
        background-color: #FF3B30;
        color: white;
        font-size: 12px;
        min-width: 13.5px;
        height: 13.5px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        margin-left: 11px;
        font-weight: bold;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
      }

      .blur-background {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .blur-background.show {
        display: block;
        opacity: 1;
      }

      .menu-overlay {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100%;
        background-color: rgba(240, 240, 240, 0.85);
        backdrop-filter: blur(10px);
        z-index: 100;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        padding-left: 2rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
      }

      .menu-overlay.show {
        transform: translateX(0);
      }

      .menu-overlay a {
        display: flex;
        align-items: center;
        margin: 15px 0;
        font-size: 18px;
        text-decoration: none;
        color: #1c1c1e;
        font-weight: 400;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        line-height: 22px;
      }

      .menu-overlay a img {
        height: 24px;
        width: 24px;
        margin-right: 10px;
      }

      .balance-user {
        padding-bottom: 0;
        margin-bottom: 1rem;
        width: 90%;
        padding: 15px;
        background: #4CAF50;
        color: white !important;
        border: none;
        border-radius: 8px;
        text-align: center !important;
        font-size: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        opacity: 0.95;
        display: flex;
        justify-content: center;
      }

      .signout {
        margin-top: auto;
        padding-bottom: 0;
        margin-bottom: 0 !important;
        width: 90%;
        padding: 15px;
        background: #ff3b30;
        color: white !important;
        border: none;
        border-radius: 8px;
        text-align: center !important;
        font-size: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        opacity: 0.95;
        display: flex;
        justify-content: center;
      }

      .streaming-nav {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 10px;
        text-decoration: none;
        color: #ffffff;
        background: linear-gradient(135deg, #4a47ff 0%, #5537ff 50%, #613ce7 100%);
        border-radius: 12px;
        font-weight: 600;
        font-size: 16px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
        margin: 0px 0;
        border: 2px solid transparent;
        width: 90%;
      }

      /* ===== RESPONSIVE ===== */
      @media (max-width: 768px) {
        /* Ocultar nav de desktop en movil */
        .desktop-nav {
          display: none !important;
        }
        .desktop-right {
          display: none !important;
        }

        .logo img {
          height: 2.35rem;
          width: auto;
          max-width: 100%;
          margin-left: 5px;
          margin-right: 10px;
        }

        .notificaciones-desktop i {
          font-size: 20px;
        }

        .contenedor {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding-top: 0.1rem;
          padding-bottom: 0.1rem;
          gap: 10px;
          margin-top: 0.35rem;
        }

        .header {
          padding-top: 5px;
          padding-bottom: 5px;
        }

        .burger-menu {
          display: flex;
          margin-right: 1rem;
        }

        .conjunto {
          display: flex;
          justify-content: flex-end;
          align-items: center;
          gap: 0.5rem;
        }

        .conjunto a{
          margin-right: 0;
          padding-right: 0;
        }

        .notificaciones {
          display: flex;
          height: 25px;
          width: 25px;
        }

        .rouge-badge {
          position: absolute;
          top: 1px;
          right: 1px;
          background-color: #FF3B30;
          color: white;
          font-size: 12px;
          min-width: 17px;
          height: 17px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 0 5px;
          margin-left: 0;
          font-weight: bold;
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .menu-overlay li {
          list-style-type: none;
          display: inline;
        }

        .menu-overlay li a {
          text-decoration: none;
          color: inherit;
        }
      }

      /* En desktop: ocultar hamburguesa y overlay */
      @media (min-width: 769px) {
        .burger-menu,
        .conjunto,
        .blur-background,
        .menu-overlay {
          display: none !important;
        }
      }



      #search-stream {
        flex: 1;
        padding: 2px;
        font-size: 16px;
        margin-right: 10px;
    }


    /* Overlay de búsqueda */
    .search-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.98); /* Blanco casi total */
      z-index: 8; /* Por debajo del header (z-index: 9) pero sobre el contenido */
      display: none; /* Oculto por defecto */
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    /* Cuando el buscador está activo */
    .search-overlay.active {
      display: block;
      opacity: 1;
    }
/* Contenedor principal del Overlay */


.search-overlay.active {
  display: block;
}

/* Contenedor de resultados */
.results-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Títulos de sección (estilo Apple) */
.results-container h3 {
  font-size: 13px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  margin: 20px 0 8px 15px;
  letter-spacing: 0.5px;
}

/* Lista de resultados como tarjetas agrupadas */
.results-container ul {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.results-container li {
  border-bottom: 0.5px solid #e5e5ea;
}

.results-container li:last-child {
  border-bottom: none;
}

/* Enlaces / Items */
.results-container li a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #1c1c1e;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.results-container li a:active, 
.results-container li a:hover {
  background-color: #f2f2f7;
}

/* Iconos decorativos opcionales */
.results-container li a::before {
  content: "\F52A"; /* Icono de lupa de Bootstrap Icons */
  font-family: 'bootstrap-icons';
  margin-right: 12px;
  color: #007aff; /* Azul clásico de iOS */
  font-size: 14px;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  
  
  .search-overlay {
      padding-top: 70px;
  }
}
