* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: #354a33;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  .container {
    width: 100%;
    max-width: 400px;
    background-color: #FFFFFF;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 77px);
    margin-top: 277px;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .back-btn {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: #4a90e2;
    cursor: pointer;
  }
  
  h1 {
    color: #ffffff;
    font-size: 33px;
    font-weight: normal;
    text-align: center;
    width: 100%;
    height: 63px;
    line-height: 78px;
  }
  
  .tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .tab {
    background-color: #e0d4fa;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    color: #4a90e2;
    border: none;
  }
  
  .tab.active {
    background-color: #4a90e2;
    color: #fff;
  }
  
  .question {
    font-family: "Helvetica";
    font-size: 1.8em;
    font-weight: bold;
    padding: 11px;
  }

  .options {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
  }

.option {
    background-color: #607D8B;
    border-radius: 20px;
    padding: 28px 20px;
    margin-top: 10px;
    cursor: pointer;
    color: #FFF;
    font-size: 1em;
    border-radius: 50px;
    /* line-height: 45px; */
    border: none;
}

.container .tag {
    background-color: #FF5722;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-top: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.steps .step {
    background-color: #607D8B50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 100%;
    cursor: pointer;
    border: none;
    height: 53px;
    width: 53px;
    line-height: 35px;
    font-size: 25px;
}

.steps .step.active {
    background-color: #607D8B;
}

.steps .step.correct {
    background-color: #4CAF50;
}

.steps .step.incorrect {
    background-color: #F44336;
}

.header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px;
    height: 20vh;
    max-width:400px;
}

.questions-container {
    display:none;
}

.container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding:20px;
    text-align: center;
}

.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .hexagon {
    width: 150px;
    height: 130px;
    background-color: #ddd;
    clip-path: polygon(50% 0%, 90% 25%, 90% 75%, 50% 100%, 10% 75%, 10% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .icon {
    width: 50px;
    height: 50px;
  }

  .option.correct {
    background-color: #4CAF50;
  }

  .option.incorrect {
    background-color: #F44336;
  }

  .results-container {
    display:none;
  }

  .results {
    font-size: 90px;
    text-align: center;
  }

  .btn {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    margin-top: 35px;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    display: inline-block;
    text-decoration:none;
  }

  .btn:hover {
    background-color: #4CAF50;
  }

.btn:active {
    background-color: #4CAF50;
}   

.btn.bottom {
    position:fixed;
    bottom: 20px;
}

input[type=text] {
  width: 100%;
  font-size: 30px;
  padding: 30px 0;
  border: 0;
  text-align:center
}

input[type=text]:focus {
  outline: none;         /* quita el borde de foco por defecto del navegador */
  box-shadow: none;      /* si el tema agrega un glow, lo elimina */
  border-color: inherit; /* opcional: mantiene el mismo color de borde que cuando no está en foco */
}

.cta {
  text-align:center;
}

.cta .btn {
  font-size: 25px;
}


/* ==== AI Loading Modal ==== */
.ai-loading { 
  position: fixed; inset: 0; display: none; place-items: center; z-index: 9999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.ai-loading.is-open { display: grid; }

.ai-loading__backdrop {
  position: absolute; inset: 0; 
  background: radial-gradient(1200px 800px at 50% 20%, rgba(76,175,80,0.15), transparent 60%),
              rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.ai-loading__dialog {
  position: relative;
  width: min(92vw, 420px);
  background: #0f1923;
  color: #eafff1;
  border-radius: 20px;
  padding: 28px 24px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(76,175,80,0.15);
  text-align: center;
  overflow: hidden;
}

/* Glow decorativo */
.ai-loading__dialog::before {
  content: "";
  position: absolute; inset: -2px;
  background: radial-gradient(300px 120px at 50% 0%, rgba(76,175,80,0.25), transparent 60%);
  pointer-events: none;
}

/* Orbita IA */
.ai-loading__orb {
  margin: 2px auto 14px;
  position: relative;
  width: 120px; height: 120px;
  filter: drop-shadow(0 8px 24px rgba(76,175,80,0.45));
}

.ai-loading__ring, .ai-loading__core { position: absolute; inset: 0; border-radius: 50%; }

/* Anillo con “circuito” girando */
.ai-loading__ring {
  --c: rgba(76,175,80,0.75);
  background:
    conic-gradient(from 0deg, transparent 0 70%, var(--c) 72% 74%, transparent 76% 100%),
    radial-gradient(closest-side, transparent 65%, rgba(76,175,80,0.15) 66% 68%, transparent 69%);
  -webkit-mask: radial-gradient(circle 52px at 50% 50%, transparent 64%, #000 66%);
  mask: radial-gradient(circle 52px at 50% 50%, transparent 64%, #000 66%);
  animation: ai-spin 1.25s linear infinite;
}

.ai-loading__core {
  inset: 18px;
  background:
    radial-gradient(circle at 50% 40%, #aef1c0 0%, #6be08e 30%, #3ec765 55%, #1b5e20 100%);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.35),
    0 0 50px rgba(76,175,80,0.55);
  animation: ai-pulse 1.75s ease-in-out infinite;
}

/* Puntos neurales */
.ai-loading__dots::before, .ai-loading__dots::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, #c8ffd7 2px, transparent 3px) 20% 30%/8px 8px,
    radial-gradient(circle, #c8ffd7 2px, transparent 3px) 70% 60%/10px 10px,
    radial-gradient(circle, #c8ffd7 2px, transparent 3px) 40% 75%/9px 9px,
    radial-gradient(circle, #c8ffd7 2px, transparent 3px) 65% 25%/8px 8px;
  opacity: .8;
  -webkit-mask: radial-gradient(circle 55px at 50% 50%, #0000 64%, #000 66%);
          mask: radial-gradient(circle 55px at 50% 50%, #0000 64%, #000 66%);
}
.ai-loading__dots::before { animation: ai-blink 2.3s ease-in-out infinite; }
.ai-loading__dots::after  { animation: ai-blink 2.3s ease-in-out .9s infinite; }

.ai-loading__title { 
  font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 6px; 
  color: #e8ffe9;
}
.ai-loading__msg   { 
  font-size: .95rem; color: #bfeccc;
  opacity: .9;
}

/* Animations */
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-pulse { 
  0%,100% { transform: scale(1); box-shadow: inset 0 0 26px rgba(255,255,255,.35), 0 0 40px rgba(76,175,80,.45); }
  50%     { transform: scale(1.04); box-shadow: inset 0 0 36px rgba(255,255,255,.55), 0 0 64px rgba(76,175,80,.7); }
}
@keyframes ai-blink { 
  0%,100% { opacity:.25; transform: translateY(0); }
  50%     { opacity:.9;  transform: translateY(-2px); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ai-loading__ring, .ai-loading__core, .ai-loading__dots::before, .ai-loading__dots::after {
    animation: none !important;
  }
}
