@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: #0a67d2;
  --color-grisclaro: #ecebed;
  --first-color-lighten: hsl(220, 68%, 97%);
  --text-color1: hsl(0, 0%, 100%);
  --text-color2: hsl(0, 0%, 0%);
  --body-color: hsl(220, 100%, 99%);
  --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;
  font-family: "Poppins",sans-serif;
}

body {
  color: var(--text-color1);
  font-family: "Poppins",sans-serif;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}


::-webkit-scrollbar { 
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track { 
  background: transparent;
  background: #000000;
  backdrop-filter: blur(5.85px);
}

::-webkit-scrollbar-thumb { 
  background: transparent;
  background: #0a67d27f;
  backdrop-filter: blur(5.85px);
  border-radius: 25px;
}

::-webkit-scrollbar-thumb:hover { 
  background-color: #0a67d2;
}


/* HEADER Inicio*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
  background: transparent;
  background: #0a0a0abd;
  backdrop-filter: blur(8.85px);
  z-index: var(--z-fixed);
}

/* NAV */
.nav {
  height: var(--header-height);
}

.nav__list{
  font-size: 1.050rem;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  width: 100px; /* Ajusta el ancho segÃºn tus necesidades */
  height: auto; /* PermitirÃ¡ mantener la relaciÃ³n de aspecto */
  object-fit: contain; /* Ajusta el objeto dentro del contenedor */
  display: block; /* Evita espacios innecesarios alrededor del logo */
  margin-left: 50px;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__toggle-menu, .nav__toggle-close {
  font-size: 1.25rem;
  color: var(--text-color1);
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__toggle-close {
  opacity: 0;
}

@media screen and (max-width: 1118px) {
  .nav__menu {
    background: transparent;
    background: #0a0a0abd;
    backdrop-filter: blur(5.85px);
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    padding-block: 1.5rem 4rem;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0.5rem;
  }

  .nav__menu::-webkit-scrollbar-thumb {
    background-color: hsl(220, 12%, 70%);
  }
}

.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: color 0.25s ease, transform 0.25s ease-out;
  text-decoration: none;
}

.nav__link:is(:hover, :focus-visible) { 
  color: #e8e8e8;
  transform: translateY(-3px);
  text-decoration: none;
}

.nav__link:hover::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--first-color);
  color: #eff0f3;
  position: absolute;
  bottom: 30px;
  left: 0;
  transition: width 0.25s ease-out;
}

/* Asegurarse de que la línea desaparezca al dejar de hacer hover en .nav__link */
.nav__link::after {
  content: "";
  display: block;
  height: 3px;
  width: 0; /* Inicialmente oculta la línea */
  background: #e8e8e8;
  position: absolute;
  bottom: 30px;
  left: 0;
  transition: width 0.25s ease-out;
}

.nav__link:hover::after {
  width: 100%; /* Muestra la línea al hacer hover en .dropdown__title */
}

.nav__buscador {
  color: var(--text-color1);
  font-weight: var(--font-semi-bold);
  padding: 1.5rem -5rem;
  margin-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);
}

/* Monstrar menu drop */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Mostrar iconos */
.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: transform 0.4s;
}

.dropdown__content, .dropdown__group, .dropdown__list {
  display: grid;
}

.dropdown__container {
  background: transparent;
  background: #080808be;
  backdrop-filter: blur(8.85px);
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
}

.dropdown__content {
  row-gap: 1.75rem;
}

.dropdown__group {
  padding-left: 2.5rem;
  row-gap: 0.5rem;
  transition: all 0.35s ease-out;
}

.dropdown__group:hover {
  transform: translateY(-10px);
}

.dropdown__group:first-child {
  margin-top: 1.25rem;
}

.dropdown__group:last-child {
  margin-bottom: 1.25rem;
}

.dropdown__icon i {
  font-size: 1.85rem;
  color: #0a78cc;
  transition: all 0.35s ease-out;
  cursor: pointer;
}

a {
  color: #0a78cc;
  transition: all 0.35s ease-out;
}

a:hover {
  transform: translateY(-10px);
  transform: scale(1.35);
}

.dropdown__icon i:hover {
  transform: translateY(-10px);
  transform: scale(1.35);
}

.dropdown__title {
  font-size: 2.750rem;
  font-weight: var(--font-semi-bold);
  color: #eff0f3;
  text-align: center;
  transition: all 0.35s ease-out;
  cursor: pointer;
}

.dropdown__title:is(:hover, :focus-visible) { 
  color: #e8e8e8;
  transform: translateY(-3px);
  text-decoration: none;
}

.dropdown__title:hover::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: #0a78cc;
  color: #eff0f3;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: width 0.25s ease-out;
}

/* Asegurarse de que la línea desaparezca al dejar de hacer hover en .dropdown__title  */
.dropdown__title::after {
  content: "";
  display: block;
  height: 3px;
  width: 0; /* Inicialmente oculta la línea */
  background: #e8e8e8;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: width 0.25s ease-out;
}

.dropdown__title:hover::after {
  width: 100%; /* Muestra la línea al hacer hover en .dropdown__title */
}

.dropdown__list {
  row-gap: 0.25rem;
}

.dropdown__link {
  color: var(--text-color1);
  font-weight: var(--font-semi-bold);
  padding: .35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.35s ease-out;
  text-decoration: none;
}

.dropdown__link:is(:hover, :focus-visible) { 
  color: #e8e8e8;
  transform: translateY(-3px);
  text-decoration: none;
}

.dropdown__link:hover::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: #0a78cc;
  color: #eff0f3;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: width 0.25s ease-out;
}

/* Asegurarse de que la línea desaparezca al dejar de hacer hover en .dropdown__link  */
.dropdown__link::after {
  content: "";
  display: block;
  height: 3px;
  width: 0; /* Inicialmente oculta la línea */
  background: #e8e8e8;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: width 0.25s ease-out;
}

.dropdown__link:hover::after {
  width: 100%; /* Muestra la línea al hacer hover en .dropdown__title */
}

/* Rotacion  dropdown de iconos */
.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) {
  /* Nav */
  .nav {
    height: calc(var(--header-height) + 2.25rem);
    display: flex;
    justify-content: space-between;
  }

  .nav__logo{
    width: 10rem;
    object-fit: cover;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 3rem;
    height: 100%;
  }

  .nav li {
    display: flex;
  }

  .nav__link {
    padding: 0;
  }

  .nav__link:hover {
    background-color: initial;
  }

  .nav__buscador{
    padding: 0;
  }

  .nav__buscador:hover {
    background-color: initial;
  }

  /* Dropdown */
  .dropdown__button {
    column-gap: 0.25rem;
    pointer-events: none;
  }
  
  .dropdown__container {
    height: max-content;
    position: absolute;
    left: 0;
    right: 0;
    top: 6.5rem;
    background: transparent;
    background: #0a0a0acc;
    backdrop-filter: blur(20.85px);
    box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }

  .dropdown__content {
    grid-template-columns: repeat(4, max-content);
    column-gap: 6rem;
    max-width: 1120px;
    margin-inline: auto;
  }

  .dropdown__group {
    padding: 4rem 0;
    align-content: baseline;
    row-gap: 1.25rem;
  }

  .dropdown__group:first-child, .dropdown__group:last-child {
    margin: 0;
  }

  .dropdown__list {
    row-gap: 0.75rem;
  }

  .dropdown__icon {
    width: 60px;
    height: 60px;
    background-color: var(--first-color-lighten);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
  }

  .dropdown__icon i {
    font-size: 2rem;
  }

  .dropdown__title {
    font-size: var(--normal-font-size);
  }

  .dropdown__link {
    font-size: var(--small-font-size);
  }

  .dropdown__link:hover {
    color: var(--color-grisclaro);
  }

  .dropdown__item {
    cursor: pointer;
  }

  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }

  .dropdown__item:hover > .dropdown__container {
    top: 5.5rem;
    opacity: 1;
    pointer-events: initial;
    cursor: initial;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
}

element.style {
  height: 294.849px;
  transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 9.49091, 0, 1);
}

.c-scrollbar_thumb {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #0a78cc;
  opacity: 0.5;
  width: 7px;
  border-radius: 10px;
  margin: 2px;
  cursor: -webkit-grab;
  cursor: grab;
}
