:root {
  --title-font: "Chakra Petch", system-ui, sans-serif;
  --text-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --subtitle-font: "Rajdhani", system-ui, sans-serif;
  --red-color: #cc0000;
  --text-color: #94a3b8;
  --white-color: #fff;
  --grey-color: #96999d;
  --border-radius: 8px;
  --padding-top: 60px;
  --padding-bottom: 60px;
  --border-grey: 1px solid #ffffff1a;
  --redbg-hover: #bf0000;
  /* FIX: variable para la altura del header, usada por el menú mobile */
  --header-height: 75px;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: visible;
  z-index: 9999;
  padding: 20px 40px;
  border-bottom: 1px solid #ffffff1a;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Fondo cuando hay scroll */
header.is-sticky {
  background: #0a0d12;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body {
  padding-top: 0px;
}

.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FIX: max-width reducido — 322px era demasiado grande para un logo en navbar */
.header_logo {
  max-width: 250px;
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header_logo img {
  width: 100%;
  height: auto;
}

/* ============================================================
   NAVEGACIÓN BASE
   ============================================================ */

.header_navigation {
  position: relative;
}

.menu-wrapper-list,
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-wrapper-list {
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu-wrapper a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font);
  color: var(--grey-color);
  font-size: 1rem;
  letter-spacing: 0.1rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.menu-wrapper a:hover {
  color: var(--red-color);
}

/* Submenu base */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #0b0b0b;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 10px;
  display: none;
  z-index: 1000;
}

.submenu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.store-btn{
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}

.store-btn:hover {
  color: #FF0000;
  background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   DESKTOP — Dropdown hover
   ============================================================ */

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }

  .has-submenu > .submenu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    top: 30px;
    right: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 99999;
  }

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu,
  .has-submenu.hover-open > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .submenu-toggle {
    cursor: default;
  }
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */

.hamburger {
  width: 42px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  background: transparent;
  border: var(--border-grey);
  border-radius: var(--border-radius);
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ============================================================
   MOBILE — Menú overlay
   ============================================================ */

@media (max-width: 900px) {
  .hamburger {
    display: inline-flex;
  }

  .menu-wrapper {
    display: none;
    position: fixed;
    /* FIX: usa la variable --header-height en lugar del valor hardcodeado 75px */
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    background: #0b0b0b;
    border: var(--border-grey);
    padding: 8px 12px;
    z-index: 99999;
    box-sizing: border-box;
    overflow: visible;
  }

  .menu-wrapper.is-open {
    display: block;
  }

  .menu-wrapper-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-wrapper-list a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
    border-radius: 10px;
    color: var(--grey-color);
  }

  .menu-wrapper-list a:hover {
    color: var(--red-color);
  }

  /* Submenu estático en mobile */
  .submenu {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .has-submenu.is-open > .submenu {
    display: block;
  }

  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .submenu-toggle::after {
    content: "▾";
    opacity: 0.8;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }

  .has-submenu.is-open > .submenu-toggle::after {
    transform: rotate(180deg);
  }
  .store-btn{
    width: 95%;
    padding: 5px;
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 485px) {
  .header_logo {
    max-width: 200px;
  }
  
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: var(--border-grey);
  background-color: #000;
  padding-bottom: 16px;
  padding-top: var(--padding-top);
}

.footer_container {
  max-width: 90%;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.footer_info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  gap: 40px;
}

.footer_logo {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer_logo img {
  /* FIX: ancho más razonable en desktop, no ocupa todo el max-width del contenedor */
  width: 60%;
  max-width: 220px;
  height: auto;
}

.footer_logo p,
.footer_logo span {
  font-family: var(--text-font);
  color: var(--grey-color);
  font-size: 12px;
  width: 100%;
}

.footer_logo span a {
  text-decoration: none;
  color: var(--grey-color);
}

.footersocial ul {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footersocial ul li {
  list-style-type: none;
}

.footersocial ul li a {
  text-decoration: none;
  color: var(--grey-color);
  transition: color 0.25s ease;
}

/* FIX: hover en el <a>, no en el <svg> — el hover en svg hijo no funciona */
.footersocial ul li a:hover {
  color: var(--red-color);
}

.footersocial ul li a svg {
  width: 24px;
  height: 24px;
  display: block;
}

.footer_links {
  text-align: right;
  flex-shrink: 0;
}

.footer_links h4 {
  font-family: var(--title-font);
  color: var(--white-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer_links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer_links ul li {
  list-style-type: none;
}

.footer_links ul li a {
  text-decoration: none;
  color: var(--grey-color);
  font-family: var(--text-font);
  font-size: 14px;
  transition: color 0.5s ease;
}

.footer_links ul li a:hover {
  color: var(--red-color);
}

.footer_rights {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: var(--border-grey);
  padding-top: 16px;
  gap: 16px;
}

.copy p {
  color: var(--grey-color);
  font-family: var(--text-font);
  font-size: 14px;
}

.copy_links ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.copy_links ul li {
  list-style-type: none;
}

.copy_links ul li a {
  text-decoration: none;
  color: var(--grey-color);
  font-family: var(--text-font);
  font-size: 14px;
  transition: color 0.5s ease;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* --- TABLET (≤ 1024px) --- */
@media (max-width: 1024px) {
  .footer_logo {
    max-width: 100%;
  }
  /* FIX: eliminada la regla duplicada de 50% que pisaba al de 768px innecesariamente.
     Solo se controla desde el breakpoint mobile. */
}

/* --- MOBILE (≤ 768px) --- */
@media (max-width: 768px) {
  .footer_info {
    /* FIX: eliminado !important innecesario */
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 24px;
  }

  .footer_logo {
    max-width: 100%;
  }

  .footer_logo img {
    width: 50%;
    max-width: 180px;
  }

  .footer_links {
    text-align: left;
    width: 100%;
  }

  .footer_rights {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .copy p {
    text-align: left;
    font-size: 11px;
  }

  .copy_links ul {
    gap: 16px;
  }

  .copy_links ul li a {
    font-size: 12px;
  }
}

/* --- MÓVILES PEQUEÑOS (≤ 480px) --- */
@media (max-width: 480px) {
  .footersocial ul {
    gap: 12px;
  }
  header{
    padding: 20px 10px;
  }
}

.header_logo a {
    display: flex;
    align-items: center;
    line-height: 0;  /* elimina el espacio fantasma de inline */
    height: auto;
}

.header_logo img {
    display: block;  /* elimina el espacio inferior que dejan las imágenes inline */
    width: 100%;
    height: auto;
}