
/* =============== BASE =============== */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: white;
  color: #111;
  height: 100%;
}

/* =============== HERO INICIAL =============== */
.full {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff0000, #b30000);
  color: white;
  text-align: center;
  padding: 20px;
}

.subtitle {
  margin-top: 12px;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* =============== BOTONES =============== */
.btn {
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid #ff0000;
  background: #ff0000;
  color: #fff;
  cursor: pointer;
  margin: 8px;
  font-size: 1.05rem;
  transition: 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn:hover {
  background: #b30000;
  border-color: #b30000;
}

.btn.secondary {
  background: white;
  color: #333;
  border-color: #ccc;
}
.btn.secondary:hover {
  background: #f2f2f2;
}

/* =============== PROGRESO =============== */
#progress {
  width: 90%;
  height: 12px;
  background: #eee;
  margin: 20px auto;
  border-radius: 6px;
  position: relative;
}
#bar {
  height: 100%;
  width: 0;
  background: #ff0000;
  border-radius: 6px;
  transition: width .3s;
}
#pct {
  position: absolute;
  top: -24px;
  right: 0;
  font-size: 14px;
  font-weight: bold;
  color: #ff0000;
}

/* =============== PREGUNTA / OPCIONES =============== */
.card {
  background: #fff;
  border: 2px solid #ff0000;
  border-radius: 14px;
  padding: 22px;
  margin: 20px auto;
  width: 90%;
  max-width: 620px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 8px 0;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s;
  background: #fff;
}
.options label:hover {
  border-color: #ff0000;
  transform: translateY(-2px);
}
.options label.selected {
  background: #ff0000;
  border-color: #ff0000;
  color: white;
}
.num { font-weight: 700; font-size: 1.1rem; }
.word { opacity: .9; }

/* =============== SLIDE FINAL BONITA =============== */
.result-wrap {
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.result-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  padding: 26px;
}

/* Cabecera */
.result-header {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}
.result-badge {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff0000, #b30000);
  display: flex; justify-content: center; align-items: center;
  color: white; font-size: 22px; font-weight: 800;
}
.result-title {
  font-size: 1.45rem;
  margin: 0;
}
.result-sub {
  color: #666;
  margin: 4px 0 0;
}

/* Bloque de recomendación */
.reco-block {
  margin-top: 18px;
  border-left: 6px solid #ff0000;
  background: #fff5f5;
  padding: 14px 16px;
  border-radius: 12px;
}
.reco-title {
  color: #ff0000;
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 1.12rem;
}
.reco-text {
  color: #b30000;
  font-size: 1.2rem;
  font-weight: 800;
}

/* Secciones */
.result-section-title {
  margin: 20px 0 10px;
  font-weight: 700;
}

/* Listas “clásicas” */
.dim-item, .aff-item {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #fff;
  display: flex; justify-content: space-between; align-items: center;
}

/* Barras afinidad */
.aff-bar {
  background: #f1f5f9;
  height: 8px;
  border-radius: 6px;
  flex: 1;
  margin: 0 12px;
  overflow: hidden;
}
.aff-fill {
  height: 100%;
  background: #ff0000;
  width: 0%;
  transition: width .4s ease;
}

/* CTA a la web del grado */
.degree-cta {
  margin: 20px 0 10px;
}

/* =============== DETALLE POR DIMENSIÓN (ENRIQUECIDO) =============== */
.dim-row {
  display: grid;
  grid-template-columns: 1fr 220px 90px;
  gap: 12px;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 10px;
}
.dim-labels {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .95rem; color: #374151;
}
.dim-bar {
  position: relative;
  height: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}
.dim-center {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: #e5e7eb;
}
.dim-fill {
  position: absolute; top: 0; bottom: 0;
  background: #ff0000;
}
.dim-score {
  text-align: right; font-weight: 700; color: #111;
  font-feature-settings: "tnum";
}
.dim-help {
  display: block; font-size: .85rem; color:#6b7280; margin-top: 2px;
}
