/* =========================
   RESET ANTI SCROLL GLOBAL
========================= */
html, body {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html, body {
    overflow-x: clip;
  }
}

body {
  min-height: 100vh;
}

/* =========================
   HEADER INCLUDE
========================= */
.container {
  max-width: 100%;
  margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  overflow: visible;
}

body.drawer-open .site-header {
  transform: none !important;
}

.site-header .header-inner {
  position: relative;
  z-index: 2001;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 90%;
  margin: 0 auto;
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 0 0 auto;
}

/* =========================
   LOGO
========================= */
.site-header .logo,
.drawer-header .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 0;
}

.site-header .logo img,
.drawer-header .logo img {
  width: 100px;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* =========================
   NAV DESKTOP
========================= */
.site-header nav.main-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.site-header nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
}

.site-header nav.main-nav a:hover {
  color: var(--red);
}

/* =========================
   MENUS DESKTOP
========================= */
.site-header #public-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header #logged-menu {
  display: flex;
}

/* =========================
   LOGGED MENU DESKTOP
========================= */
.site-header .logged-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  position: relative;
  z-index: 2500;
}

.site-header .logged-menu > a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  min-width: 0;
}

.site-header .logged-menu > a:hover {
  color: var(--red);
}

.site-header .user-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  position: relative;
  z-index: 2600;
}

.site-header .avatar,
.drawer .avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--red);
  flex: 0 0 auto;
}

.site-header .user-name,
.drawer .user-name {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.site-header .user-menu {
  position: absolute;
  right: -10px;
  top: 35px;
  width: 170px;
  background: var(--bg2);
  border: 1px solid var(--line);
  /* border-radius: 10px; */
  overflow: hidden;
  display: none;
  z-index: 99999;
}

.site-header .user-dropdown:hover .user-menu,
.site-header .user-dropdown:focus-within .user-menu {
  display: block;
}

.site-header .user-menu a {
  display: block;
  padding: 12px 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text);
  text-decoration: none;
}

.site-header .user-menu a:hover {
  color: var(--red);
}

.dropdown-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
  transition: transform .2s ease;
}

/* =========================
   BOTONES DESKTOP
========================= */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   MOBILE BURGER
========================= */
.site-header .burger {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-header .burger-lines {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-header .burger-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,.85);
}

/* =========================
   DRAWER
========================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 6000;
  touch-action: manipulation;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: min(88vw, 360px);
  max-width: 100vw;
  background: var(--bg2);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .22s ease;
  z-index: 6001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  min-width: 0;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.drawer-body {
  padding: 12px 10px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.drawer-section {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
}

.drawer-section:last-child {
  border-bottom: none;
}

.drawer a {
  display: flex;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 13px;
  min-width: 0;
}

.drawer a:hover {
  color: var(--red);
}

/* =========================
   DRAWER PUBLIC ACTIONS
========================= */
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-actions .btn {
  justify-content: center;
}

/* =========================
   DRAWER LOGGED MENU
========================= */
.drawer-logged-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.drawer-logged-menu > a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  min-width: 0;
  padding: 0 10px;
}

.drawer-logged-menu > a:hover {
  color: var(--red);
}

.drawer-user-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.drawer-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.drawer-user-top .user-name {
  flex: 1 1 auto;
}

.drawer-user-card.is-open .dropdown-caret {
  transform: translateY(1px) rotate(180deg);
}

.drawer-user-menu {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  /* border-radius: 10px; */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .22s ease, opacity .18s ease;
  pointer-events: none;
}

.drawer-user-card.is-open .drawer-user-menu {
  opacity: 1;
  pointer-events: auto;
}

.drawer-user-menu a {
  display: block;
  padding: 12px 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.drawer-user-menu a:hover {
  color: var(--red);
}

/* =========================
   DRAWER OPEN
========================= */
body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .site-header nav.main-nav {
    display: none;
  }

  .site-header #public-menu,
  .site-header #logged-menu {
    display: none;
  }

  .site-header .burger {
    display: inline-flex;
  }

  .site-header,
  .site-header .header-inner {
    max-width: 100%;
    overflow: hidden;
  }
}