/* Estilos generales */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1982C4 0%, #FF595E 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
  position: relative;
}

/* Fondo con patrones modernos */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 202, 58, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 89, 94, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(138, 201, 38, 0.2) 0%, transparent 50%);
  z-index: -1;
}

* {
  box-sizing: inherit;
}

#eneagram-test-wrapper .container {
  max-width: 900px;
  margin: 10px auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 20px 40px 40px 40px;
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Encabezados */
#eneagram-test-wrapper h1 {
  text-align: center;
  background: linear-gradient(135deg, #1982C4 0%, #FF595E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px 0;
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Estilos para la pantalla inicial */
.start-container {
  text-align: center;
  padding: 20px 0;
}

/* Icono DISC */
.disc-icon-container {
  margin-bottom: 25px;
}

.disc-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 400px;
}

.disc-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.disc-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 50%;
}

.disc-circle:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.disc-d {
  background: linear-gradient(135deg, #FF595E 0%, #FF8A8A 100%);
}

.disc-i {
  background: linear-gradient(135deg, #FFCA3A 0%, #FFD93D 100%);
}

.disc-s {
  background: linear-gradient(135deg, #8AC926 0%, #9DD73A 100%);
}

.disc-c {
  background: linear-gradient(135deg, #1982C4 0%, #4A9FE7 100%);
}

/* Descripción principal */
.main-description {
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.description-title {
  font-size: 2.4em;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #1982C4 0%, #FF595E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.description-text {
  font-size: 1.3em;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2d3748;
  margin-bottom: 25px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.description-subtitle {
  font-size: 1.15em;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #4a5568;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.6;
  letter-spacing: 0.005em;
}

.highlight {
  font-weight: 600;
  color: #1982C4;
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1982C4, #FF595E);
  border-radius: 2px;
  opacity: 0.3;
}

/* DISC Type Colors */
.disc-dominancia {
  color: #FF595E !important;
  font-weight: 700;
  position: relative;
}

.disc-influencia {
  color: #FFCA3A !important;
  font-weight: 700;
  position: relative;
}

.disc-estabilidad {
  color: #8AC926 !important;
  font-weight: 700;
  position: relative;
}

.disc-cumplimiento {
  color: #1982C4 !important;
  font-weight: 700;
  position: relative;
}

.disc-dominancia::after,
.disc-influencia::after,
.disc-estabilidad::after,
.disc-cumplimiento::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  opacity: 0.4;
}

.disc-dominancia::after {
  background: #FF595E;
}

.disc-influencia::after {
  background: #FFCA3A;
}

.disc-estabilidad::after {
  background: #8AC926;
}

.disc-cumplimiento::after {
  background: #1982C4;
}

/* Instrucciones */
.instructions-container {
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.05) 0%, rgba(255, 89, 94, 0.05) 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 50px;
  border: 1px solid rgba(25, 130, 196, 0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.instructions-title {
  font-size: 1.6em;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2d3748;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: -0.01em;
}

.instructions-content p {
  font-size: 1.2em;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2d3748;
  margin-bottom: 25px;
  line-height: 1.6;
}

.scale-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scale-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1982C4 0%, #FF595E 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 4px 12px rgba(25, 130, 196, 0.3);
}

.scale-label {
  font-size: 1em;
  font-weight: 600;
  color: #2d3748;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  max-width: 100px;
  letter-spacing: 0.01em;
}

.scale-arrow {
  font-size: 1.5em;
  color: #1982C4;
  font-weight: bold;
}

.instructions-note {
  font-size: 1.1em;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #4a5568;
  font-style: italic;
  text-align: center;
  margin-top: 25px;
  line-height: 1.5;
}

/* Botón de inicio */
.start-button-container {
  margin-top: 40px;
}

.start-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.3em;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.start-button:hover::before {
  left: 100%;
}

.start-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.start-button:active {
  transform: translateY(-1px);
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-icon {
  font-size: 1.2em;
  position: relative;
  z-index: 1;
}

#eneagram-test-wrapper h2 {
  text-align: center;
  color: #3f51b5;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
}

#eneagram-test-wrapper h3 {
  color: #3f51b5;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.3em;
  text-align: center;
}

#eneagram-test-wrapper h4 {
  color: #1a237e;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Texto introductorio */
#eneagram-test-wrapper .intro-text {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center;
  color: #424242;
}

/* Indicador de paginación */
#eneagram-test-wrapper .pagination-indicator {
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.1) 0%, rgba(255, 89, 94, 0.1) 100%);
  border-radius: 12px;
  padding: 12px 20px;
  margin: 10px 0;
  border: 1px solid rgba(25, 130, 196, 0.2);
  color: #4a5568;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(5px);
}

/* Preguntas */
#eneagram-test-wrapper .question {
  margin-bottom: 35px;
  padding: 30px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

#eneagram-test-wrapper .question::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1982C4 0%, #FF595E 100%);
  border-radius: 24px 24px 0 0;
}

#eneagram-test-wrapper .question::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.1) 0%, rgba(255, 89, 94, 0.1) 100%);
  border-radius: 50%;
  opacity: 0.6;
}

#eneagram-test-wrapper .question:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.4);
}

#eneagram-test-wrapper .question-text {
  font-weight: 600;
  margin-bottom: 25px;
  color: #2d3748;
  font-size: 1.2em;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  padding-right: 60px;
  text-align: left;
}

/* Opciones de respuesta */
#eneagram-test-wrapper .options {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  overflow-x: auto;
  padding: 25px 0;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

#eneagram-test-wrapper .options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 20px 15px;
  border: 2px solid rgba(25, 130, 196, 0.15);
  border-radius: 20px;
  transition: all 0.4s ease;
  font-size: 0.9em;
  min-width: 70px;
  flex: 1;
  max-width: 70px;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

#eneagram-test-wrapper .options label .scale-label {
  font-size: 0.7em;
  color: #718096;
  margin-bottom: 12px;
  white-space: nowrap;
  position: absolute;
  top: -2.5em;
  text-align: center;
  width: 100%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#eneagram-test-wrapper .options label:hover {
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.08) 0%, rgba(255, 89, 94, 0.08) 100%);
  border-color: rgba(25, 130, 196, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(25, 130, 196, 0.15);
}

#eneagram-test-wrapper .options input[type="radio"] {
  margin-bottom: 12px;
  width: 20px;
  height: 20px;
  accent-color: #1982C4;
  cursor: pointer;
}

#eneagram-test-wrapper .options input[type="radio"]:checked + span {
  font-weight: bold;
  color: #1982C4;
  font-size: 1.1em;
}

#eneagram-test-wrapper .options label:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.12) 0%, rgba(255, 89, 94, 0.12) 100%);
  border-color: #1982C4;
  box-shadow: 0 10px 30px rgba(25, 130, 196, 0.2);
  transform: translateY(-3px);
}

#eneagram-test-wrapper .options label:has(input[type="radio"]:checked)::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #1982C4, #FF595E);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.1;
}

/* Botones */
#eneagram-test-wrapper #submit-btn,
#eneagram-test-wrapper #prev-btn,
#eneagram-test-wrapper #next-btn,
#eneagram-test-wrapper #restart-test-btn {
  display: inline-block;
  margin: 5px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

/* Estilos específicos para el botón submit como div */
#eneagram-test-wrapper .submit-button {
  display: inline-block;
  margin: 5px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
  user-select: none;
}

#eneagram-test-wrapper #submit-btn::before,
#eneagram-test-wrapper #prev-btn::before,
#eneagram-test-wrapper #next-btn::before,
#eneagram-test-wrapper #restart-test-btn::before,
#eneagram-test-wrapper .submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

#eneagram-test-wrapper #submit-btn:hover,
#eneagram-test-wrapper #prev-btn:hover,
#eneagram-test-wrapper #next-btn:hover,
#eneagram-test-wrapper #restart-test-btn:hover,
#eneagram-test-wrapper .submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#eneagram-test-wrapper #submit-btn:hover::before,
#eneagram-test-wrapper #prev-btn:hover::before,
#eneagram-test-wrapper #next-btn:hover::before,
#eneagram-test-wrapper #restart-test-btn:hover::before,
#eneagram-test-wrapper .submit-button:hover::before {
  left: 100%;
}

#eneagram-test-wrapper #submit-btn {
  display: none;
  margin: 15px auto;
}

#eneagram-test-wrapper #pagination-controls {
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#eneagram-test-wrapper #pagination-controls > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

#eneagram-test-wrapper #start-test-btn {
  padding: 15px 30px;
  font-size: 1.2em;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#eneagram-test-wrapper #start-test-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Resultados */
#eneagram-test-wrapper #results-container {
  margin-top: 40px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

#eneagram-test-wrapper #results-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px 24px 0 0;
}

#eneagram-test-wrapper #results-container h2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

#eneagram-test-wrapper #results-text p {
  font-size: 1.15em;
  margin: 15px 0;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 12px;
  color: #2d3748;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

#eneagram-test-wrapper #results-text p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

#eneagram-test-wrapper #results-text p:last-child {
  border-bottom: none;
}

#eneagram-test-wrapper #results-text strong {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

#eneagram-test-wrapper #results-chart-container {
  width: 100%;
  max-width: 600px;
  min-height: 400px;
  height: auto;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#eneagram-test-wrapper canvas#results-chart {
  max-width: 100%;
  height: auto !important;
}

/* Alertas */
#eneagram-test-wrapper .alert {
  padding: 16px 20px;
  margin-bottom: 25px;
  border: 1px solid rgba(229, 62, 62, 0.2);
  border-radius: 12px;
  color: #e53e3e;
  background: linear-gradient(135deg, rgba(229, 62, 62, 0.1) 0%, rgba(245, 101, 101, 0.1) 100%);
  backdrop-filter: blur(5px);
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
  transition: all 0.3s ease;
}

/* Descripciones de tipos */
#eneagram-test-wrapper .type-descriptions {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

#eneagram-test-wrapper .type-descriptions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px 20px 0 0;
}

#eneagram-test-wrapper .type-descriptions h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

#eneagram-test-wrapper .type-description {
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: justify;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#eneagram-test-wrapper .type-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 0 4px 4px 0;
}

#eneagram-test-wrapper .type-description:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

#eneagram-test-wrapper .type-description:last-child {
  margin-bottom: 0;
}

#eneagram-test-wrapper .type-description h4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: -0.01em;
}

/* Sección de WhatsApp */
/* Sección de Contacto con Bitrix24 */
.bitrix-contact-section {
  margin: 40px 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.03) 0%, rgba(255, 89, 94, 0.03) 100%);
  border-radius: 24px;
  border: 1px solid rgba(25, 130, 196, 0.15);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bitrix-header {
  text-align: center;
  padding: 35px 30px 25px;
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.05) 0%, rgba(255, 89, 94, 0.05) 100%);
  border-bottom: 1px solid rgba(25, 130, 196, 0.1);
}

.bitrix-title {
  font-size: 1.5em;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #1982C4 0%, #FF595E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.bitrix-subtitle {
  font-size: 1em;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.bitrix-form-wrapper {
  padding: 35px 30px;
  background: white;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bitrix24-form-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Estilos para personalizar el formulario de Bitrix24 */
#bitrix24-form-container iframe {
  border: none !important;
  width: 100% !important;
  min-height: 400px !important;
  border-radius: 12px !important;
}

/* Estilos para cuando Bitrix24 inyecta elementos directos (no iframe) */
#bitrix24-form-container .b24-form {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

#bitrix24-form-container .b24-form-field {
  margin-bottom: 20px !important;
}

#bitrix24-form-container .b24-form-control {
  padding: 14px 18px !important;
  border: 2px solid rgba(25, 130, 196, 0.2) !important;
  border-radius: 12px !important;
  font-size: 1em !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

#bitrix24-form-container .b24-form-control:focus {
  outline: none !important;
  border-color: #1982C4 !important;
  box-shadow: 0 0 0 3px rgba(25, 130, 196, 0.1) !important;
}

#bitrix24-form-container .b24-form-btn {
  background: linear-gradient(135deg, #1982C4 0%, #FF595E 100%) !important;
  color: white !important;
  border: none !important;
  padding: 14px 35px !important;
  border-radius: 12px !important;
  font-size: 1.1em !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(25, 130, 196, 0.3) !important;
  width: 100% !important;
  margin-top: 10px !important;
}

#bitrix24-form-container .b24-form-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(25, 130, 196, 0.4) !important;
}

#bitrix24-form-container .b24-form-btn:active {
  transform: translateY(0) !important;
}

.bitrix-footer {
  padding: 20px 30px 30px;
  background: rgba(249, 250, 251, 0.5);
  border-top: 1px solid rgba(25, 130, 196, 0.1);
}

.bitrix-note {
  margin: 0;
  font-size: 0.9em;
  color: #718096;
  line-height: 1.6;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-style: italic;
}

.bitrix-icon {
  font-size: 1.1em;
  display: inline-block;
}

/* Loader mientras se carga el formulario de Bitrix24 */
#bitrix24-form-container:empty::before {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  margin: 80px auto;
  border: 4px solid rgba(25, 130, 196, 0.2);
  border-top-color: #1982C4;
  border-radius: 50%;
  animation: bitrix-spin 1s linear infinite;
}

#bitrix24-form-container:empty::after {
  content: 'Cargando formulario...';
  display: block;
  text-align: center;
  color: #4a5568;
  font-size: 0.95em;
  margin-top: 20px;
  font-weight: 500;
}

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

#eneagram-test-wrapper .restart-container {
  text-align: center;
  margin: 30px 0;
}

/* Footer */
#eneagram-test-wrapper footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

/* Developed By Section */
.developed-by {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #666;
}

.developed-by span {
  font-weight: 500;
}

.media-icon {
  max-width: 80px;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: grayscale(100%) brightness(0) saturate(100%) invert(25%) sepia(100%) saturate(2000%) hue-rotate(260deg) brightness(90%) contrast(120%);
}

.media-icon:hover {
  opacity: 1;
  filter: grayscale(100%) brightness(0) saturate(100%) invert(25%) sepia(100%) saturate(2000%) hue-rotate(260deg) brightness(90%) contrast(120%) drop-shadow(0 2px 8px rgba(128, 0, 128, 0.3));
  transform: scale(1.05);
}

/* Responsive para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  #eneagram-test-wrapper .question {
    padding: 25px;
  }

  #eneagram-test-wrapper .question-text {
    font-size: 1.15em;
  }

  #eneagram-test-wrapper .options label {
    min-width: 65px;
    max-width: 65px;
    padding: 18px 12px;
  }

  #eneagram-test-wrapper .options label .scale-label {
    font-size: 0.68em;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  #eneagram-test-wrapper .container {
    margin: 10px;
    padding: 20px;
    border-radius: 16px;
  }

  #eneagram-test-wrapper h1 {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .start-container {
    padding: 20px 0;
  }

  .disc-icon {
    gap: 15px;
    flex-wrap: wrap;
  }

  .disc-circle {
    width: 60px;
    height: 60px;
    font-size: 1.4em;
  }

  .description-title {
    font-size: 2em;
  }

  .description-text {
    font-size: 1.2em;
  }

  .instructions-container {
    padding: 20px;
    margin-bottom: 30px;
  }

  .scale-example {
    flex-direction: column;
    gap: 15px;
  }

  .scale-arrow {
    transform: rotate(90deg);
  }

  .start-button {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.2em;
  }

  /* Mejoras específicas para preguntas en móvil */
  #eneagram-test-wrapper .question {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 20px;
  }

  #eneagram-test-wrapper .question-text {
    font-size: 1.1em;
    padding-right: 0;
    margin-bottom: 20px;
  }

  #eneagram-test-wrapper .question::after {
    display: none;
  }

  #eneagram-test-wrapper .options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 15px 0 !important;
    justify-content: space-between !important;
  }

  #eneagram-test-wrapper .options label {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 15px 10px !important;
    border-radius: 16px !important;
    margin: 0 !important;
    font-size: 0.85em !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(25, 130, 196, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
  }

  #eneagram-test-wrapper .options label .scale-label {
    position: static !important;
    margin-bottom: 8px !important;
    font-size: 0.65em !important;
    color: #718096 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  #eneagram-test-wrapper .options input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin-bottom: 8px !important;
    accent-color: #1982C4 !important;
  }

  #eneagram-test-wrapper .options label:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(25, 130, 196, 0.15) !important;
    border-color: rgba(25, 130, 196, 0.3) !important;
  }

  #eneagram-test-wrapper .options label:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, rgba(25, 130, 196, 0.12) 0%, rgba(255, 89, 94, 0.12) 100%) !important;
    border-color: #1982C4 !important;
    box-shadow: 0 8px 25px rgba(25, 130, 196, 0.2) !important;
    transform: translateY(-2px) !important;
  }

  #eneagram-test-wrapper #results-chart-container {
    min-height: 200px;
    max-width: 98vw;
  }
  #eneagram-test-wrapper .type-description {
    font-size: 0.92rem;
    padding: 6px;
  }
  button,
  #eneagram-test-wrapper #start-test-btn {
    width: 100%;
    font-size: 1.05em;
    padding: 12px 0;
    margin: 8px 0;
    border-radius: 6px;
  }
  #eneagram-test-wrapper .pagination-indicator {
    font-size: 0.98em;
  }
  #eneagram-test-wrapper .alert {
    font-size: 0.98em;
    padding: 10px;
  }
  #eneagram-test-wrapper .intro-text {
    font-size: 0.98em;
    margin-bottom: 12px;
  }
  
  /* Media icon responsive */
  .media-icon {
    max-width: 60px;
  }
  
  .developed-by {
    font-size: 0.85em;
    gap: 6px;
  }
  
  /* WhatsApp section responsive */
  .bitrix-contact-section {
    margin: 30px 0;
    border-radius: 20px;
  }
  
  .bitrix-header {
    padding: 25px 20px 20px;
  }
  
  .bitrix-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  
  .bitrix-subtitle {
    font-size: 0.95em;
  }
  
  .bitrix-form-wrapper {
    padding: 25px 15px;
    min-height: 250px;
  }
  
  #bitrix24-form-container iframe {
    min-height: 350px !important;
  }
  
  .bitrix-footer {
    padding: 15px 20px 25px;
  }
  
  .bitrix-note {
    font-size: 0.85em;
    flex-direction: column;
    gap: 5px;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .whatsapp-note {
    font-size: 0.9em;
    margin-top: 15px;
  }
}

/* Spinner de carga */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Full Screen WhatsApp Loader */
.whatsapp-fullscreen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.95) 0%, rgba(25, 130, 196, 0.95) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: whatsappLoaderFadeIn 0.3s ease-out;
}

.whatsapp-loader-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 40px;
}

.whatsapp-loader-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

.whatsapp-loader-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.whatsapp-loader-subtitle {
  font-size: 1.1em;
  margin-bottom: 20px;
  opacity: 0.9;
  line-height: 1.5;
}

.whatsapp-loader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.whatsapp-loader-dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: whatsappPulse 1.5s infinite;
}

.whatsapp-loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.whatsapp-loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes whatsappLoaderFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes whatsappPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Full Screen Results Loader */
.results-fullscreen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(25, 130, 196, 0.95) 0%, rgba(255, 89, 94, 0.95) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: resultsLoaderFadeIn 0.3s ease-out;
}

.results-loader-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 40px;
}

.results-loader-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

.results-loader-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.results-loader-subtitle {
  font-size: 1.1em;
  margin-bottom: 20px;
  opacity: 0.9;
  line-height: 1.5;
}

.results-loader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.results-loader-dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: resultsPulse 1.5s infinite;
}

.results-loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.results-loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes resultsLoaderFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes resultsPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Animaciones para el modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Estilos adicionales para el modal */
#modal-email-input:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Estilos para botones del modal como divs */
#modal-cancel-btn:hover {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
  transform: translateY(-2px);
}

#modal-complete-btn:hover {
  background: rgba(25, 130, 196, 0.2) !important;
  border-color: rgba(25, 130, 196, 0.5) !important;
  transform: translateY(-2px);
}

#modal-save-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(25, 130, 196, 0.4) !important;
}

#modal-save-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

#modal-save-btn:hover::before {
  left: 100%;
}

/* Mejoras de accesibilidad y UX */
#eneagram-test-wrapper .options label:focus-within {
  outline: 2px solid #1982C4;
  outline-offset: 2px;
}

#eneagram-test-wrapper .question:focus-within {
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.12),
    0 0 0 3px rgba(25, 130, 196, 0.1);
}

/* Animación suave para transiciones de página */
#eneagram-test-wrapper .question {
  animation: questionFadeIn 0.5s ease-out;
}

@keyframes questionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejora para el indicador de progreso */
#eneagram-test-wrapper .pagination-indicator {
  position: relative;
  overflow: hidden;
}

#eneagram-test-wrapper .pagination-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #1982C4, #FF595E);
  opacity: 0.1;
  border-radius: 12px;
  z-index: -1;
}

/* Estilos para mejorar la legibilidad */
#eneagram-test-wrapper .question-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Mejora para el contenedor del quiz */
#eneagram-test-wrapper #quiz-container {
  padding: 10px 0;
}

/* Estilos para el formulario del quiz */
#eneagram-test-wrapper #quiz-form {
  position: relative;
}

#eneagram-test-wrapper #quiz-form::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1982C4 0%, #FF595E 100%);
  z-index: 1000;
  opacity: 0.8;
}

/* Estilos personalizados para Toastify */
.toastify {
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  max-width: 500px !important;
  word-wrap: break-word !important;
}

.toastify-success {
  background: linear-gradient(to right, #00b09b, #96c93d) !important;
  color: white !important;
}

.toastify-warning {
  background: linear-gradient(to right, #f59e0b, #fbbf24) !important;
  color: white !important;
}

.toastify-error {
  background: linear-gradient(to right, #e53e3e, #fc8181) !important;
  color: white !important;
}

.toastify-info {
  background: linear-gradient(to right, #1982C4, #4A9FE7) !important;
  color: white !important;
}

/* Animaciones personalizadas para Toastify */
@keyframes toastify-slide-in {
  0% {
    transform: translateX(100%) !important;
    opacity: 0 !important;
  }
  100% {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
}

.toastify {
  animation: toastify-slide-in 0.3s ease-out !important;
}

/* Hover effects */
.toastify:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .toastify {
    max-width: 90% !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
  }
}

/* Estilos para el tipo dominante */
.dominant-type {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* Clases para colores de tipos DISC */
.disc-result-dominancia {
    color: #FF595E !important; /* Rojo */
    display: inline !important;
    font-weight: 600 !important;
}

.disc-result-influencia {
    color: #FFCA3A !important; /* Amarillo */
    display: inline !important;
    font-weight: 600 !important;
}

.disc-result-estabilidad {
    color: #22C55E !important; /* Verde */
    display: inline !important;
    font-weight: 600 !important;
}

.disc-result-cumplimiento {
    color: #1982C4 !important; /* Azul */
    display: inline !important;
    font-weight: 600 !important;
}


/* Botón flotante de regreso */
.floating-return-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #FF595E 0%, #FF8A8A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(255, 89, 94, 0.35);
  border: 1px solid rgba(255,255,255,0.35);
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-return-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 89, 94, 0.45);
  filter: brightness(1.03);
}

.floating-return-label {
  font-size: 0.95em;
}

.floating-return-icon {
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .floating-return-btn {
    right: 14px;
    bottom: 14px;
    padding: 11px 16px;
  }
  .floating-return-label {
    font-size: 0.9em;
  }
}

/* SVG sizing for the floating button icon */
.floating-return-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  color: #ffffff;
}

