:root {
  --fondo: #eef3f4;
  --panel: #ffffff;
  --texto: #14232c;
  --suave: #687b85;
  --borde: #d6e0e3;
  --principal: #087787;
  --principal-oscuro: #075e6a;
  --aviso: #fff5cc;
  --aviso-borde: #ddbf48;
  --correcto: #267653;
  --sombra: 0 20px 52px rgb(26 54 64 / 11%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 34px;
  background: #00291f;
  color: white;
}

.marca__nombre {
  font-size: 20px;
  font-weight: 850;
}

.marca__seccion {
  margin-top: 4px;
  color: #b8d0c9;
}

.aviso {
  padding: 13px 34px;
  border-bottom: 1px solid var(--aviso-borde);
  background: var(--aviso);
  color: #5e5015;
}

.estructura {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: calc(100vh - 114px);
}

.indice {
  padding: 28px 20px;
  border-right: 1px solid var(--borde);
  background: white;
}

.indice__cabecera {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.indice h2 {
  margin: 0;
}

.lista-pasos {
  display: grid;
  gap: 7px;
}

.paso-indice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--texto);
  text-align: left;
  cursor: pointer;
}

.paso-indice:hover {
  background: #f0f6f7;
}

.paso-indice--activo {
  border-color: #7db7bf;
  background: #e7f4f6;
  color: var(--principal-oscuro);
}

.paso-indice__numero {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8eff1;
  font-size: 13px;
  font-weight: 850;
}

.paso-indice--activo
.paso-indice__numero {
  background: var(--principal);
  color: white;
}

.paso-indice__texto {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visor {
  width: min(900px, calc(100% - 42px));
  margin: 42px auto;
}

.visor__superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.etiqueta {
  color: var(--principal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tipo {
  margin-left: 10px;
  color: var(--suave);
  font-size: 13px;
  font-weight: 700;
}

.pregunta {
  min-height: 460px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--sombra);
}

.pregunta__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pregunta__titulo {
  max-width: 760px;
  margin: 20px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.pregunta__ayuda {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--suave);
  font-size: 18px;
  line-height: 1.55;
}

.campo {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.campo__titulo {
  font-weight: 850;
}

.obligatorio,
.opcional {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
}

.obligatorio {
  background: #e8f5ed;
  color: var(--correcto);
}

.opcional {
  background: #edf1f2;
  color: var(--suave);
}

.entrada {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--borde);
  border-radius: 11px;
  background: #f8fafb;
  color: var(--suave);
  font: inherit;
}

textarea.entrada {
  resize: none;
}

.opciones {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opcion {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--borde);
  border-radius: 11px;
  background: #f9fbfb;
  font-weight: 700;
}

.opcion input {
  width: 18px;
  height: 18px;
}

.local-preview {
  padding: 16px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: #f8fafb;
}

.local-preview__titulo {
  margin-bottom: 12px;
  font-weight: 850;
}

.dos-columnas {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resumen-preview {
  display: grid;
  gap: 9px;
}

.resumen-preview div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px;
  border-bottom: 1px solid var(--borde);
}

.sin-guardado {
  margin-top: 26px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f0f5f6;
  color: var(--suave);
  font-size: 13px;
}

.navegacion {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.boton {
  min-height: 44px;
  padding: 10px 17px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.boton:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.boton--principal {
  background: var(--principal);
  color: white;
}

.boton--principal:hover:not(:disabled) {
  background: var(--principal-oscuro);
}

.boton--secundario {
  border: 1px solid var(--borde);
  background: white;
  color: var(--texto);
}

.boton--claro {
  background: white;
  color: #073f35;
}

.vista-completa {
  padding: 38px;
  border-top: 4px solid var(--principal);
  background: #e7edef;
}

.vista-completa__cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1400px, 100%);
  margin: 0 auto 24px;
}

.vista-completa__cabecera h2 {
  margin: 8px 0 0;
}

.rejilla-completa {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1400px, 100%);
  margin: auto;
}

.tarjeta-completa {
  padding: 25px;
  border: 1px solid var(--borde);
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 25px rgb(26 54 64 / 7%);
}

.tarjeta-completa
.pregunta__titulo {
  margin-top: 13px;
  font-size: 26px;
}

.tarjeta-completa
.pregunta__ayuda {
  font-size: 15px;
}

.campo-vacio {
  padding: 15px;
  border: 1px dashed var(--borde);
  border-radius: 10px;
  color: var(--suave);
}

@media (max-width: 900px) {
  .estructura {
    grid-template-columns: 1fr;
  }

  .indice {
    border-right: 0;
    border-bottom: 1px solid var(--borde);
  }

  .lista-pasos {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .rejilla-completa {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cabecera,
  .vista-completa__cabecera {
    align-items: stretch;
    flex-direction: column;
  }

  .cabecera {
    padding: 18px;
  }

  .aviso {
    padding: 12px 18px;
  }

  .lista-pasos,
  .opciones,
  .dos-columnas {
    grid-template-columns: 1fr;
  }

  .visor {
    width: min(100% - 20px, 900px);
    margin: 20px auto;
  }

  .pregunta {
    min-height: auto;
    padding: 24px 20px;
  }

  .pregunta__titulo {
    font-size: 30px;
  }

  .vista-completa {
    padding: 22px 10px;
  }
}
