:root {
  --almost-white: hsl(0, 0%, 98%);
  --medium-gray: hsl(0, 0%, 55%);
  --almost-black: hsl(0, 0%, 8%);
}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  font-family: "Epilogue", sans-serif;
  background-color: black;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--almost-white);
}

a {
  text-decoration: none;
  font-size: 16px;
}
h2 {
  margin-top: 10px;
  color: #fff;
  text-align: center;
}
h3 {
  margin: 20px 0 10px;
  color: #fff;
}
a:hover {
  color: #eed707;
}
span:hover {
  color: #eed707;
}
.contenedor {
  background-color: black;
  display: none;
}

.nombre {
  font-weight: bold;
  color: #2a9ad7;
  font-style: normal;
}

.container {
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  max-width: 1200px;
}

hr {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.314);
  margin: 20px auto;
  width: 20em;
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__hamburguer {
  width: 30px;
  height: 50%;
  background-image: url("../images/icon-menu.svg");
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 1;
  transition: background-image 0.3s;
}

.nav__hamburguer--open {
  background-image: url("../images/icon-close-menu.svg");
  z-index: 2;
}

.nav__overlay {
  background-color: #000000a7;
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s opacity;
  z-index: 1;
}

.nav__overlay--show {
  opacity: 1;
  pointer-events: unset;
}

.nav__img {
  width: 150px;
}

.nav__menu {
  color: #fff;

  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: var(--almost-black);
  width: 65%;
  max-width: 400px;
  padding: 0;
  list-style: none;
  overflow: auto;
  padding: 70px 0;
}

.nav__item {
  width: 80%;
  margin: 0 auto;
  cursor: pointer;
  padding: 20px 0;
}

.nav__item:has(.nav__parent) {
  padding: 0;
}

.nav__inner {
  list-style: none;
  padding: 0;
  width: 80%;
  margin: 0 auto;
  display: grid;
  gap: 1.5em;
  overflow: hidden;
  height: 0;
  transition: height 0.4s;
}

.nav__parent {
  display: grid;
  align-items: center;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1.3em;
  padding: 20px 0;
}

.nav__link {
  text-decoration: none;
  color: #fff;
}

.nav__user {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.nav__logout {
  border-radius: 1em;
  margin-top: 20px;
  border: 1px solid var(--medium-gray);
}

.nav__login {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.nav__login--border {
  border-radius: 1em;
  margin-top: 20px;
  border: 1px solid var(--medium-gray);
}

.nav__sign {
  display: inline-block;
  color: var(--medium-gray);
  padding: 0.7em 0;
  text-decoration: none;
}
/* Main */

.universo {
  display: flex;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.915) 0%,
      rgba(16, 0, 30, 0.511) 50%,
      rgba(0, 0, 0, 0.852) 100%
    ),
    url("../images/universo.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 80vh; /* Ajusta la altura mínima según tus necesidades */
  margin: 0; /* Asegura que no haya margen alrededor del body */
}
.sistema-solar {
  font-size: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-area: img; /* Agrega esta línea para asignar el área correcta en el grid */
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10em;
  height: 10em;
  background-image: url("../images/sol.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.sun-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 221, 0, 0.8) 100%,
    rgba(255, 221, 0, 0.37) 100%
  ); /* Gradient para opacidad gradual */
  background: radial-gradient(
    circle,
    rgba(197, 173, 17, 0.432) 30%,
    rgba(159, 140, 17, 0.108) 60%,
    rgba(159, 135, 17, 0) 100%
  );
  animation: breathing 4s infinite alternate; /* Animación de respiración */
  border-radius: 50%;
}

@keyframes breathing {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.9);
  }
}

.earth,
.moon {
  position: absolute;
  border-style: solid;
  border-color: white transparent transparent transparent;
  border-width: 0.1em 0.1em 0 0;
  border-radius: 50%;
}

.earth {
  width: 30em;
  height: 30em;
  animation: orbita 36.5s linear infinite;
}

.moon {
  top: 0;
  right: 0;
  width: 8em;
  height: 8em;
  animation: orbita 2.5s linear infinite;
}

.earth::before,
.moon::before {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.earth::before {
  top: 2.8em;
  right: 2.8em;
  width: 3em;
  height: 3em;
  background-image: url("../images/tierra.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.moon::before {
  top: 0.8em;
  right: 0.8em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("../images/luna.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@keyframes orbita {
  to {
    transform: rotate(360deg);
  }
}

.main__grid {
  height: 80vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 5% 2fr 5%;
  grid-template-areas:
    "img img img"
    ".   text . ";
}

.main__article {
  padding: 56px 0;
  text-align: center;
  grid-area: text;
}

.main__title {
  font-size: 2rem;
}

.main__paragraph {
  line-height: 1.5;
  margin: 1.5em 0;
}

.main__cta {
  background-color: var(--almost-black);
  color: #fff;
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.main__picture {
  grid-area: img;
  max-width: 400px;
  margin: 0 auto;
}

.main__img {
  width: 100%;
}

.main__brands {
  display: grid;
  gap: 1em;
  grid-auto-flow: column;
  grid-auto-columns: minmax(30px, 100px);
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 80px;
}

.main__brand {
  width: 100%;
}

@media (min-width: 768px) {
  .nav {
    gap: 2em;
    overflow: visible;
    padding: 50px 0 0;
  }

  .nav__hamburguer {
    display: none;
  }

  .nav__overlay {
    position: unset;
    background-color: transparent;
    opacity: 1;
    pointer-events: unset;
    flex: 1;
  }

  .nav__menu {
    position: unset;
    width: 100%;
    max-width: unset;
    background-color: unset;
    padding: 0;
    overflow: unset;
    display: flex;
    align-items: center;
    gap: 1em;
  }

  .nav__item {
    width: max-content;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .nav__inner {
    position: absolute;
    left: 0;
    padding: 0;
    width: max-content;
    height: auto;
    padding: 2em;
    background-color: var(--almost-black);
    z-index: 1000;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    transition: opacity 0.1s;
    opacity: 0;
    pointer-events: none;
  }

  .nav__inner--show {
    opacity: 1;
    pointer-events: unset;
  }

  .nav__login {
    width: max-content;
    margin: 0;
    margin-left: auto;
  }

  .nav__login--border {
    margin: 0;
    padding: 0 1.5em;
  }

  .nav__logout {
    margin: 0;
    padding: 0 1.5em;
  }
  .nav__user {
    width: max-content;
    margin: 0;
    margin-left: auto;
  }

  .main__grid {
    margin: 0 auto;
    max-width: 1200px;
    width: 90%;
    gap: 2em;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text img";
    padding: 70px 0;
  }

  .main__picture {
    max-height: 500px;
  }

  .main__img {
    height: 100%;
  }

  .main__article {
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .main__brands {
    margin: auto 0 0 0;
  }

  .main__texts {
    margin: auto 0;
  }

  .main__title {
    font-size: 3.5rem;
  }

  .main__paragraph {
    margin: 2em 0;
  }
}

.seguir-viendo-btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.seguir-viendo-btn:hover {
  background-color: #eed707;
}
.modal {
  transition: 0.2s opacity;
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  border-radius: 10px;
  background-color: #1a1a1a;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #444;
  width: 90%;
  max-width: 600px;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  margin: 0 auto;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media {
  width: 100%;
  height: 100%;
  border: 2px solid #444;
  border-radius: 10px;
  overflow: hidden;
}

.modal-text {
  color: #ccc;
  text-align: justify;
  padding: 10px;
}

.modal-references {
  color: #ccc;
  text-align: left;
  border-radius: 10px;
  margin: 20px auto;
  border: 1px solid #444;
  padding: 15px;
  max-width: 90%;
  overflow: hidden;
}

.modal-references ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 150px;
  overflow-y: auto;
}

.modal-references li {
  margin-bottom: 10px;
}

.modal-references ul::-webkit-scrollbar {
  width: 8px;
}

.modal-references ul::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.modal-references ul::-webkit-scrollbar-track {
  background-color: #333;
  border-radius: 4px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #eed707;
  text-decoration: none;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content p {
  margin-bottom: 15px;
}


.form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group {
  margin-bottom: 20px;
  width: 80%;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #6c63ff;
}

.btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #eed707;
}
.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción de aspecto 16:9 (para videos de YouTube) */
  height: 0;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.314);
    margin: 20px auto;
    width: 15em;
  }
  .main__grid {
    overflow-y: auto;
  }
  .sistema-solar {
    height: 40em;
    font-size: 9px;
  }
}

#spinner-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #eed707;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.footer {
  background-color: #000000;
  padding: 30px;
  text-align: center;
}

.footer p {
  color: #f3f3f3;
  margin: 0;
  font-size: 14px;
}
