body {
  margin: 0;
  background: #6d75e8;
  font-family: Arial, sans-serif;
}

.marco {
  min-height: 100vh;
  padding: 22px;
  box-sizing: border-box;
}

.app-shell {
  min-height: calc(100vh - 44px);
  position: relative;
}

.pantalla {
  min-height: calc(100vh - 44px);
  background: #f4f3f3;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
}

.pantalla.visible {
  display: flex;
}

.portada {
  gap: 40px;
  padding: 40px 50px;
}

.bloque-imagen {
  flex: 0 1 380px;
  display: flex;
  justify-content: center;
}

.bloque-imagen img {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  background: #efeeee;
}

.bloque-texto {
  flex: 0 1 430px;
  color: #4f5873;
}

.etiqueta {
  position: relative;
  display: inline-block;
  background: #ff9ec9;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 20px;
  margin-bottom: 18px;
  font-family: "Comic Sans MS", cursive;
  width: fit-content;
  line-height: 1.3;
  box-shadow: 0 6px 14px rgba(255, 158, 201, 0.35);
}

.etiqueta::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ff9ec9;
}

.titulo {
  margin: 0 0 18px 0;
  line-height: 0.95;
}

.titulo-azul {
  display: block;
  color: #5b6ee8;
  font-size: 60px;
  font-weight: bold;
}

.titulo-color {
  display: block;
  font-size: 66px;
  margin-top: 6px;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
}

.c1 { color: #ef476f; }
.c2 { color: #f78c2b; }
.c3 { color: #f4c542; }
.c4 { color: #45b7ff; }
.c5 { color: #8e5cf7; }
.c6 { color: #32c48d; }

.descripcion {
  font-size: 18px;
  line-height: 1.6;
  max-width: 390px;
  margin: 0 0 28px 0;
  color: #4f5873;
}

.boton-principal {
  border: none;
  background: linear-gradient(135deg, #ff7eb3, #ff4fa3);
  color: white;
  padding: 18px 36px;
  border-radius: 999px;
  font-size: 26px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  box-shadow: 0 10px 20px rgba(255, 79, 163, 0.35);
  transition: all 0.2s ease;
  position: relative;
}

.boton-principal:hover  { transform: translateY(-3px) scale(1.03); }
.boton-principal:active { transform: scale(0.96); }

.boton-principal::after {
  content: "✨";
  position: absolute;
  right: -2px;
  top: -22px;
  font-size: 46px;
}

.pantalla-areas {
  text-align: center;
  padding: 36px 30px 40px;
}

.contenido-areas {
  width: 100%;
  max-width: 1280px;
  margin: auto;
}

.titulo-areas {
  margin: 0 0 28px 0;
  line-height: 0.92;
  text-shadow: 2px 4px 10px rgba(91, 110, 232, 0.22);
}

.titulo-areas-linea1,
.titulo-areas-linea2 {
  display: block;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  color: #5b6ee8;
  text-align: center;
}

.titulo-areas-linea1 { font-size: 52px; }
.titulo-areas-linea2 { font-size: 60px; margin-top: 4px; }

.grid-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 30px;
}

.area-card {
  border: none;
  border-radius: 34px;
  padding: 24px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: "Comic Sans MS", cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.10);
}

.area-card:hover  { transform: translateY(-6px) scale(1.03); box-shadow: 0 18px 36px rgba(0,0,0,0.15); }
.area-card:active { transform: scale(0.98); }

.area-icono {
  width: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.area-verde    { background: linear-gradient(180deg, #efffe8 0%, #ddf6d1 100%); }
.area-azul     { background: linear-gradient(180deg, #ebf4ff 0%, #d7e9ff 100%); }
.area-roja     { background: linear-gradient(180deg, #ffecec 0%, #ffd9d9 100%); }
.area-amarilla { background: linear-gradient(180deg, #fff8dd 0%, #ffefb3 100%); }

.boton-volver {
  border: none;
  background: linear-gradient(135deg, #ffb3d1, #ff6fae);
  color: white;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  box-shadow: 0 10px 20px rgba(255, 111, 174, 0.35);
  transition: all 0.2s ease;
}

.boton-volver:hover  { transform: translateY(-3px) scale(1.03); }
.boton-volver:active { transform: scale(0.96); }

.pantalla-preguntas { padding: 28px; }

.contenido-preguntas {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.barra-superior-preguntas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.progreso-wrap { flex: 1; }

.texto-progreso {
  color: #5b6ee8;
  font-family: "Comic Sans MS", cursive;
  font-size: 24px;
  margin-bottom: 10px;
  text-align: right;
}

.barra-progreso {
  width: 100%;
  height: 16px;
  background: #e7e7f8;
  border-radius: 999px;
  overflow: hidden;
}

.barra-progreso-fill {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8e5cf7, #45b7ff, #32c48d);
  transition: width 0.25s ease;
}

.pregunta-card {
  min-height: 520px;
  background: #ffffff;
  border-radius: 36px;
  box-shadow: 0 20px 40px rgba(91, 110, 232, 0.12);
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.titulo-pregunta-area {
  margin: 0 0 18px 0;
  font-family: "Comic Sans MS", cursive;
  font-size: 34px;
  color: #5b6ee8;
  text-align: center;
}

.texto-pregunta {
  margin: 0 0 28px 0;
  font-size: 42px;
  line-height: 1.25;
  color: #4f5873;
  text-align: center;
  font-family: "Comic Sans MS", cursive;
}

.opciones-pregunta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.opcion-btn {
  border: none;
  border-radius: 28px;
  padding: 22px;
  font-size: 24px;
  line-height: 1.3;
  color: #4f5873;
  background: #f8f7ff;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  box-shadow: 0 10px 20px rgba(91, 110, 232, 0.08);
  transition: all 0.2s ease;
  min-height: 110px;
}

.opcion-btn:hover  { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 28px rgba(91,110,232,0.14); }
.opcion-btn:active { transform: scale(0.98); }

.pregunta-bienestar   .opcion-btn { background: #f0faeb; }
.pregunta-inspiracion .opcion-btn { background: #eef5ff; }
.pregunta-servicio    .opcion-btn { background: #fff0f0; }
.pregunta-creatividad .opcion-btn { background: #fff9e7; }

.pantalla-resultado {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.contenido-resultado {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.resultado-card {
  position: relative;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(91, 110, 232, 0.12);
  padding: 44px 38px;
  text-align: center;
  z-index: 2;
}

.resultado-intro {
  margin: 0 0 18px 0;
  font-size: 30px;
  color: #ff6fae;
  font-family: "Comic Sans MS", cursive;
}

.resultado-texto {
  margin: 0 0 20px 0;
  font-size: 24px;
  line-height: 1.5;
  color: #4f5873;
}

.resultado-imagen {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  margin: 10px auto 20px;
  display: block;
  box-shadow: 0 12px 30px rgba(91, 110, 232, 0.15);
}

.resultado-nombre {
  margin: 0 0 8px 0;
  font-size: 48px;
  color: #5b6ee8;
  font-family: "Comic Sans MS", cursive;
}

.resultado-profesion {
  margin: 0 0 16px 0;
  font-size: 28px;
  color: #ff7eb3;
  font-family: "Comic Sans MS", cursive;
}

.resultado-frase {
  margin: 0 0 24px 0;
  font-size: 26px;
  line-height: 1.5;
  color: #4f5873;
  white-space: pre-line;
}

.resultado-cierre {
  margin: 0 0 22px 0;
  font-size: 24px;
  line-height: 1.55;
  color: #4f5873;
}

.resultado-final {
  margin: 0 0 30px 0;
  font-size: 24px;
  line-height: 1.6;
  color: #5b6ee8;
  font-family: "Comic Sans MS", cursive;
}

.boton-reiniciar        { position: static; }
.boton-reiniciar::after { display: none; }

/* CONFETTI */
.confeti {
  position: absolute;
  font-size: 42px;
  z-index: 1;
  opacity: 0.95;
  animation: flotar 3.2s ease-in-out infinite;
}

.confeti-1 { top: 20px;    left: 30px;  }
.confeti-2 { top: 60px;    right: 50px; animation-delay: .4s;  }
.confeti-3 { top: 180px;   left: 80px;  animation-delay: .8s;  }
.confeti-4 { bottom: 90px; right: 90px; animation-delay: 1.2s; }
.confeti-5 { bottom: 40px; left: 40px;  animation-delay: 1.6s; }

@keyframes flotar {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(8deg); }
}

@keyframes caerConfetti {
  0%   { transform: translateY(-40px) rotate(0deg);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.confetti-particula {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

/* PANTALLA 6: CIERRE */
.pantalla-cierre {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.contenido-cierre {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.cierre-card {
  position: relative;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(91, 110, 232, 0.12);
  padding: 44px 38px;
  text-align: center;
  z-index: 2;
}

.cierre-imagen {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 28px;
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 12px 30px rgba(91, 110, 232, 0.15);
}

.cierre-mensaje {
  font-size: 28px;
  line-height: 1.6;
  color: #4f5873;
  font-family: "Comic Sans MS", cursive;
  margin: 0 0 30px 0;
  white-space: pre-line;
}

.cierre-final {
  font-size: 26px;
  line-height: 1.8;
  color: #5b6ee8;
  font-family: "Comic Sans MS", cursive;
  margin: 0 0 36px 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .grid-areas        { grid-template-columns: repeat(2, 1fr); }
  .opciones-pregunta { grid-template-columns: 1fr; }
  .texto-pregunta    { font-size: 34px; }
}

@media (max-width: 850px) {
  .portada           { flex-direction: column; text-align: center; gap: 20px; padding: 28px 20px 36px; }
  .bloque-texto      { display: flex; flex-direction: column; align-items: center; }
  .bloque-imagen img { max-width: 240px; }
  .titulo-azul       { font-size: 42px; }
  .titulo-color      { font-size: 48px; }
  .etiqueta::after   { left: 50%; transform: translateX(-50%); }
  .titulo-areas-linea1 { font-size: 38px; }
  .titulo-areas-linea2 { font-size: 46px; }
  .grid-areas        { grid-template-columns: 1fr; gap: 18px; }
  .area-card         { min-height: 200px; padding: 20px 16px; }
  .area-icono        { max-width: 180px; max-height: 180px; }
  .barra-superior-preguntas { flex-direction: column; align-items: stretch; }
  .texto-progreso    { text-align: center; }
  .pregunta-card     { padding: 28px 20px; min-height: auto; }
  .titulo-pregunta-area { font-size: 28px; }
  .texto-pregunta    { font-size: 30px; }
  .opcion-btn        { font-size: 21px; min-height: 92px; }
  .resultado-card    { padding: 30px 20px; }
  .cierre-card       { padding: 30px 20px; }
  .resultado-nombre  { font-size: 38px; }
  .cierre-mensaje    { font-size: 22px; }
  .cierre-final      { font-size: 20px; }
  .resultado-frase,
  .resultado-cierre,
  .resultado-final,
  .resultado-texto   { font-size: 22px; }
}
