@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --header-height: 3.5rem;
  --header-height2: 4.5rem;
  --first-color: #86ff05;
  --color-grisclaro: #ecebed;
  --first-color-lighten: hsl(0, 0%, 11%);
  --text-color1: hsl(0, 0%, 100%);
  --text-color2: hsl(0, 0%, 0%);
  --body-color: #ffffff;
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 1.150rem;
  --small-font-size: 1.150rem;
  --smaller-font-size: .75rem;
  --font-medium: 600;
  --font-semi-bold: 600;
  --z-tooltip: 10;
  --z-fixed: 1000;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1.25rem;
    --small-font-size: 1.050rem;
    --smaller-font-size: .850rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  color: var(--text-color1);
  background: #000000;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* HEADER Inicio*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 8px hsla(0, 0%, 8%, 0.552);
  background: transparent;
  background: #0c0c0cd3;
  backdrop-filter: blur(8.85px);
  z-index: var(--z-fixed);
}

/* NAV */
.nav {
  height: var(--header-height);
}

.nav__list {
  font-size: 1.050rem;
  font-family: "Poppins", sans-serif;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem;
  width: 100%;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  height: 42px;
  width: 160px;
  position: relative;
}

.logo-containerr,
.logo-containerrr {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo-image {
  position: relative;
  width: 100%;
  max-height: 40px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(34, 34, 31, 0.5));
  transition: transform 0.35s ease-out;
}

.nav__logo:hover .logo-image {
  transform: scale(1.04);
}

.nav__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color1);
  font-size: 1.65rem;
  cursor: pointer;
  margin-left: auto;
}

.nav__toggle-menu,
.nav__toggle-close {
  font-size: 1.65rem;
  color: var(--text-color1);
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.35s ease;
}

.nav__toggle-close {
  opacity: 0;
}

@media screen and (max-width: 1118px) {
  .nav__menu {
    background: transparent;
    background: #050505cd;
    backdrop-filter: blur(8.85px);
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    padding-block: 1.5rem 4rem;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }
}

.nav__link {
  color: var(--text-color1);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.35s ease-out;
  text-decoration: none;
}

.nav__link:is(:hover, :focus-visible) {
  color: #ffffff;
  transform: translateY(-3px);
  text-decoration: none;
}

.nav__link::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #86ff05, #ffee00);
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
  pointer-events: none;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__buscador {
  color: var(--text-color1);
  font-weight: var(--font-semi-bold);
  padding: 1.5rem -5rem;
  left: -85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  transition: color 0.25s ease, transform 0.25s ease-out;
}

.nav__buscador:hover {
  color: var(--first-color);
  transform: translateY(-2px);
}

.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

.show-icon .nav__toggle-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__toggle-close {
  opacity: 1;
  transform: rotate(90deg);
}

/*DROPDOWN*/
.dropdown__button {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.5rem;
  font-weight: initial;
  transition: all 0.4s ease-in-out;
  color: #86ff05;
}

.dropdown__content,
.dropdown__group,
.dropdown__list {
  display: grid;
}

.dropdown__container {
  background: transparent;
  background: #000000f1;
  backdrop-filter: blur(8.85px);
  height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.dropdown__content {
  row-gap: 1.75rem;
}

.dropdown__group {
  padding-left: 2.5rem;
  row-gap: 0.5rem;
}

.dropdown__group:first-child {
  margin-top: 1.25rem;
}

.dropdown__group:last-child {
  margin-bottom: 1.25rem;
}

.dropdown__icon i {
  font-size: 1.85rem;
  color: var(--first-color);
  background-color: var(--first-color-lighten);
}

.dropdown__title {
  font-size: 1.750rem;
  font-weight: var(--font-semi-bold);
  color: #ffffff;
}

.dropdown__list {
  row-gap: 0.25rem;
}

.dropdown__link {
  font-size: 1.250rem;
  font-weight: var(--font-normal);
  color: var(--text-color1);
  transition: all 0.35s ease-out;
  list-style: none;
}

.dropdown__link:is(:hover, :focus-visible) {
  color: #05fe16;
  transform: translateY(-3px);
  text-decoration: none;
}

.dropdown__link::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #86ff05, #ffee00);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
  pointer-events: none;
}

.dropdown__link:hover::after,
.dropdown__link:focus-visible::after {
  width: 100%;
}

.show-dropdown .dropdown__arrow {
  transform: rotate(180deg);
}

@media screen and (max-width: 300px) {
  .dropdown__group {
    padding-left: 1.5rem;
  }
}

@media screen and (min-width: 1118px) {
  .header {
    height: 5.75rem;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 10000;
  }

  .nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1560px;
    width: 100%;
    margin: 0 auto;
    padding: 0 6.5rem 0 7.5rem;
    overflow: visible;
  }

  .nav__data {
    width: auto;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .nav__logo {
    width: 13.5rem;
    height: 52px;
    display: inline-flex;
    align-items: center;
  }

  .logo-containerr,
  .logo-containerrr {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .logo-image {
    max-height: 50px;
    width: auto;
    object-fit: contain;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    margin-left: auto;
    overflow: visible;
  }

  .nav__list {
    display: flex;
    align-items: center;
    column-gap: 2.25rem;
    height: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-wrap: nowrap;
    font-family: "Poppins", sans-serif;
    overflow: visible;
  }

  .nav li {
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    height: 100%;
  }

  .nav__link {
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    color: #ffffff;
    position: relative;
    text-decoration: none;
    letter-spacing: -0.2px;
  }

  .nav__link .nav-icon,
  .nav__link i.fas {
    font-size: 1.15rem;
    color: #86ff05;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__link:hover {
    color: #ffffff;
    background-color: transparent;
    transform: translateY(-2px);
  }

  .nav__link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #86ff05, #ffee00);
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
    pointer-events: none;
  }

  .nav__link:hover::after,
  .nav__link:focus-visible::after {
    width: 100%;
  }

  .nav__buscador {
    padding: 0;
  }

  .nav__buscador:hover {
    background-color: initial;
  }

  .dropdown__button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    font-family: "Poppins", sans-serif;
    color: #ffffff;
  }

  .dropdown__arrow {
    margin-left: 0.25rem;
    font-size: 1.25rem;
    color: #86ff05;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: transform 0.35s ease;
  }

  .dropdown__item {
    cursor: pointer;
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: center;
  }

  .dropdown__container {
    height: auto !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: max-content;
    top: 100%;
    padding-top: 0.75rem;
    /* Crea un área activa continua sin huecos */
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 99999;
  }

  /* La tarjeta visible con fondo oscuro y glassmorphism */
  .dropdown__content {
    grid-template-columns: repeat(2, minmax(220px, max-content));
    column-gap: 3.5rem;
    padding: 2.2rem 3rem;
    margin-inline: auto;
    background: #090909f2;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(134, 255, 5, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(134, 255, 5, 0.08);
  }

  .dropdown__group {
    padding: 0;
    align-content: baseline;
    row-gap: 1.1rem;
  }

  .dropdown__group:first-child,
  .dropdown__group:last-child {
    margin: 0;
  }

  .dropdown__list {
    row-gap: 0.9rem;
  }

  .dropdown__icon {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(134, 255, 5, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(134, 255, 5, 0.25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 0.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(134, 255, 5, 0.1);
  }

  .dropdown__icon i {
    font-size: 1.75rem;
    color: #86ff05;
  }

  .dropdown__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
  }

  .dropdown__link {
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.25s ease, transform 0.25s ease;
  }

  .dropdown__link:hover {
    color: #86ff05;
    transform: translateX(4px);
  }

  .dropdown__item:hover .dropdown__arrow,
  .dropdown__item:focus-within .dropdown__arrow {
    transform: rotate(180deg);
  }

  /* Mantener activo tanto en hover del li como del container */
  .dropdown__item:hover>.dropdown__container,
  .dropdown__container:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media screen and (max-width: 1117px) {
  .nav__data {
    height: 100%;
    margin-left: 0;
    padding: 0 1.25rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav__logo {
    margin: 0;
    width: 150px;
    height: 38px;
    display: flex;
    align-items: center;
  }

  .logo-containerr,
  .logo-containerrr {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .logo-image {
    max-height: 36px;
    width: auto;
    object-fit: contain;
  }

  .nav__toggle {
    font-size: 1.65rem;
    color: var(--text-color1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    width: 40px;
    height: 40px;
  }

  .nav__link {
    color: var(--text-color1);
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.35s ease-out;
    text-decoration: none;
  }

  .nav__link:is(:hover, :focus-visible) {
    color: #ffffff;
    transform: translateY(-3px);
    text-decoration: none;
  }

  .nav__link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #86ff05, #ffee00);
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
  }

  .nav__link:hover::after,
  .nav__link:focus-visible::after {
    width: 100%;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
}