body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  padding: 5vw;
  margin: 0;
}

/* Contenedor principal */
.astroclave-contenedor {
  width: 90%;
  max-width: 90%;
  margin: auto;
  background: #fff;
  padding: 5%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

/* Bloques de pregunta */
.question-block {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 5%;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
}

/* Botones de opción */
.options button {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 14px 5%;
  font-size: 17px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #f1f1f1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.options button:hover {
  background: #e0f7fa;
  border-color: #00bcd4;
}

/* Feedback al responder */
.feedback {
  display: block;
  padding: 12px;
  margin-top: 14px;
  border-radius: 8px;
  font-weight: bold;
}

.correct {
  background: #d4edda;
  color: #155724;
}

.incorrect {
  background: #f8d7da;
  color: #721c24;
}

/* Bloque de finalización */
.end-block {
  text-align: center;
  padding: 5%;
  background: #fffbe6;
  border: 1px solid #fcefa3;
  border-radius: 16px;
  margin-top: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
}

/* Texto de interludio */
.interlude {
  width: 100%;
  margin-top: 20px;
  padding: 5%;
  background: #f0f4ff;
  border-left: 4px solid #3c8dbc;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Introducción */
.intro-block {
  padding: 5%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.intro-block p {
  font-size: 18px;
  margin-bottom: 16px;
}

/* Botón principal */
.button-primary {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 17px;
  transition: background 0.2s ease;
}

.button-primary:hover {
  background-color: #005f8d;
}

/* Estilos para Nyra */
.astroclave-card-title {
  color: #f9f9f9;
  font-weight: 600;
  font-size: 1.4rem;
}

.slide h2 {
  color: #f9f9f9;
  font-weight: 600;
  font-size: 1.6rem;
}

/* Diapositivas */
#nyra-prologo {
  max-width: 700px;
  margin: 2em auto;
  padding: 2em;
  background: #1e1e2f;
  color: #ffe38f;
  border-radius: 1em;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  font-family: 'Georgia', serif;
  text-align: left;
  position: relative;
  min-height: 400px; /* <- ¡Importante! */
  overflow: hidden;
}

#nyra-prologo .slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.8s ease;
}

#nyra-prologo .slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
}

/* Control general de visibilidad */
.slide {
  display: none !important;
}

.slide.visible {
  display: block !important;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
  }

  .astroclave-contenedor {
    width: 95vw;
    max-width: 95vw;
    margin: 0 auto;
    padding: 5vw;
    box-shadow: none;
    border-radius: 0;
  }

  .question-block,
  .intro-block,
  .end-block,
  .interlude {
    width: 100%;
    margin: 16px auto;
    padding: 5%;
  }

  .intro-block p,
  .interlude p {
    font-size: 17px;
    text-align: left;
    line-height: 1.6;
  }

  .options button {
    font-size: 16px;
    padding: 12px;
    word-break: break-word;
  }

  .button-primary {
    display: block;
    width: 90%;
    margin: 20px auto;
    font-size: 16px;
    padding: 12px;
  }
}
