/*
 * Elevare88 Business Club · Test TP1 · estilos
 *
 * Look & feel basado en el logotipo de Elevare (oro + serif elegante).
 * Para cambiar el color de marca, edita SOLO --primary-color aquí abajo.
 */

:root {
  /* Oro corporativo de Elevare (tomado del logotipo) */
  --primary-color: #C19A5B;
  --primary-dark: #A8844A;
  /* Fondo muy claro, cálido (marfil) */
  --light-color: #faf7f1;
  /* Colores de texto */
  --text-dark: #2b2620;
  --text-light: #ffffff;
  /* Tipografía: serif para títulos (como el wordmark), sans para cuerpo */
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  /* Radio de borde común */
  --border-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--light-color);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 1rem 0;
}

.logo {
  max-width: 350px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

#app {
  width: 100%;
  max-width: 800px;
}

/* Generic card container */
.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

/* Primary button */
button.primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

button.primary:disabled {
  background-color: #e2d3b4;
  cursor: not-allowed;
}

button.primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
}

/* Back button arrow styling */
.back-button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* Progress bar for the questionnaire */
.progress-bar-container {
  width: 100%;
  background-color: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  margin: 1rem 0;
}

.progress-bar-fill {
  background-color: var(--primary-color);
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Question styling */
.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  cursor: pointer;
}

.options input[type="radio"] {
  margin-bottom: 0.25rem;
}

/* Results styling */
.result-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.result-section {
  margin-bottom: 1.5rem;
}

.result-section h3 {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.result-section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

/* Value selection lists */
.value-select-container {
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.value-select-container label {
  display: block;
  margin: 0.4rem 0;
}

textarea, input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  margin-bottom: 1rem;
  resize: vertical;
}

/* Ranking select styling */
.ranking-select {
  width: 60px;
  margin-left: 0.5rem;
}

@media (max-width: 600px) {
  .question-text {
    font-size: 1rem;
  }
  button.primary {
    width: 100%;
  }
}
/* --- Navegación (flechas) --- */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color); /* azul corporativo SPAIS */
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.next-arrow{
  position: fixed;      /* o absolute dentro de la card si prefieres */
  right: 24px;
  bottom: 24px;
  font-size: 22px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: var(--primary-color);  /* color SPAIS */
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.next-arrow:hover{ filter: brightness(1.05); }

.option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 6px;
}

.option-number {
  font-size: 1.2rem;
  font-weight: 600;
}

.option-text {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}
/* Texto debajo de cada opción por posición, por si el HTML no trae .option-text */
.options label { position: relative; display:flex; flex-direction:column; align-items:center; }
.options label::after {
  content: "";
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
  white-space: nowrap;
}
.options label:nth-child(1)::after { content: "Nada"; }
.options label:nth-child(2)::after { content: "Poco"; }
.options label:nth-child(3)::after { content: "A veces"; }
.options label:nth-child(4)::after { content: "Bastante"; }
.options label:nth-child(5)::after { content: "Totalmente"; }

