* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}
body {
  background-color: #062735;
}
strong {
  font-family: inherit;
}
#spinner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #00496b;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease-out, visibility 1s ease-out;
}

#spinner-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  position: absolute;
  width: 9px;
  height: 9px;
}

.spinner div {
  position: absolute;
  width: 50%;
  height: 150%;
  background: #bddb6b;
  transform: rotate(calc(var(--rotation) * 1deg))
    translate(0, calc(var(--translation) * 1%));
  animation: spinner-fzua35 1s calc(var(--delay) * 1s) infinite ease;
}

.spinner div:nth-child(1) {
  --delay: 0.1;
  --rotation: 36;
  --translation: 150;
}

.spinner div:nth-child(2) {
  --delay: 0.2;
  --rotation: 72;
  --translation: 150;
}

.spinner div:nth-child(3) {
  --delay: 0.3;
  --rotation: 108;
  --translation: 150;
}

.spinner div:nth-child(4) {
  --delay: 0.4;
  --rotation: 144;
  --translation: 150;
}

.spinner div:nth-child(5) {
  --delay: 0.5;
  --rotation: 180;
  --translation: 150;
}

.spinner div:nth-child(6) {
  --delay: 0.6;
  --rotation: 216;
  --translation: 150;
}

.spinner div:nth-child(7) {
  --delay: 0.7;
  --rotation: 252;
  --translation: 150;
}

.spinner div:nth-child(8) {
  --delay: 0.8;
  --rotation: 288;
  --translation: 150;
}

.spinner div:nth-child(9) {
  --delay: 0.9;
  --rotation: 324;
  --translation: 150;
}

.spinner div:nth-child(10) {
  --delay: 1;
  --rotation: 360;
  --translation: 150;
}

@keyframes spinner-fzua35 {
  0%,
  10%,
  20%,
  30%,
  50%,
  60%,
  70%,
  80%,
  90%,
  100% {
    transform: rotate(calc(var(--rotation) * 1deg))
      translate(0, calc(var(--translation) * 1%));
  }

  50% {
    transform: rotate(calc(var(--rotation) * 1deg))
      translate(0, calc(var(--translation) * 1.5%));
  }
}
#contenido {
  display: none;
  padding: 20px;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.header {
  width: 100%;
  height: 70px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999999;
  background: #062735;
  background: linear-gradient(90deg, #06273594 10%, #ffffff3f 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.5s ease-in-out; /* Transición suave */
}

.header.scrolled {
  background-color: #062735; /* Fondo sólido cuando se haga scroll */
}
.header-logo {
  width: 150px;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.header-logo a {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.header-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.header-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #00111d00;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 0rem;
}
.header-nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.header-nav li {
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}
.header-nav li:hover {
  color: #bddb6b;
}
.header-nav a {
  color: white;
  text-decoration: none;
  transition: 0.5s;
}
.header-nav a:hover {
  color: #bddb6b;
}
.bottom-nav {
  display: none;
}
.parallax-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* más que 100% para permitir el desplazamiento */
  background-size: cover;
  background-position: top;
  transform: translateY(0);
  z-index: -1;
  will-change: transform;
}

.section-content {
  position: relative;
  z-index: 2;
  padding: 50px;
  color: white;
}

.principal,
.terciary,
.fourth {
  position: relative;
  overflow: hidden;
}
.principal-title,
.terciary-title,
.fourth-content {
  position: relative;
  z-index: 1;
}
.principal .parallax-bg {
  background-image: url("");
}

.terciary .parallax-bg {
  background-image: url("/assets/image/terciary-fondo.jpg");
}

.fourth .parallax-bg {
  background-image: url("https://dl.dropboxusercontent.com/scl/fi/izvns0acp0ef70neokdv7/pexels-quintingellar-696205.jpg?rlkey=awfyovhvjwaxjlmt43kt2nbf7&st=2pfd2gz9&");
}

.principal {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.perfil-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
}

.perfil-izquierda {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2a7b9b;
  background: linear-gradient(
    180deg,
    #062735 0%,
    #2a7b9b 50%,
    #57c785 100%
  );
}
.perfil-derecha {
  width: 70%;
  height: 100%;
  padding: 5%;
  background-color: white;
}
.progreso-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
}

.progreso-contenedor {
  position: relative;
  width: 280px;
  height: 280px;
}

.progreso-circular {
  position: absolute;
  top: 0;
  left: 0;
}

.progreso-circular circle {
  fill: none;
  stroke-width: 12;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progreso-bg {
  stroke: #eeeeee79;
}

.progreso-fill {
  stroke: #cd7f32; /* inicial bronce */
  stroke-dasharray: 816; /* 2 * π * 130 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

.foto-perfil {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  background-color: white;
}

.nombre-usuario {
  margin-top: 20px;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
}

.nivel-texto, .faltan-texto {
  font-size: 1rem;
  color: #ffffff;
}

.perfil-derecha {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  background-color: white;
}

.puntos {
  display: flex;
  gap: 60px;
}

.label {
  font-size: 3rem;
  color: #062735;
}

.valor {
  font-size: 3rem;
  font-weight: bold;
  color: #062735;
}
.valor i{
  padding-right: 10px;
  color: #555;
}
.promos {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.promo-card {
  background-color: #f4f4f4;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.help-section {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 3rem;
  background-color: #062735;
  color: white;
}

/* Columna izquierda (contenido textual) */
.help-content {
  width: 45%;
  display: flex;
  flex-direction: column;
  min-width: 280px;
}

.help-content h2 {
  font-size: 4rem;
  color: #bddb6b;
}

.help-content p {
  font-size: 1.5rem;
}

.help-content a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}
.help-content img {
  width: 500px;
  height: auto;
  object-fit: contain;
}
/* Columna derecha (FAQs) */
.faq-container {
  flex: 1 1 45%;
  min-width: 280px;
}

/* Cada FAQ */
.faq {
  border: 1px solid #6bdb98;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: #0c3c47;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px; /* asegura que todos los bloques colapsados tengan altura */
  transition: all 0.3s ease;
}

/* Pregunta */
.faq-question {
  padding: 1rem;
  background-color: #062735;
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq.active .faq-question::after {
  content: "-";
}

/* Respuesta con animación */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 1rem;
}

.faq.active .faq-answer {
  max-height: 200px;
  padding: 1rem;
}

/* Responsive layout */
@media (max-width: 768px) {
  .help-section {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .faq-container,
  .help-content {
    width: 100%;
  }
}

footer {
  width: 100%;
  height: 250px;
  display: flex;
  padding: 20px;
  padding-left: 10%;
  padding-right: 10%;
  background-color: #062735;
}
.footer-container {
  width: 100%;
  height: 80%;
  margin: 20px;
  background-color: #00aebe00;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social {
  display: flex;
  flex-direction: column;
  color: white;
}
.social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  margin: 10px;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
}

#btn-back-to-top {
  position: fixed;
  bottom: 120px;
  right: 40px;
  display: none;
  background-color: #062735;
  border-color: #062735;
  border-radius: 50%;
}
/* Estilo del contenedor */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Centrar la lupa */
  padding-left: 20px; /* Sin desplazamiento extra */
}

/* Estilo de la lupa */
.search-icon {
  background: none; /* Sin fondo */
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.search-icon i {
  color: white; /* Color blanco para la lupa */
}

/* Contenedor del input */
.search-input-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Input */
#searchInput {
  width: 0;
  opacity: 0;
  padding: 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding-right: 30px; /* Espacio para la equis */
  transition: all 0.3s ease;
}

/* Mostrar input cuando se activa */
#searchInput.active {
  width: 200px;
  opacity: 1;
  padding: 10px;
}

/* Botón de la equis dentro del input */
.clear-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  display: none;
}

.clear-icon:hover {
  color: #555;
}

/* Contenedor de resultados */
.search-results {
  position: absolute;
  top: 100%; /* Aparecen justo debajo del input */
  left: 20%;
  background-color: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 200px; /* Ajuste según el ancho del input */
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
}

.search-results a {
  text-decoration: none;
  display: block;
  padding: 10px;
  color: black;
  border-bottom: 1px solid #eee;
}

.search-results a:hover {
  background-color: #f0f0f0;
}
