/* HERO 00 — Header / navegación principal. Encapsulado: no afecta héroes futuros. */
.hero-00 {
  position: relative;
  width: 100%;
  min-height: 178px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  background: #000000;
  color: #f5f2ea;
  font-family: Montserrat, Inter, Arial, sans-serif;
}

.hero-00__frame {
  position: relative;
  width: calc(100% - 28px);
  height: 143px;
  min-height: 143px;
  margin: 15px 19px 20px 9px;
  padding: 14px 18px 14px 28px;
  display: flex;
  align-items: center;
  background: #020202;
  border: 1px solid rgba(183, 122, 11, 0.78);
  border-radius: 23px;
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.04),
    inset 0 0 25px rgba(255, 229, 140, 0.015);
}

.hero-00__brand {
  position: relative;
  flex: 0 0 326px;
  width: 326px;
  height: 110px;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid rgba(239, 193, 100, 0.10);
  background: radial-gradient(circle at 22% 50%, rgba(239, 193, 100, 0.07), rgba(0, 0, 0, 0) 58%);
}

.hero-00__logo {
  width: 300px;
  height: auto;
  max-width: 100%;
  flex: 0 0 auto;
  object-fit: contain;
}

.hero-00__brand-subtitle {
  position: absolute;
  right: 15px;
  bottom: 1px;
  left: 0;
  margin: 0;
  color: rgba(245, 242, 234, 0.68);
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-00__brand-subtitle strong {
  color: #ffe58c;
  font-weight: 700;
}

.hero-00__nav {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 18px 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
}

.hero-00__nav-link {
  position: relative;
  color: #f5f2ea;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.hero-00__nav-link::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 1px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #efc164, transparent);
  transition: width 220ms ease;
}

.hero-00__nav-link:hover,
.hero-00__nav-link:focus-visible {
  color: #ffe58c;
  text-shadow: 0 0 8px rgba(239, 193, 100, 0.38);
}

.hero-00__nav-link:hover::after,
.hero-00__nav-link:focus-visible::after {
  width: 100%;
}

.hero-00__account-actions {
  flex: 0 0 auto;
  padding-left: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-00__button {
  position: relative;
  height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 159, 0.95);
  border-radius: 14px;
  color: #090705;
  background: linear-gradient(135deg, #fff1b2 0%, #efc164 22%, #c58b22 52%, #f3d678 78%, #b7780d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(91, 52, 0, 0.34),
    0 6px 15px rgba(0, 0, 0, 0.72),
    0 0 10px rgba(239, 193, 100, 0.20);
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}

.hero-00__button > span {
  position: relative;
  z-index: 1;
}

.hero-00__button--register {
  width: 132px;
}

.hero-00__button--login {
  width: 139px;
}

.hero-00__button::before {
  position: absolute;
  top: -45%;
  left: -70%;
  width: 42%;
  height: 190%;
  content: "";
  pointer-events: none;
  transform: rotate(18deg);
  background: linear-gradient(
    105deg,
    transparent 10%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.80) 50%,
    rgba(255, 245, 205, 0.26) 65%,
    transparent 85%
  );
}

.hero-00__button:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -3px 6px rgba(91, 52, 0, 0.25),
    0 9px 20px rgba(0, 0, 0, 0.72),
    0 0 13px rgba(255, 213, 111, 0.45),
    0 0 26px rgba(239, 193, 100, 0.16);
}

.hero-00__button:hover::before {
  animation: hero00GoldShimmer 650ms ease forwards;
}

.hero-00__button:active {
  transform: translateY(0) scale(0.985);
  filter: brightness(0.98);
  transition-duration: 100ms;
}

.hero-00__button:focus-visible {
  outline: 2px solid rgba(255, 229, 140, 0.8);
  outline-offset: 3px;
}

@keyframes hero00GoldShimmer {
  from { left: -70%; }
  to { left: 135%; }
}

.hero-00__menu-trigger,
.hero-00__mobile-menu {
  display: none;
}

/* Desktop contenido: conserva la fila y la jerarquía cuando baja de la referencia de 1349 px. */
@media (max-width: 1320px) and (min-width: 1100px) {
  .hero-00__nav {
    padding-right: 10px;
    padding-left: 10px;
    gap: 12px;
  }

  .hero-00__nav-link {
    font-size: 9.5px;
  }
}

/* Tablet: mantiene una fila horizontal y reduce proporciones sin solapamientos. */
@media (max-width: 1099px) and (min-width: 768px) {
  .hero-00__frame {
    padding-right: 13px;
    padding-left: 18px;
  }

  .hero-00__brand {
    flex-basis: 267px;
    width: 267px;
    height: 100px;
    padding-right: 12px;
  }

  .hero-00__logo {
    width: 246px;
  }

  .hero-00__brand-subtitle {
    right: 12px;
    font-size: 7px;
  }

  .hero-00__nav {
    padding-right: 8px;
    padding-left: 8px;
    gap: 8px;
  }

  .hero-00__nav-link {
    font-size: 9px;
  }

  .hero-00__account-actions {
    gap: 8px;
    padding-left: 8px;
  }

  .hero-00__button {
    height: 48px;
    padding: 0 12px;
    font-size: 10px;
  }

  .hero-00__button--register {
    width: 112px;
  }

  .hero-00__button--login {
    width: 118px;
  }
}

/* En anchos tablet más estrechos, la navegación sigue horizontal pero comprime solo lo necesario. */
@media (max-width: 1024px) and (min-width: 768px) {
  .hero-00__frame {
    padding-right: 10px;
    padding-left: 14px;
  }

  .hero-00__brand {
    flex-basis: 225px;
    width: 225px;
    height: 92px;
    padding-right: 10px;
  }

  .hero-00__logo {
    width: 207px;
  }

  .hero-00__brand-subtitle {
    right: 10px;
    font-size: 6px;
  }

  .hero-00__nav {
    gap: 8px;
    padding: 0 7px;
  }

  .hero-00__nav-link {
    font-size: 8.5px;
  }

  .hero-00__account-actions {
    gap: 7px;
    padding-left: 5px;
  }

  .hero-00__button {
    height: 46px;
    padding: 0 8px;
    font-size: 9px;
    border-radius: 12px;
  }

  .hero-00__button--register {
    width: 96px;
  }

  .hero-00__button--login {
    width: 103px;
  }
}

/* Tablet compacto: conserva la fila horizontal a 768–959 px sin solapamientos. */
@media (max-width: 959px) and (min-width: 768px) {
  .hero-00__frame {
    padding-right: 8px;
    padding-left: 10px;
  }

  .hero-00__brand {
    flex-basis: 152px;
    width: 152px;
    height: 82px;
    padding-right: 6px;
  }

  .hero-00__logo {
    width: 140px;
  }

  .hero-00__brand-subtitle {
    right: 6px;
    font-size: 4.5px;
    letter-spacing: 0.10em;
  }

  .hero-00__nav {
    gap: 5px;
    padding: 0 4px;
  }

  .hero-00__nav-link {
    font-size: 6.5px;
    letter-spacing: 0;
  }

  .hero-00__account-actions {
    gap: 5px;
    padding-left: 3px;
  }

  .hero-00__button {
    height: 41px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 7px;
  }

  .hero-00__button--register {
    width: 74px;
  }

  .hero-00__button--login {
    width: 82px;
  }
}

/* Mobile: logo + disparador y menú desplegable. */
@media (max-width: 767px) {
  .hero-00 {
    min-height: 112px;
  }

  .hero-00__frame {
    width: calc(100% - 20px);
    height: 88px;
    min-height: 88px;
    margin: 12px 10px;
    padding: 10px 12px 10px 16px;
    justify-content: space-between;
    border-radius: 18px;
    overflow: visible;
  }

  .hero-00__brand {
    flex: 0 1 270px;
    width: min(270px, calc(100% - 62px));
    height: 66px;
    padding-right: 0;
    align-items: flex-start;
    border-right: 0;
    overflow: hidden;
  }

  .hero-00__logo {
    width: min(230px, 100%);
  }

  .hero-00__brand-subtitle {
    right: auto;
    bottom: 0;
    left: 4px;
    width: auto;
    font-size: 6.5px;
    text-align: left;
  }

  .hero-00__nav,
  .hero-00__account-actions {
    display: none;
  }

  .hero-00__menu-trigger {
    position: relative;
    z-index: 3;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;
    background: #050505;
    cursor: pointer;
  }

  .hero-00__menu-trigger span {
    width: 19px;
    height: 1px;
    display: block;
    background: #ffe58c;
    box-shadow: 0 0 6px rgba(239, 193, 100, 0.18);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .hero-00__menu-trigger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hero-00__menu-trigger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .hero-00__menu-trigger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-00__mobile-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: -1px;
    left: -1px;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    background: #050505;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.82), 0 0 18px rgba(212, 175, 55, 0.07);
  }

  .hero-00__mobile-menu:not([hidden]) {
    display: block;
  }

  .hero-00__mobile-nav {
    display: grid;
    gap: 0;
  }

  .hero-00__mobile-link {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(239, 193, 100, 0.10);
    color: #f5f2ea;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.15px;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero-00__mobile-link:hover,
  .hero-00__mobile-link:focus-visible {
    color: #ffe58c;
    text-shadow: 0 0 8px rgba(239, 193, 100, 0.38);
  }

  .hero-00__mobile-actions {
    padding-top: 16px;
    display: grid;
    gap: 10px;
  }

  .hero-00__button--mobile {
    width: 100%;
    height: 48px;
  }
}

@media (max-width: 430px) {
  .hero-00__logo {
    width: min(218px, 100%);
  }
}

@media (max-width: 390px) {
  .hero-00__frame {
    padding-left: 12px;
  }

  .hero-00__logo {
    width: min(200px, 100%);
  }

  .hero-00__brand-subtitle {
    left: 2px;
    font-size: 6px;
  }
}

@media (max-width: 360px) {
  .hero-00__logo {
    width: min(183px, 100%);
  }

  .hero-00__brand-subtitle {
    font-size: 5.7px;
    letter-spacing: 0.13em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-00__nav-link,
  .hero-00__nav-link::after,
  .hero-00__button,
  .hero-00__menu-trigger span {
    transition: none !important;
  }

  .hero-00__button:hover::before {
    animation: none !important;
  }
}
