/* =========================================================
   CABECERA COMÚN DE YATUTICKET
   Misma cabecera que index.html para el resto de páginas
   (la inserta cabecera.js en #siteHeaderMount).
   ========================================================= */

#siteHeader .hidden, #mobileMenu .hidden, #menuOverlay.hidden { display: none !important; }

#siteHeader.yt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .88); border-bottom: 1px solid #2a2a2e;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
#siteHeader .yt-header-inner {
  width: min(100% - 2rem, 1280px); min-height: 68px; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
}
#siteHeader .yt-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.45rem; font-weight: 900; letter-spacing: -.03em;
  color: #fff; text-decoration: none; transition: color .2s ease;
}
#siteHeader .yt-logo:hover { color: #ffc300; }

#siteHeader .yt-nav-links { display: flex; align-items: center; gap: .25rem; margin-left: 1rem; }
#siteHeader .yt-nav-link {
  padding: .55rem .95rem; border-radius: 10px; color: #d4d4d8;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
#siteHeader .yt-nav-link:hover,
#siteHeader .yt-nav-link.is-active { color: #ffc300; background: rgba(255, 195, 0, .08); }

#siteHeader .yt-nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

#siteHeader .yt-head-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 1.1rem; border-radius: 12px; border: 1px solid transparent;
  font-size: .85rem; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
#siteHeader .yt-head-btn.is-primary { background: #ffc300; color: #0a0a0b; }
#siteHeader .yt-head-btn.is-primary:hover { background: #e8b400; }
#siteHeader .yt-head-btn.is-ghost { color: #e4e4e7; border-color: #3a3a40; background: transparent; }
#siteHeader .yt-head-btn.is-ghost:hover { border-color: #ffc300; color: #fff; }

#siteHeader .yt-user { position: relative; }
#siteHeader .yt-user-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .85rem .3rem .3rem; border: 1px solid #3a3a40; border-radius: 13px;
  background: #141416; color: #f5f5f5; font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: border-color .2s ease;
}
#siteHeader .yt-user-btn:hover { border-color: #ffc300; }
#siteHeader .yt-avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: #ffc300; color: #0a0a0b; font-weight: 800; text-transform: uppercase;
}
#siteHeader .yt-user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: .4rem;
  background: #141416; border: 1px solid #2a2a2e; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55); z-index: 60;
}
#siteHeader .yt-user-menu-head {
  padding: .6rem .85rem .7rem; margin-bottom: .3rem; border-bottom: 1px solid #2a2a2e;
  font-size: .78rem; color: #a1a1aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#siteHeader .yt-user-menu a, #siteHeader .yt-user-menu button {
  display: block; width: 100%; padding: .7rem .85rem; border: 0; border-radius: 10px;
  background: none; color: #f5f5f5; font-size: .9rem; text-align: left; text-decoration: none; cursor: pointer;
}
#siteHeader .yt-user-menu a:hover, #siteHeader .yt-user-menu button:hover { background: rgba(255, 195, 0, .1); color: #ffc300; }
#siteHeader .yt-user-menu .yt-menu-sep { height: 1px; margin: .3rem 0; background: #2a2a2e; }

#siteHeader .yt-burger {
  display: none; margin-left: auto; width: 44px; height: 44px; place-items: center;
  border: 1px solid #3a3a40; border-radius: 12px; background: transparent;
  color: #fff; font-size: 1.25rem; cursor: pointer;
}

/* Aviso de verificación de correo */
.yt-verify-bar {
  background: rgba(255, 195, 0, .1); border-bottom: 1px solid rgba(255, 195, 0, .3);
  color: #f5f5f5; font-size: .88rem;
}
.yt-verify-bar-inner {
  width: min(100% - 2rem, 1280px); margin-inline: auto; padding: .6rem 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .9rem; text-align: center;
}
.yt-verify-bar button {
  border: 0; background: none; color: #ffc300; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: .88rem;
}

/* Menú móvil */
#menuOverlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 90; }
#mobileMenu {
  position: fixed; top: 0; right: 0; width: 18rem; max-width: 85vw; height: 100%;
  background: #0f0f11; border-left: 1px solid #2a2a2e; z-index: 100; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s ease;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
/* main.js abre el menú quitando la clase translate-x-full */
#mobileMenu:not(.translate-x-full) { transform: translateX(0); }
#mobileMenu .yt-mm-inner { padding: 1.25rem; }
#mobileMenu .yt-mm-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #2a2a2e;
  font-size: 1.1rem; font-weight: 700; color: #fff;
}
#mobileMenu .yt-mm-head button { border: 0; background: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
#mobileMenu .mobile-menu-link {
  display: block; padding: .8rem .5rem; border-radius: 10px; color: #e4e4e7;
  font-size: .95rem; font-weight: 600; text-decoration: none;
}
#mobileMenu .mobile-menu-link:hover { color: #ffc300; background: rgba(255, 195, 0, .08); }
#mobileMenu .mobile-menu-section-title {
  display: block; margin: 1.4rem 0 .5rem; padding: 0 .5rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #71717a;
}
#mobileMenu .mobile-menu-auth-link {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 13px; font-weight: 800; font-size: .92rem;
  border: 1px solid transparent; width: 100%; cursor: pointer; text-decoration: none;
}
#mobileMenu .mobile-menu-auth-link.btn-primary { background: #ffc300; color: #0a0a0b; }
#mobileMenu .mobile-menu-auth-link.btn-ghost { background: transparent; color: #e4e4e7; border-color: #3a3a40; }
#mobileMenu .mobile-menu-auth-link.btn-outline { background: transparent; color: #ffc300; border-color: rgba(255, 195, 0, .55); }
#mobileMenu #mobileUserLinks:not(.hidden) { display: flex; }

@media (max-width: 900px) {
  #siteHeader .yt-nav-links, #siteHeader .yt-nav-actions { display: none; }
  #siteHeader .yt-burger { display: grid; }
}
@media (max-width: 640px) {
  #siteHeader .yt-header-inner { min-height: 62px; }
  #siteHeader .yt-logo { font-size: 1.25rem; }
}
