/* =============================================
   Trivia CeraVe - style.css
   - Lienzo fijo 1920x1080 (auto-escala via JS)
   ============================================= */

/* Carga de las Fuentes */
@font-face {
  font-family: "DINNextLight";
  src: url("fonts/DINNextLTPro-LightCondensed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINNext";
  src: url("fonts/DINNextLTPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINNextBold";
  src: url("fonts/DINNextLTPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Alternativa (por si prefieres DIN Alternate Bold) */
@font-face {
  font-family: "DINAlternate";
  src: url("fonts/DINAlternate-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* (Opcional) DIN normal como fallback */
@font-face {
  font-family: "DIN";
  src: url("fonts/DIN.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Layout base */
* {
  box-sizing: border-box;
}

/* Fondo negro y centrado */
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* Para el tema de los fondos de imagen y el centrado con su resolución */
#stage-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical (cámbialo a flex-start si quieres “arriba”) */
  overflow: hidden;
  background: #000;
}

/* Reoslución 1920x1080 */
#stage {
  width: 1920px;
  height: 1080px;
}

/* Pantallas Principales */
.screen {
  font-family: "DINAlternate";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}

.screen.visible {
  display: block;
}

/* Texto del comienzo centrado */
.tittle {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #003366;
  /* azul oscuro similar al de CeraVe */
  font-family: Arial, sans-serif;
}

/* Texto principal */
.tittle h1 {
  font-family: "DINAlternate";
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 70px;
  font-weight: bold;
  margin-bottom: 30px;
}

/* Botón estilo CeraVe (compartido con opciones) */
.btn-comenzar,
.opcion {
  font-family: "DINNextBold";
  --azul: #0077d9;
  --azul-dark: #005fb1;
  --azul-shadow: rgba(0, 119, 217, .35);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  /* text-transform: uppercase; */

  background: linear-gradient(180deg, var(--azul) 0%, var(--azul-dark) 100%);
  box-shadow:
    0 12px 24px var(--azul-shadow),
    inset 0 -4px 0 rgba(0, 0, 0, .18);

  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  user-select: none;

  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

/* Cuando se pasa por el botón */
.btn-comenzar:hover,
.opcion:hover {
  filter: brightness(1.06);
  box-shadow:
    0 16px 28px var(--azul-shadow),
    inset 0 -3px 0 rgba(0, 0, 0, .18);
}

.btn-comenzar:active,
.opcion:active {
  transform: translateY(1px) scale(.99);
  filter: brightness(.98);
  box-shadow:
    0 8px 16px var(--azul-shadow),
    inset 0 -2px 0 rgba(0, 0, 0, .22);
}

.btn-comenzar:focus-visible,
.opcion:focus-visible {
  outline: 3px solid #b3ddff;
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(0, 123, 255, .25),
    0 12px 24px var(--azul-shadow),
    inset 0 -4px 0 rgba(0, 0, 0, .18);
}

/* Tamaños: botón principal */
.btn-comenzar {
  min-width: 380px;
  padding: 22px 46px;
  font-size: 44px;
}

.btn-comenzar.small {
  min-width: 280px;
  padding: 16px 32px;
  font-size: 32px;
}

/* Opciones (ocupan la columna del grid) */
.opcion {
  width: 100%;
  padding: 20px 28px;
  font-size: 40px;

  hyphens: none;
  /* sin guiones automáticos */
  -webkit-hyphens: none;
  -ms-hyphens: none;

  overflow-wrap: normal;
  /* romper solo entre espacios */
  word-break: normal;
  /* no dividir dentro de la palabra */
  white-space: normal;
  /* permitir saltos de línea normales */
}

/* Al seleccionar (tu JS añade .selected) */
.opcion.selected {
  filter: brightness(0.92);
  transform: translateY(1px) scale(.99);
}

/* Área útil de la pantalla de preguntas */
.quiz {
  position: absolute;
  left: 160px;
  right: 160px;
  top: 140px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  justify-content: center;
}

/* Grid de opciones – siempre pegado debajo de la pregunta */
.opciones {
  /* quita: flex: 1 1 auto; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  align-content: start;
}

/* Tarjeta de la pregunta (ajusta alto según contenido) */
.question-box {
  font-family: "DINNext";
  background: #fff;
  border: 6px solid #a6b0c2;
  border-radius: 28px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
  padding: 32px 80px;
  min-height: 210px;
}

/* Texto dentro del cuadro */
/* NO cortar palabras dentro del texto */
.question-box p {
  text-align: center;
  hyphens: none;
  /* sin guiones automáticos */
  -webkit-hyphens: none;
  -ms-hyphens: none;

  overflow-wrap: normal;
  /* romper solo entre espacios */
  word-break: normal;
  /* no dividir dentro de la palabra */
  white-space: normal;
  /* permitir saltos de línea normales */
}

/* Resultado */
.resultado-contenido {
  font-family: "DINNextBold";
  position: absolute;
  top: 50%;
  left: 60%;
  width: max-content;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #0f3a5a;
}

.textResultado {
  font-family: "DINAlternate";
}

#tituloResultado {
  font-size: 180px;
  margin: 0 0 10px 0;
}

#detalleResultado {
  font-family: "DIN";
  font-size: 50px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {

  .btn-comenzar,
  .opcion {
    transition: none;
  }
}

.progreso {
  position: absolute;
  top: 90px;
  left: 160px;
  color: #0f3a5a;
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}