/* VARIABLES DE DISEÑO - Estilo sobrío e institucional de Ideas Aumentadas */
:root {
  --bg-color: #FAFAFA;
  --text-main: #1A1A1A;
  --text-muted: #555555;
  --accent: #E87B8C;
  /* Rosa palo oficial */
  --accent-hover: #D66A7A;
  --accent-secondary: #8FA668;
  /* Oliva brillante oficial */
  --border: #E0E0E0;
  --option-bg: #FFFFFF;
  --option-hover: #F2F2F2;
  --option-active: #E8E8E8;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-family-body: 'Inter', sans-serif;
  --font-family-title: 'IBM Plex Sans', sans-serif;
}

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

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  width: 100%;
  background: var(--bg-color);
}

/* UTILIDADES Y ANIMACIONES */
.hidden-section {
  display: none !important;
}

.active-section {
  display: block;
}

.fadeIn {
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* INTRODUCCIÓN */
.brand-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

h1 {
  font-family: var(--font-family-title);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

h2,
h3 {
  font-family: var(--font-family-title);
  font-weight: 600;
}

.disclaimer-box {
  background: var(--option-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.disclaimer-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.final-warning {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

/* BOTONES */
.primary-btn {
  background-color: var(--accent);
  color: #FFF;
  border: none;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.primary-btn:hover {
  background-color: var(--accent-hover);
}

.primary-btn:disabled {
  background-color: var(--border);
  cursor: not-allowed;
}

/* SECCIÓN PREGUNTAS */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

.block-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  font-weight: 600;
}

.question-title {
  font-family: var(--font-family-title);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.4;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background-color: var(--option-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 18px 24px;
  text-align: left;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.option-btn:hover {
  background-color: var(--option-hover);
  border-color: #CCC;
}

.option-btn:active {
  background-color: var(--option-active);
  transform: scale(0.99);
}

/* EMAIL (Lead Capture) */
#email-section h2 {
  font-family: var(--font-family-title);
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 16px;
}

#email-section p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

#email-form input {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  font-family: inherit;
  outline: none;
}

#email-form input:focus {
  border-color: var(--accent);
}

/* RESULTADOS */
.result-header {
  margin-bottom: 32px;
}

.score-pill {
  display: inline-block;
  background: var(--text-main);
  color: var(--bg-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

#result-title {
  font-size: 2rem;
}

.result-body {
  background: var(--option-bg);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--border-radius);
  margin-bottom: 32px;
}

.result-body p {
  margin-bottom: 16px;
  color: var(--text-main);
}

.stats-list {
  margin-top: 24px;
  margin-bottom: 24px;
  padding-left: 20px;
  color: var(--text-muted);
}

.stats-list li {
  margin-bottom: 8px;
}

.opportunity-box {
  margin-top: 32px;
  padding: 20px;
  background-color: var(--bg-color);
  border-left: 4px solid var(--accent);
  color: var(--text-main);
  font-size: 0.95rem;
}

.opportunity-box.critical {
  border-left-color: #d32f2f;
  /* Toque rojo sutil para emergencia */
}

.action-box {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.action-box h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.action-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  .question-title {
    font-size: 1.25rem;
  }

  #result-title {
    font-size: 1.6rem;
  }
}

/* MODO OSCURO */
body.dark-mode {
  --bg-color: #121212;
  --text-main: #F2F2F2;
  --text-muted: #888888;
  --border: #333333;
  --option-bg: #1A1A1A;
  --option-hover: #222222;
  --option-active: #2C2C2C;
}

/* Modificadores form in-line para oscuro (Perfil 1) */
body.dark-mode #libera-horas-form-container {
    background: #1A1A1A !important;
    border-color: #333333 !important;
}
body.dark-mode #libera-horas-form-container h4 {
    color: #F2F2F2 !important;
}
body.dark-mode #libera-horas-form-container input,
body.dark-mode #libera-horas-form-container select {
    background: #222;
    color: #F2F2F2;
    border-color: #444 !important;
}
body.dark-mode #lh-success-message p {
    color: #F2F2F2;
}

/* BOTON THEME TOGGLE */
.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--border);
  color: var(--text-main);
}