/* ===== Poppins (rutas relativas desde /css/ a /assets/tipografia/poppins/) ====== */
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-ExtraLight.ttf")
    format("truetype");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-ExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/poppins/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

/* ===== Base ===== */
:root {
  --h: 86px;
  --fg: #fff;
  --fg2: #cfcfcf;
  --bg: #000;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
}
a {
  text-decoration: none;
}

/* ===== Navbar contenedor ===== */
.nx-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  height: 150px;
  display: flex;
  align-items: center;
}
.nx-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Barra superior */
.nx-bar {
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
   width: 100%; 
   
}

/* Marca: SIEMPRE izquierda */
.nx-brand {
  display: flex;
  align-items: center;
  color: var(--fg);
}
.nx-logo {
  height: 64px;
  width: auto;
  display: block;
}

/* Menú desktop: poco espacio entre links y tipografía más grande */
.nx-menu {
  display: none; /* se muestra en desktop */
  align-items: center;
  gap: 80px;
  margin-right: 200px; /* Centrado visualmente con el logo e iconos */
}
.nx-menu > a {
  color: var(--fg);
  font-weight: 200;
  font-size: 20px;
  letter-spacing: 0.06em;
  font-family: 'poppins';
  white-space: nowrap; /* Evita que los enlaces se rompan en dos líneas */
}
.nx-menu > a:hover {
  opacity: 0.8;
}

/* Íconos + burger a la derecha */
.iconos {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nx-ico {
  font-size: 22px;
  color: #fff;
  opacity: 0.95;
}
.nx-ico:hover {
  opacity: 0.8;
}

/* Burger */
.nx-burger {
  display: none;
  margin-left: 12px;
  width: 55px;
  height: 55px;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;

}
.nx-burger span {
  width: 42px;
  height: 5px;
  background: #fff;
}

/* Backdrop */
.nx-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

/* Drawer DESDE LA DERECHA */
.nx-drawer {
  position: fixed;
  inset: 0 0 0 30%; /* abre desde la derecha */
  max-width: 360px;
  margin-left: auto;
  background: #000;
  transform: translateX(100%); /* oculto a la derecha */
  transition: transform 0.28s ease;
  display: flex; /* Cambio a flexbox */
  flex-direction: column;
  justify-content: space-between; /* Espacia el head, menu y footer */
}
.nx-drawer-head {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Alineado a la derecha */
  padding: 16px 18px;
  color: #fff;
  border-bottom: 1px solid #111;
  font-weight: 600;
}
.nx-close {
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}
.nx-drawer-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0; /* Espaciado interno */
  flex-grow: 1; /* Para que ocupe el espacio restante */
  row-gap: 50px;
  margin-top: 50px;
}
.nx-drawer-menu a {
  padding: 14px 18px;
  color: #fff;
  font-size: 50px;
  font-weight: 200;
  font-family: 'poppins';
  display: block; /* Para que cada enlace sea un bloque */
  width: 100%;
  text-align: center;
}
.nx-drawer-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Toggle estados */
#nx-toggle:checked ~ .nx-backdrop {
  opacity: 1;
  visibility: visible;
}
#nx-toggle:checked ~ .nx-drawer {
  transform: translateX(0);
}

/*
  ==========================================
  MEDIA QUERIES
  ==========================================
*/

/* ===== Desktop (>= 992px) ===== */
@media (min-width: 992px) {
  .nx-menu {
    display: flex;
  }
  .nx-burger,
  .nx-backdrop,
  .nx-drawer {
    display: none;
  }
  .iconos {
    display: flex;
  }
  .nx-bar {
    padding: 0 24px;
  }
  .nx-menu > a {
    font-size: 21px;
  }
}

/* ===== Mobile (< 992px) ===== */
@media (max-width: 991.98px) {
  /* Logo a la izquierda, burger a la derecha, íconos ocultos */
  .iconos .nx-ico {
    display: none;
  }
  .nx-nav {
    padding: 30px;
}
  .nx-burger {
    display: flex;
  }
  .nx-menu {
    display: none;
  }
  .nx-bar {
    padding: 0 12px;
  }
  .nx-logo {
    height: 100px;
  }
  .nx-drawer-head {
    /* Mantenido el espaciado para que el botón de cierre se vea bien */
  }
  .nx-drawer-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: 50px;
  }
  .nx-drawer-footer img {
    height: 50px;
  }
}