/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body { 
  font-family: Arial, sans-serif; 
  background: #ffffff; 
  text-align: center; 
  background-color: #6c1b19; 
  margin: 0;
  padding: 0;
}

/* Pantalla del juego */
#card { 
  padding: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(images/fondo-02.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Pantalla de resultado */
#screen-resultado {
  padding: 40px;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(images/fondo-resultado.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

#resultado-contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  padding: 40px;
}

/* Columna izquierda - Imagen */
.resultado-imagen {
  flex: 0 0 300px;
  text-align: center;
}

.resultado-imagen img { 
  width: 100%;
  height: auto;
}

/* Columna derecha - Información */
.resultado-info {
  flex: 1;
  text-align: left;
}

.resultado-info h2 {
  color: #ffffff;
  font-size: 3em;
  margin-bottom: 15px;
  text-shadow: -2px 1px 1px #464646;
  font-family: 'Bebas Neue', sans-serif;
}

.resultado-info h3 { 
  color: #f4e4c1; 
  font-style: italic; 
  font-size: 1.8em;
  margin: 15px 0 25px 0; 
  font-weight: normal; 
}

.resultado-info p {
  color: #f4e4c1;
  font-size: 1.3em;
  line-height: 1.6;
  text-shadow: -1px 1px 1px #464646;
  margin-bottom: 30px;
}

.resultado-info p,
.resultado-info h2,
.resultado-info h3 {
  color: #f4e4c1;
}

/* Pantalla de bienvenida */
#screen-bienvenida {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* Estilos de pregunta */
#pregunta { 
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  margin-bottom: 25px;
  min-height: auto;
  color: #f4e4c1;
  text-shadow: -3px 2px 2px #464646;
  font-weight: 600;
  padding: 0 20px;
  max-width: 70%;
  position: relative;
  top: 15%;
  left: 15%;
}

/* Contador de preguntas */
#count_pregunta {
  width: auto;
  height: 40px;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* Contenedor de respuestas */
.respuestas {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin: 30px 20px;
  flex-wrap: wrap;
  width: 90%;
  max-width: 800px;
}

/* Botones generales */
.btn { 
  background: #4a90e2; 
  color: white; 
  border: none; 
  padding: 20px 30px; 
  font-size: clamp(1em, 2.5vw, 1.3em);
  border-radius: 10px; 
  cursor: pointer; 
  transition: 0.2s; 
  flex: 1;
  max-width: 400px;
  min-width: 250px;
  min-height: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  word-wrap: break-word;
  line-height: 1.3;
}

/* Botones específicos de respuesta */
#btn-respuesta1 {
  background: #f4e4c1;
  border-radius: 300px;
  width: 250px;
  height: 250px;
  position: absolute;
  bottom: 250px;
  left: 640px;
  color: #702319;
  font-size: 1.3rem;
  line-height: 25px;
}

#btn-respuesta2 {
  background: #702319;
  border-radius: 300px;
  width: 250px;
  height: 250px;
  position: absolute;
  bottom: 250px;
  right: 640px;
  color: #f4e4c1;
  font-size: 1.3rem;
  line-height: 25px;
}

/* Personajes/ilustraciones */
.personajes-1, .personajes-2 {
  position: fixed;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.personajes-1 {
  left: 50px;
}

.personajes-2 {
  right: 5%;
}

.personajes-1 img,
.personajes-2 img {
  max-width: 450px;
}

/* Logos */
.logos {
  position: fixed;
  top: 30px;
  right: 70px;
  z-index: 10;
}

/* Estilos del resultado - versión antigua */
#resultado { 
  margin-top: 30px; 
  padding: 0 20px;
  max-width: 90%;
}

#resultado img { 
  max-width: 250px; 
  border-radius: 12px; 
  margin-top: 15px; 
}

#resultado h2 {
  color: #ffffff;
  text-shadow: -2px 1px 1px #464646;
}

#resultado h3 { 
  color: #f4e4c1; 
  font-style: italic; 
  margin: 10px 0; 
  font-weight: normal; 
}

#resultado p {
  color: #ffffff;
  font-size: 1.2em;
  line-height: 1.4;
  text-shadow: -1px 1px 1px #464646;
}

/* Clases específicas para el resultado */
.copy-resultado {
  font-size: 2rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

.nombre-personaje {
  font-size: 6.3rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

h3.arquetipo-personaje {
  font-size: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

p.descripcion-personaje {
  font-size: 1.5rem !important;
}

/* Spinner de carga */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(244,228,193,0.3);
  border-radius: 50%;
  border-top-color: #f4e4c1;
  animation: spin 1s ease-in-out infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Media queries para móviles */
@media (max-width: 768px) {
  #pregunta {
    font-size: 2.5em;
    padding: 0 10px;
  }
  
  .btn {
    min-width: 200px;
    font-size: 1.1em;
  }
  
  .personajes-1, .personajes-2 {
    display: none;
  }
  
  #count_pregunta {
    font-size: 1.5rem;
    right: 10px;
    top: 10px;
  }
}