:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  color: #19334a;
  background: #f3f7f9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.shell {
  max-width: 820px;
  margin: auto;
  padding: 24px 18px 55px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}
.brand img {
  max-height: 65px;
  max-width: 210px;
  object-fit: contain;
}
.brand-text {
  font-size: 21px;
  font-weight: 800;
  color: #08799d;
}
.tag {
  font-size: 12px;
  background: #e3eef3;
  color: #376074;
  padding: 9px 13px;
  border-radius: 50px;
}
.eyebrow {
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 800;
  color: #1382a8;
}
.intro h1 {
  font-size: clamp(30px, 5vw, 45px);
  line-height: 1.12;
  margin: 9px 0 15px;
}
.intro > p:last-child {
  font-size: 16px;
  color: #506679;
  line-height: 1.65;
  max-width: 690px;
}
.panel {
  background: white;
  border: 1px solid #e2eaf0;
  box-shadow: 0 12px 40px #1c48600d;
  border-radius: 20px;
  padding: clamp(20px, 4vw, 35px);
  margin-top: 27px;
}
h2 {
  font-size: 23px;
  margin: 0 0 14px;
}
h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}
p {
  line-height: 1.55;
}
.muted,
.hint {
  color: #65798a;
}
.hint {
  font-size: 12px;
}
.field {
  margin: 15px 0;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 13px;
  border: 1px solid #cbd9e2;
  border-radius: 9px;
  font: inherit;
  background: white;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}
.question {
  border-top: 1px solid #edf1f4;
  padding: 22px 0;
}
.question strong {
  display: block;
  line-height: 1.5;
  margin-bottom: 12px;
}
.scale {
  display: flex;
  gap: 8px;
}
.scale label {
  flex: 1;
  cursor: pointer;
}
.scale input {
  position: absolute;
  opacity: 0;
}
.scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5e2e9;
  border-radius: 9px;
  height: 47px;
  background: #f5f8fa;
  font-weight: 700;
}
.scale input:checked + span {
  background: #087da6;
  color: white;
  border-color: #087da6;
}
.scale input:focus-visible + span {
  outline: 3px solid #90c8de;
}
.scale-legend {
  display: flex;
  justify-content: space-between;
  color: #718492;
  font-size: 11px;
  margin-top: 7px;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 25px;
  flex-wrap: wrap;
}
button {
  border: 0;
  border-radius: 9px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #087da6;
  color: white;
}
button.secondary {
  background: #eaf2f6;
  color: #2d586b;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.progress {
  height: 7px;
  background: #e9f0f3;
  border-radius: 20px;
  overflow: hidden;
  margin: 16px 0 25px;
}
.progress > div {
  height: 100%;
  background: #087da6;
  transition: width 0.2s;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.5;
}
.consent input {
  margin-top: 4px;
}
.error {
  color: #aa3535;
  font-size: 13px;
}
.summary {
  text-align: center;
  padding: 6px 0 22px;
}
.summary svg {
  display: block;
  margin: 0 auto;
  width: 170px;
  height: 170px;
}
.big {
  font-size: 38px;
  font-weight: 800;
  margin: 5px;
}
.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 30px;
  background: #e8f2f6;
  color: #315e74;
  font-size: 12px;
  font-weight: 700;
}
.result {
  border: 1px solid #e2ebf0;
  border-radius: 12px;
  padding: 18px;
  margin: 12px 0;
}
.result h3 {
  margin: 0 0 8px;
}
.meter {
  height: 7px;
  background: #edf1f3;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}
.meter > div {
  height: 100%;
  background: #1687ba;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f4;
}
.callout {
  background: #f1f7fa;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}
.callout p {
  margin-bottom: 0;
}
footer {
  margin-top: 25px;
  text-align: center;
  font-size: 12px;
  color: #7c8d9a;
}
#status {
  font-size: 13px;
}
.hide {
  display: none;
}
@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .tag {
    font-size: 10px;
  }
  .shell {
    padding: 17px 12px;
  }
  .panel {
    padding: 18px;
  }
  .scale {
    gap: 5px;
  }
  .scale span {
    height: 44px;
  }
}

/* Identidad visual FYC Estrategias */
:root {
  --fyc-turquesa: #1ca8b8;
}
.eyebrow {
  color: #169eae;
}
.scale input:checked + span,
button {
  background: #1ca8b8;
  border-color: #1ca8b8;
}
.progress > div,
.meter > div {
  background: #1ca8b8;
}
.brand img {
  max-height: 90px;
  max-width: 185px;
}
.tag {
  background: #e6f7f8;
  color: #167d89;
}
:root {
  background: #e8eff0;
  color: #28444b;
}
.shell {
  max-width: 920px;
  padding: 20px 18px 35px;
}
.panel {
  background: #f7f7f2;
  border-color: #28444b25;
}
.hint,
.tag,
footer,
.scale-legend,
#status {
  font-size: 14px;
}
.field label,
button {
  font-size: 16px;
}
.eyebrow {
  font-size: 13px;
}
.consent {
  font-size: 15px;
}
.badge {
  font-size: 14px;
}
.intro > p:last-child {
  font-size: 17px;
}
.row {
  align-items: start;
}
.summary svg {
  width: 230px;
  height: 230px;
}
.scale input:focus-visible + span {
  outline: 3px solid #ee920b;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ee920b;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  header {
    align-items: start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .tag {
    font-size: 13px;
  }
  .row {
    flex-direction: column;
    gap: 3px;
  }
  .intro h1 {
    font-size: 32px;
  }
  .shell {
    padding: 16px 10px;
  }
  .scale-legend {
    font-size: 12px;
  }
  .consent {
    font-size: 14px;
  }
}
.shell {
  max-width: 1140px;
}
.shell > header {
  border-bottom: 1px solid #28444b25;
  padding-bottom: 22px;
  margin-bottom: 28px;
}
.diagnostic-layout {
  display: block;
}
.is-welcome .diagnostic-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}
.is-welcome .panel {
  margin-top: 0;
  padding: 30px;
}
.intro {
  display: none;
}
.is-welcome .intro {
  display: block;
}
.is-welcome .intro h1 {
  font-size: clamp(27px, 2.7vw, 38px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.intro em {
  font-style: normal;
  color: #1495a4;
}
.intro .eyebrow,
.panel .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.intro > p {
  font-size: 16px;
  color: #5d7177;
  line-height: 1.65;
}
.welcome-facts,
.dimension-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0;
}
.welcome-facts span,
.dimension-chips span {
  border: 1px solid #28444b26;
  border-radius: 30px;
  padding: 7px 9px;
  font-size: 12px;
  color: #405e65;
  line-height: 1.4;
}
.intro .welcome-note {
  font-size: 14px;
}
.is-welcome h2 {
  font-size: 26px;
  line-height: 1.4;
}
.is-welcome .muted {
  font-size: 16px;
}
.is-welcome #welcome-start {
  width: 100%;
  border-radius: 40px;
  font-size: 16px;
  padding: 16px 15px;
}
.is-welcome .hint {
  line-height: 1.6;
  font-size: 14px;
}
.is-welcome footer {
  margin-top: 30px;
}
@media (max-width: 760px) {
  .is-welcome .diagnostic-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .is-welcome .intro h1 {
    font-size: 30px;
  }
  .is-welcome .panel {
    padding: 25px;
  }
  .shell {
    max-width: 900px;
  }
  .is-welcome h2 {
    font-size: 25px;
  }
  .dimension-chips span,
  .welcome-facts span {
    font-size: 13px;
  }
}
/* Ritmo más pausado entre título, explicación, acciones y cierre. */
.shell {
  padding-top: 24px;
  padding-bottom: 55px;
}
.shell > header {
  justify-content: flex-end;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 38px;
}
.is-welcome .diagnostic-layout {
  gap: 48px;
}
.is-welcome .panel {
  padding: 38px 34px;
}
.is-welcome .panel .eyebrow {
  margin: 0 0 22px;
}
.is-welcome h2 {
  margin-bottom: 24px;
}
.is-welcome .muted {
  margin-bottom: 26px;
}
.dimension-chips {
  margin: 26px 0;
}
.is-welcome .hint {
  margin: 24px 0;
}
.is-welcome #welcome-start {
  margin-top: 8px;
  margin-bottom: 12px;
}
.welcome-facts {
  margin: 28px 0;
}
.intro .welcome-note {
  margin-top: 26px;
}
.intro > p {
  margin-bottom: 24px;
}
.intro h1 {
  margin-bottom: 26px !important;
}
.actions {
  margin-top: 34px;
  margin-bottom: 25px;
}
.actions + #status {
  margin-top: 24px;
  line-height: 1.65;
}
.shell > footer {
  margin-top: 45px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .is-welcome .diagnostic-layout {
    gap: 30px;
  }
  .is-welcome .panel {
    padding: 30px 25px;
  }
  .shell > header {
    margin-bottom: 28px;
  }
  .shell {
    padding-bottom: 40px;
  }
  .is-welcome #welcome-start {
    margin-top: 10px;
    margin-bottom: 8px;
  }
}

/* El formulario y los resultados comparten un ancho centrado, sin recortar etiquetas. */
.shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.diagnostic-layout,
.panel,
.grid,
.field {
  min-width: 0;
}
input,
select {
  max-width: 100%;
  min-height: 48px;
}
.field input {
  width: 100%;
}
.field label {
  display: block;
}
.row {
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel {
    padding: 24px 18px;
  }
}
